G. Allegri ha scritto:
I had just sent an email on the OL ml about a midnight question, when
I've seen this:
geoserver.org/display/GEOS/Vector+Super+Overlays
It is exactly about my question: how to distribute heavy vector
features on WFS services (mine is about 12 MB)? I was wondering if
there is anything that can manage a sort of "runtime simplification"
on the base of the zoom level, something the pyramids concept with
rasters...
Adding just some bits over Gabriel response. WFS is indeed not
meant to compute fields that are not there, or to alter existing
ones. Yet, not even the vector super overlay code works that way,
it does not simplify geometries, just "allocates" them into a
pyramid of tiles, basically the algorithm has a way to determine
the most important featueres falling into a tile, and allocates
N into the topmost tile, then allocates N into the 4 lower tiles
that haven't already been allocated in the upper ones, and so on,
in a way that makes the most important features available first.
The allocation does not need any zoom info, the extraction neither,
since it assumes the Google Earth client behaviour, that explicitly
requires tile number x,y,z using a custom protocol (I believe)
that's getting translated into an equivalent WMS call.
Humm... that could be done the same way with WFS if we make the x,y,z
indication a custom filter function, something like:
featureInTile(feature, x, y, z) = true
However, I'm digressing. Maybe you should explain a little more
your specific use case. The WFS protocol per se does not offer
anything, even paging is our custom extension (will be introduced
officially in a future version of WFS, and the protocol would be
different as far as I know), so if you "own" the client you
can try out custom solutions, otherwise, not.
Is this something that will be featured inside Geoserver?
If what you need is a mix between simplification and filtering
I guess you need WPS. We have a WPS module made by Refractions
in the community section, so far I haven't found the time to
look into it, but it seems the right fit for your needs?
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.