[postgis-users] GML output

strk at refractions.net strk at refractions.net
Thu Sep 23 04:16:16 PDT 2004


I'm writing GML export routines for postgis.

Here is current status:

# SELECT asgml('POINT(5 0)');
 <Point><coordinates>5,0</coordinates></Point>

# SELECT asgml('LINESTRING(5 0, 6 5, 6 7)');
 <LineString><coordinates>5,0 6,5 6,7</coordinates></LineString>

# SELECT asgml('POLYGON((5 0, 6 5, 6 7, 5 0),(0 0, 10 11, 10 10, 0 0))');
 <Polygon><OuterBoundaryIs>5,0 6,5 6,7 5,0</OuterBoundaryIs><InnerBoundaryIs>0,0 10,11 10,10 0,0</InnerBoundaryIs></Polygon>

Multi geometries and collections are not supported.

Questions for GML users/hackers:
1) Is that output correct ? For which versions ?
2) How would you output multi-types ?
3) How would you output geometry-collections ?

--strk;



More information about the postgis-users mailing list