[postgis-devel] [PostGIS] #802: AsGML: use posList with attribute rather than coordinates tag

PostGIS trac at osgeo.org
Sat Jan 22 05:43:04 PST 2011


#802: AsGML: use posList with attribute rather than coordinates tag
-----------------------+----------------------------------------------------
 Reporter:  aperi2007  |       Owner:  strk         
     Type:  defect     |      Status:  new          
 Priority:  medium     |   Milestone:  PostGIS 2.0.0
Component:  topology   |     Version:  trunk        
 Keywords:             |  
-----------------------+----------------------------------------------------

Comment(by strk):

 Uhm, topology.AsGML is using the underlying ST_AsGML(geometry) for the
 components.
 These are the ST_AsGML outputs for GML version 2 and GML version 3:

 {{{
 =# select st_asgml(2,'LINESTRING(0 0, 10 0)'::geometry);
                                    st_asgml
 ------------------------------------------------------------------------------
  <gml:LineString><gml:coordinates>0,0
 10,0</gml:coordinates></gml:LineString>
 (1 row)
 }}}

 and

 {{{
 =# select st_asgml(3,'LINESTRING(0 0, 10 0)'::geometry);
                                    st_asgml
 ------------------------------------------------------------------------------
  <gml:Curve><gml:segments><gml:LineStringSegment><gml:posList
 srsDimension="2">0 0 10
 0</gml:posList></gml:LineStringSegment></gml:segments></gml:Curve>
 (1 row)
 }}}

 Does the LineString-posList version you suggest correspond to another
 version ?

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/802#comment:1>
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