[OpenLayers-Users] Performance of different layers

Mapmaker bmcbride at chacompanies.com
Wed Mar 24 14:27:22 EDT 2010


Hi Hanno,

If you are storing your data in a PostGIS database, you can extract your
data in an openlayers friendly format (KML, GML, GeoJSON) using a SELECT
ST_AsKML query.  See  http://postgis.refractions.net/docs/ST_AsKML.html
http://postgis.refractions.net/docs/ST_AsKML.html 

You could also write a php script that queries the database and writes out
the KML file with the style pulled from a database variable.

Alternatively, you could use GeoServer or MapServer to serve your data and
apply SLD styles as needed.  See 
http://openlayers.org/dev/examples/sld.html
http://openlayers.org/dev/examples/sld.html 

Hope this helps and best of luck!

BRYAN
-- 
View this message in context: http://n2.nabble.com/Performance-of-different-layers-tp4792074p4792884.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list