[postgis-users] GeoJson export function
Paul Ramsey
pramsey at cleverelephant.ca
Wed Apr 23 13:09:02 PDT 2008
Olivier,
I'll try this out on my ferry trip home today and apply it when I get
in if all is looking good. Thanks, that's one item off of my todo
list! :)
P
On Wed, Apr 23, 2008 at 9:56 AM, Courtin Olivier
<olivier.courtin at camptocamp.com> wrote:
> 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
>
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
More information about the postgis-users
mailing list