Hi, I have a question regarding GML3.2 output from ogr2ogr in GDAL 1.9 (from a daily build from a few days ago). I have a sample shapefile (found at http://www.vdstech.com/mapdata/canada.zip) that I've tried to convert to GML 3.2 using the command "ogr2ogr -f GML canada.xml canada.shp -dsco FORMAT=GML3.2".
When I try to validate the resulting file (using xerces via the oXygen editor, as well as the .NET xml schema libraries) there are a couple of problems: - The XML file sometimes includes the element gml:MultiSurface in the element ogr:geometryProperty, which the XML 3.2.1 schema does not allow, as ogr:geometryProperty is defined in the generated XSD file to be of type gml:SurfacePropertyType, which only allows elements in the substitution group gml:AbstractSurface. gml:MultiSurface is not in that group. - Inside the gml:MultiSurface elements, the individual gml:Polygon elements do not have id attributes, which xerces complains about. Perhaps the type of the generated gml:geometryProperty element should be gml:GeometryPropertyType, which allows child elements of anything in the gml:AbstractGeometry substitution group, and contains all the other attributes that are found in gml:SurfacePropertyType. Am I missing something here? Thanks, -- Gordon Tisher [email protected] Software Engineer +1 604-278-9161 SydneyPLUS 5138 - 13562 Maycrest Way, Richmond, BC V6V 2J7 _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
