Hi all,
I've been contracted to add support for controlling
the GetFeatureInfo radius. The way I allow the control
has not been specified, but I need this to be part
of the 1.7.4 release, or else I'll be forced to make
custom builds for the contractor.
Given this is a feature that has been requested many
times I'd lend towards including it into the release,
but I'll respect whatever decision the GeoServer PSC
takes.
As for the how, well, I see two paths:
- adding the radius as a WMS service option, stored
on disk, but not exposed in the 1.7.x UI (with
the idea to expose it in the new UI for 2.0)
- adding is as a vendor parameter in the
GetFeatureInfo request, e.g., &radius=20
The latter seems to be a more promising one.
I just have one reservation, which is, it
makes it possible to abuse GetFeatureInfo
to get an equivalent of a GetFeature, which
the admin might have disabled.
This falls in the topic of making WMS more
constrained, more controllable by the
administrator, and there are a number of
other ways WMS can be abused.
I'd say I should go for the vendor param,
and plan to add in the future some control
mechanism in the configuration setting a max
acceptable radius inside the wms config
(as well as other parameters, such as
max image size, max time alloted for the
request, and so on)
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.