[postgis-devel] [PostGIS] #1591: ST_GeomFromGML crushes for Triangle (Triangulard Surface/TIN)

PostGIS trac at osgeo.org
Mon Feb 20 13:16:59 PST 2012


#1591: ST_GeomFromGML crushes for Triangle (Triangulard Surface/TIN)
---------------------+------------------------------------------------------
 Reporter:  itboyet  |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  2.0.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 I am trying to use the ST_GeomFromGML to insert some TIN/Triangular Object
 into Postgres database; however, PostGIS/PostgreSQL exits after I executed
 the following query:

 SELECT ST_AsEWKT(ST_GeomFromGML('
 <gml:TriangulatedSurface>
         <gml:TrianglePatches>
                 <gml:Triangle>
                         <gml:exterior>
                                 <gml:LinearRing gml:id="1">
                                         <gml:posList srsDimension="3">
                                                 0 0 1000000
                                                 0 10 1000000
                                                 10 10 1000000
                                                 0 0 1000000
                                         </gml:posList>
                                 </gml:LinearRing>
                         </gml:exterior>
                 </gml:Triangle>
                 <gml:Triangle>
                         <gml:exterior>
                                 <gml:LinearRing gml:id="2">
                                         <gml:posList srsDimension="3">
                                                 0 0 8000000
                                                 10 10 1000000
                                                 0 0 1000000
                                                 0 0 8000000
                                         </gml:posList>
                                 </gml:LinearRing>
                         </gml:exterior>
                 </gml:Triangle>
                 <gml:Triangle>
                         <gml:exterior>
                                 <gml:LinearRing gml:id="3">
                                         <gml:posList srsDimension="3">
                                                 0 0 8000000
                                                 0 10 1000000
                                                 10 10 1000000
                                                 0 0 8000000
                                         </gml:posList>
                                 </gml:LinearRing>
                         </gml:exterior>
                 </gml:Triangle>
                 <gml:Triangle>
                         <gml:exterior>
                                 <gml:LinearRing gml:id="4">
                                         <gml:posList srsDimension="3">
                                                 0 0 8000000
                                                 0 0 1000000
                                                 0 10 1000000
                                                 0 0 8000000
                                         </gml:posList>
                                 </gml:LinearRing>
                         </gml:exterior>
                 </gml:Triangle>
         </gml:TrianglePatches>
 </gml:TriangulatedSurface>'));

 However, it would give me an actual error if I change the tag
 "TriangulatedSurface" to "TriangularSurface", which should not be the
 correct gml tag.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1591>
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-devel mailing list