On The fly geometry simplifications via OWS (WFS)

Hello:

I am running GeoServer 2.21.0 and utilizing it to make OWS (specifically WFS) requests fetching features from a PostGIS database. The requests are of the form:

/geoserver/${workspace}/ows?CQL_FILTER=${cqlFilter}REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&layer_name=${layerName}&maxFeatures=50&outputFormat=application/json&typeName=${typeName}&viewparams=${viewParams}

I would like to simplify the geometries of the returned features, my preference would be to have GeoServer perform that simplification on the fly. Does GeoServer support on the fly geometry simplification through GET request parameters? A quick Google search on this brought up nothing, but I’m hoping there’s a way.

Thank you,
Alessandro Ferrucci

Hello Alessandro,

If you have a PG database, you can have some on-the-fly simplification but it will be only done for WMS service, not for WFS.

Regards
Alexandre

Thank you very much Alexandre, I was aware of the PostGIS-provided simplifications for WMS services, I couldn’t find anything for WFS however. Unfortunately we don’t use WMS.

Cheers,
Alessandro