[postgis-users] invalid GML representation and st_geomfromgml
Dave Potts
dave.potts at pinan.co.uk
Tue Dec 10 09:36:00 PST 2013
Hi List,
I am trying to load some gml data, most of the time it works, but some
of the records fail with constructs such as
<gml:Polygon
srsName="urn:ogc:def:crs:EPSG::28992"><gml:exterior><gml:LinearRing><gml:posList
srsDimension="2" count="5">46682.621 398291.140 46682.418 398288.117
46677.776 398288.443 46677.988 398291.466 46682.621 398291.140
</gml:posList></gml:LinearRing></gml:exterior><gml:interior><gml:LinearRing><gml:posList
srsDimension="3" count="5">46678.674 398291.164 46678.475 398289.096
46681.379 398288.816 46681.578 398290.885 46678.674
398291.164</gml:posList></gml:LinearRing></gml:interior></gml:Polygon>
As far as I am aware this is a valid gml construct so calling
st_geomfromgml should work, but I get an invalid GML representation error
My calling context is
select st_geomfromgml(pndgml) from gmldata where id = 1110;
where pndgml is a text field, have I overlooked something?
Dave.
More information about the postgis-users
mailing list