[postgis-users] Re: [postgis-devel] GeoJson export function

Eduin Carrillo yecarrillo at yahoo.com
Wed Apr 23 13:14:45 PDT 2008


Great job Courtin
 
-- 
Eduin Yesid Carrillo Vega
Ingeniero Civil, Universidad Industrial de Santander UIS
Laboratorio de Biogeografía y Análisis Espacial
Instituto de Investigación de Recursos Biológicos Alexander von Humboldt
yecarrillo at humboldt.org.co
Cr.13 28-01 P.7
Tel. (+57 1) 3506064 ext 122
Bogotá D.C., Colombia

----- Mensaje original ----
De: Courtin Olivier <olivier.courtin at camptocamp.com>
Para: PostGIS Development Discussion <postgis-devel at postgis.refractions.net>
CC: postgis-users at postgis.refractions.net
Enviado: miércoles, 23 de abril, 2008 11:56:10
Asunto: [postgis-devel] GeoJson export function 

Hi,

GeoJson is a format we use widely between server and Web GIS  
applications,
cf <http://wiki.geojson.org/GeoJSON_draft_version_6>

So it sounds like a good idea to have GeoJson native support
in PostGIS,

Attached to this post is a patch against current PostGIS SVN, with:
  - ST_asGeoJson implementation
  - units tests
  - DocBook documentation entry

To play with it, after installation, generate a GeoJson element:

SELECT ST_AsGeoJson(the_geom) FROM your_table LIMIT 1;

and copy/paste the result in OpenLayers:
cf <http://openlayers.org/dev/examples/vector-formats.html>

Any reaction welcome,

HTH,
--
Olivier






      ____________________________________________________________________________________
Yahoo! Deportes Beta
¡No te pierdas lo último sobre el torneo clausura 2008! Entérate aquí http://deportes.yahoo.com



More information about the postgis-users mailing list