[OpenLayers-Users] Problems adding polygon data from GML

Roald de Wit roald.dewit at lisasoft.com
Wed Nov 4 03:31:59 EST 2009


Hi David,

David Alda Fernandez de Lezea wrote:
> Is there anything here that makes you know that the response of the WFS Service is in GML v3?
>
> How can you specify it in the map file?
>
> The getFeature request I use is this:
>
> http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&MAXFEATURES=1000&EXCEPTIONS=application/vnd.ogc.se_xml&TYPENAME=RecintosSigpac&FILTER=<Filter><PropertyIsEqualTo><PropertyName>GID</PropertyName><Literal>125</Literal></PropertyIsEqualTo></Filter>
>   

Your WFS request has version 1.1.0. That implies that you receive GML v3 
output. See this document: [1] for some differences between 1.0 and 1.1.
If you were to specify your request to be 1.0, you would get GML v2 back!

[1] https://www.e-education.psu.edu/geog585/l3_p9.html

Regards, Roald



More information about the Users mailing list