Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue parsing GML to postgis #1

Open
milovanderlinden opened this issue Apr 21, 2013 · 0 comments
Open

Issue parsing GML to postgis #1

milovanderlinden opened this issue Apr 21, 2013 · 0 comments

Comments

@milovanderlinden
Copy link
Owner

See http://trac.osgeo.org/postgis/ticket/2092

select st_asgml(st_geomfromtext(
'POLYGON((116097.012 480829.84, 116098.899 480839.66, 
116095.953 480840.227, 116094.066 480830.406, 116097.012 480829.84))'))

fails on postgis <2.0.3:

select st_asewkt(st_geomfromgml(E'<gml:Polygon srsName="urn:ogc:def:crs:EPSG::28992"><gml:exterior>
<gml:LinearRing><gml:posList count="5" srsDimension="3">
116097.012 480829.84 0.0 
116098.899 480839.66 0.0 
116095.953 480840.227 0.0 
116094.066 480830.406 0.0 
116097.012 480829.84 0.0
</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon>'))

works:

select st_asewkt(st_geomfromgml(E'<Polygon srsName="urn:ogc:def:crs:EPSG::28992"><exterior><LinearRing><posList count="5" srsDimension="3">
116097.012 480829.84 0.0 
116098.899 480839.66 0.0 
116095.953 480840.227 0.0 
116094.066 480830.406 0.0 
116097.012 480829.84 0.0</posList>
</LinearRing></exterior></Polygon>'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant