[postgis-users] PostGIS and GML

TECHER Jean David davidtecher at yahoo.fr
Wed Feb 23 05:08:02 PST 2005


Hi 

I tried to export PostGIS data to GML using (ogr2ogr with support for GML (only version 2.0 is supported from this tool))
ad AsGML function from postgis...

example:

ogr2ogr -f GML building.gml PG:dbname=madatabase -sql "SELECT id,data,asgml(the_geom) FROM  buildings"

then do few replacements in buildings.gml using cat/sed (cut '<asgml' , '</asgml>' and son on..;)

This method is no very nice ...Did someone have a better idea to export from PostGIS => GML

or does exist tools for that???

Thanks U


----------------------------------------------------------------
TECHER Jean David
Responsable Informatique 01MAP
e-mail: davidtecher at yahoo.fr
Bureau: 04 67 45 60 27
Portable: 06 85 37 36 75
site perso : http://techer.pascal.free.fr/postgis/
site pro: http://www.01map.com/download/
K-S:"The greatest trick the devil pulled off was convincing people he didn't exist"
------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20050223/6a7abe05/attachment.html>


More information about the postgis-users mailing list