[postgis-users] invalid GML representation and st_geomfromgml

Paul Ramsey pramsey at cleverelephant.ca
Tue Dec 10 10:30:34 PST 2013


srsDimension has inconsistent values, could that be it? (error message
seems pretty small :)

On Tue, Dec 10, 2013 at 12:36 PM, Dave Potts <dave.potts at pinan.co.uk> wrote:
> 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.
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users


More information about the postgis-users mailing list