[postgis-users] JSON

Sophie GRAS sophie.gras at espaces-naturels.fr
Sun Aug 3 23:38:04 PDT 2008

Hi everybody, 
thnaks for your answers ! 
I have downloaded a svn client, but after that how can i upgrade my postgis (i am so new at linux !!) ? 
Thanks again 


----- Mail Original ----- 
De: "Courtin Olivier" <olivier.courtin at camptocamp.com> 
À: "PostGIS Users Discussion" <postgis-users at postgis.refractions.net> 
Envoyé: Vendredi 1 Août 2008 12:41:39 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne 
Objet: Re: [postgis-users] JSON 

On Aug 1, 2008, at 12:20 PM, Sophie GRAS wrote: 

Hi Sophie, 

> i want to use the asgeojson function. 
> Do you know where we can find the 1.3.4 version of postgis ? 

This version is not yet released, 
You could use the current SVN version from 1.3 branch: 

svn checkout http://svn.refractions.net/postgis/branches/1.3 postgis-1.3 

(require to have an svn client already installed, cf http://subversion.tigris.org/) 

> once you have your data in the "geojson format", how do you "call" 
> it in the json file ? 

Not sure to really understand the question, below a working use case: 

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> 


postgis-users mailing list 
postgis-users at postgis.refractions.net 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20080804/ba7293b4/attachment.html>

More information about the postgis-users mailing list