This question is related to "Options for displaying PostGIS vectors in OpenLayers?", but I need SVG output on server. OpenLayers must render SVG directly.
We are using Mapserver6, and thinking on WFS server mode (can be other?)... Need TinyOWS to faster output or easier configuration?
There are tutorials (?) for the problem of multiples minscale/maxscale on Mapfile layers -- for use something like st_union and st_simplify PostGIS functions to reduce trafic and complexity on big vectors.
For display we think to use some like,
map.addLayer( new OpenLayers.Layer.Vector(
"Setores",
{ strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
url: conf_url_wfs,
featureType: "setores_vector",
featureNS: "http://www.openplans.org/topp"
}),
renderers: ["SVG"]
},
{isBaseLayer:false,visibility: true}
));
There are a Mapserver example like this simple GeoServer example? Examples with Mapfile also (and connectiontype=postgis).