Wednesday, 3 January 2018

openlayers 2 - Simplify GeoServer WFS output


I am dealing with some large datasets and would like to minimise the amount of data sent over the network. I am using OpenLayers' BBox strategy to only transfer the data that is needed but I am wondering whether I can simplify the output so that I can show lower zoom levels without having to transfer data with unnecessary accuracy/detail.


I am using GeoServer as a WFS server as part of the OpenGeo bundle.



Answer



WFS/GeoServer does not really provide any way to do generalization on the fly based on scale, but there is a special extension that does what you are looking for by doing some pregeneralization.


http://docs.geoserver.org/stable/en/user/data/featurepregen.html



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...