[postgis-devel] GML for empty geometries ?

Courtin Olivier olivier.courtin at oslandia.com
Wed Dec 14 09:47:12 PST 2011


On Dec 14, 2011, at 4:33 PM, Paul Ramsey wrote:

> Anyone have the gml scheme handy? If it is legal then yes, otherwise  
> we have to go with null.

cat point.xml
<gml:Point xmlns:gml="http://www.opengis.net/gml" />

xmllint --schema geometry.xsd  point.xml
<?xml version="1.0"?>
<gml:Point xmlns:gml="http://www.opengis.net/gml"/>
point.xml:1: element Point: Schemas validity error : Element '{http://www.opengis.net/gml 
}Point': Missing child element(s). Expected is one of ( {http://www.opengis.net/gml 
}coord, {http://www.opengis.net/gml}coordinates ).
point.xml fails to validate


So seems not legal
(checked both GML 2.1.2 and 3.1.1)

--
Olivier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20111214/b2d7b4b0/attachment.html>


More information about the postgis-devel mailing list