WFS GetFeature produces Not valid GML

John Ho jmsrf_hoboy at YAHOO.COM.AU
Mon Jul 3 04:11:46 EDT 2006


 Hello,

I Just noticed that Mapserver 4.6.2 is giving me invalid GML for a polygon with one inner ring. 

Here is a snippet of the GML code:

<myns:msGeometry>
<gml:MultiPolygon srsName="epsg:4283">
        </gml:MultiPolygon>
</myns:msGeometry>

The error is an empty MultiPolygon.  There are no other errors produced by MapServer.  I have also noticed that GML that is produced, only Filled Polygon (no inner rings) are declared under the Polygon element, while a Polygon with inner rings are declared as a Polygon under MultiPolygon.  Anyone has any explaination for this?  This does not conform to the OGC GML standard.

I have also tried using ogr2ogr tool on the shapefile, and converted it to a GML.  Upon inspection, the GML conforms to the OGC GML standard and the missing feature is declared correctly.  I tried changing my map file to use a OGR connection to the GML file and I still get the same GML by Mapserver.  Is this a known bug of Mapserver?

I have also tried the same shapefile on GeoServer and GEOServer produced valid GML for the feature.

If anyone can tell me why I can't get the GML to produce correctly please let me know.  It would be a GREAT help if you are able help.  Email me if you would like me to send the shape file and mapfile.

Regards,
John
 Send instant messages to your online friends http://au.messenger.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060703/c2c0e0f6/attachment.html


More information about the mapserver-users mailing list