Hi, GML in OpenLayers is for Simple Features. But you should be able to create a custom format for your complex GML with not too much effort. Look at OpenLayers.Format.GML.Base and OpenLayers.Format.GML.v3 to see how these formats can be extended. Usually it is enough to assign already existent readers (and writers) to the correct node names.
Regards, Andreas. On Nov 6, 2010, at 21:13 , Rodrigo wrote: > Hi everyone! > > I'm studying about Application Schema. I Just tried the tutorial available in > Geoserver docs > (http://docs.geoserver.org/stable/en/user/data/app-schema/tutorial.html) and > now I have a question: > > Is it possible to show the complex features as a Vector Layer, using > OpenLayers? > > I tried this: > > var wfs = new OpenLayers.Layer.Vector("MappedFeature", { > strategies: [new OpenLayers.Strategy.BBOX()], > protocol: new OpenLayers.Protocol.WFS({ > url: "http://localhost:8080/geoserver/wfs", > featureType: "MappedFeature", > featureNS: "urn:cgi:xmlns:CGI:GeoSciML:2.0" > }) > }); > > > But, I couldn't see anything in result... > > I don't know even if I should ask this in Geoserver list or in openlayers > list, but I'm trying with both... > > Requesting the examples with WFS works fine... so, I don't know if I got the > ideia about the App Schema. > > Thanks! > > Rodrigo C. Antonialli > ====================================== > Rio Claro - SP - Brasil > LinkedIn: http://www.linkedin.com/in/rcaprofile > Contato: (19) 9792-9820 > [email protected] > [email protected] > Skype: rc_antonialli > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
