Hi list,
I’m using geoserver 2.5.2. I try to get the center of the bounding box of a collection of features returned by a query on some attributes.
After a little bit of googling I discovered the WPS module. It looks like that is capable of doing the job, so I installed it in geoserver and started experimenting using the WPS request builder.
I had some mixed success with the following scenarios:
1/ I used the vec:Bounds process using a reference. The url I used as reference was a simple GetFeature GET-request using a CQL_FILTER parameter using application/json as output format. When I execute the process the result is returned within 200ms.
2/ I used the vec:Bounds process using a vec:Query subprocess. The subprocess defines the same query request using cql filter) as in the first scenario. When I execute this process, it takes 2-3 seconds to return the result.
Questions:
1/ Any reasons why the second scenario is so slow compared with the first one?
2/ If in the first scenario the first feature has a Point geometry, the resulting bounding box is different than when this feature was in second or third (last) place. The bounding box of the second scenario is equal to the bounding box returned by the first scenario when the first feature is no a Point geometry.
3/ Is it possible to get the center of this bounding box using another process?
Kind regards,
Roel De Nijs
Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN
Disclaimer: zie www.aquafin.be P Denk aan het milieu. Druk deze mail niet onnodig af.