[Geoserver-users] SLD point symbology offset, via svg or SLD function - getFeatureInfo search area does not follow

Hi all, I posted this query on another forum four days ago but while it
received some views there have been no replies so far. I sincerely hope it
isn't breaking netiquette to post it now, somewhat rephrased, here. Do
advice if this is the case however.

We are running an instance of the OpenGeo Suite, 3.0.1, with GeoServer 2.2.
For a lot of point symbology SVG graphics in the style of "pins" or
"pointers" are used (like an arrow pointing at a location). As such the
geographic points are not at the center of the symbol, and the symbols are
therefore offset.

The SVG point symbol offset can happen with a bunch of transparent pixels at
one end of the SVG file, as suggested here.
http://docs.geoserver.org/latest/en/user/styling/sld-extensions/pointsymbols.html
. If so then the transparent pixel area of the SVG symbol will still yield a
getFeatureInfo reply for the point when clicked:
  <http://osgeo-org.1560.x6.nabble.com/file/n5064319/A.png&gt;

The alternative is to use the "offset" function in the SLD. The SVG symbol
(without a bit of transparent pixels) is then visibly offset but the
getFeatureInfo search area still appears centered on the (coordinates of)
the actual point:
<http://osgeo-org.1560.x6.nabble.com/file/n5064319/B.png&gt;

Is there a way to make the search area match the offset symbol rather than
the point in GeoServer?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/SLD-point-symbology-offset-via-svg-or-SLD-function-getFeatureInfo-search-area-does-not-follow-tp5064319.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Fri, Jul 5, 2013 at 3:54 PM, David I <perssond9@anonymised.com> wrote:

Is there a way to make the search area match the offset symbol rather than
the point in GeoServer?

No, there is no way to do that, changes to the code would have to be made.
In order to make it really work properly no matter how many rules and
different
offsets the style has, we'd have to change the way GetFeatureInfo code
works,
and actually make it paint a mini map centered around the point, considering
each feature that manages to color one of the pixels as part of the results
(and cleaning up the canvas after every painted feature, paint the next
one, and so on).

It's something that I would have loved to do for a while, but it's not
immediate to
build a fast version of the code, so I'm waiting for someone to sponsor
this change

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------