[postgis-tickets] [PostGIS] #2704: [PATCH] ST_GeomFromGML() does not work properly with array of gml:pos

PostGIS trac at osgeo.org
Sun Apr 6 13:43:54 PDT 2014


#2704: [PATCH] ST_GeomFromGML() does not work properly with array of gml:pos
---------------------+------------------------------------------------------
 Reporter:  rouault  |       Owner:  pramsey
     Type:  defect   |      Status:  new    
 Priority:  medium   |   Milestone:         
Component:  postgis  |     Version:         
 Keywords:           |  
---------------------+------------------------------------------------------
 {{{
 SELECT ST_GeomFromGML('<?xml version="1.0"?>
 <gml:Polygon xmlns:gml="http://www.opengis.net/gml/3.2"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://www.opengis.net/gml/3.2
 http://schemas.opengis.net/gml/3.2.1/gml.xsd"
              gml:id="ID1">
     <gml:exterior>
         <gml:LinearRing>
             <gml:pos>0 0</gml:pos>
             <gml:pos>0 1</gml:pos>
             <gml:pos>1 1</gml:pos>
             <gml:pos>1 0</gml:pos>
             <gml:pos>0 0</gml:pos>
         </gml:LinearRing>
     </gml:exterior>
 </gml:Polygon>')
 }}}


 returns :

 POLYGON ((0 0,0 1,1 1,1 0,0 0,0 1,1 1,1 0,0 0,1 1,1 0,0 0,1 0,0 0,0 0))

 instead of :

 POLYGON ((0 0,0 1,1 1,1 0,0 0))

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2704>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list