[OpenLayers-Users] Re: how to add php/postgresql query result as Geojson layer to openlayers

Vishal Mehta vishalm1975 at gmail.com
Tue Oct 11 14:25:07 EDT 2011


Another way would be to use the postgis extension to postgresql to store
spatial tables, which can then be exported to GEOJSON format.


http://www.postgis.org/documentation/manual-1.5/ST_AsGeoJSON.html



On Mon, Oct 10, 2011 at 11:36 PM, Gabriele Seitz <ml-seitz at web.de> wrote:

> Hi,
>
> I never tried ist myself before, but there is a GeoJSON Example at
> http://www.openlayers.org/dev/examples/geojson.html
>
> Basically yuo should use  var geojson_format = new
> OpenLayers.Format.GeoJSON();
>
> Hope this helps.
>
> Gabriele
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/how-to-add-php-postgresql-query-result-as-Geojson-layer-to-openlayers-tp6876808p6879775.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



-- 
Vishal K. Mehta, PhD
Scientist
Stockholm Environment Institute - US
133 D St Suite F
Davis CA 95616
www.sei-us.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111011/797a73f6/attachment.html


More information about the Users mailing list