From: Andrea A. <aa...@op...> - 2009-05-28 10:34:21
|
Hakim A ha scritto: > By checking the WFS capabilities document, I saw that the bounds > computed by Geoserver from the data were wrong. > > Should I understand that there is no way to get the real bounds of all > the features > in a FeatureSource when using a WFS DataStore instead of those provided > by the > admin? The only way that comes to mind is to issue a full GetFeature request. If the server is generating the collection bounds (which are optional) one can get away with just reading those, otherwise the full response has to be scanned just to generate the bounds. Un-advisable thought, the response can be as small as a few kilobytes, or as big as many gigabytes (so the bounds computation using that approach cannot be expected to use a reasonable time). Moreover, the server can be configured to return a max amount of features, less than the total available, which would result in a faulty computation. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. |