Opened 14 years ago
Closed 14 years ago
#933 closed defect (fixed)
Error in GML namespace handle - ST_GeomFromGML
Reported by: | colivier | Owned by: | colivier |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.0.0 |
Component: | postgis | Version: | 1.5.X |
Keywords: | ST_GeomFromGML namespace GML | Cc: |
Description
{{{SELECT 'linearring_2', ST_AsEWKT(ST_GeomFromGML('<gml:LinearRing gml:xmlns="http://www.opengis.net/cite/spatialTestSuite" srsName="EPSG:4326"><gml:posList>1 2 3 4 5 6 1 2</gml:posList></gml:LinearRing>'));
?column? | st_asewkt
linearring_2 | SRID=4326;POLYGON((1 2,3 4,5 6,1 2))
}}}
But should instead return an error
{{{ST_AsEWKT(ST_GeomFromGML('<gml:LinearRing xmlns="http://www.opengis.net/cite/spatialTestSuite" srsName="EPSG:4326"><gml:posList>1 2 3 4 5 6 1 2</gml:posList></gml:LinearRing>')); ERROR: invalid GML representation }}}
But should instead return a valid geometry
Impact 1.5 and trunk
Commited as r7075 for trunk and r7076 for 1.5 branch. Thanks to Andreas Schmitz (lat/lon) for helping to report it.