Re: [Geoserver-users] GetFeatureInfo search radius

2018-01-09 Thread David I
Many thanks for your reply, I understand it a bit better now. Thanks to the others who suggested the use of the buffer vendor option too. We could use getFeature for both displaying info popups for clicking search hits as well as for info-clicking layers; there's an established workflow with free

Re: [Geoserver-users] GetFeatureInfo search radius

2018-01-08 Thread Andrea Aime
On Mon, Jan 8, 2018 at 6:16 PM, Ian Turton wrote: > > >> So I was wondering whether the above call generates a pretty generous >> buffer >> or if something else is amiss. >> >> > I suspect it uses a 3x3 pixel buffer but I may be wrong and we don't do > that at all anymore. > It's actually a bit

Re: [Geoserver-users] GetFeatureInfo search radius

2018-01-08 Thread Ian Turton
On 8 January 2018 at 16:42, David I wrote: > Thanks for your replies. > > Geowolf: I see..logically I can understand how "getFirstCoordinate()" might > be a source of this kind of trouble for polygons, since this kind of layer > has shared borders. > > However it applies to certain points of an a

Re: [Geoserver-users] GetFeatureInfo search radius

2018-01-08 Thread David I
Thanks for your replies. Geowolf: I see..logically I can understand how "getFirstCoordinate()" might be a source of this kind of trouble for polygons, since this kind of layer has shared borders. However it applies to certain points of an address layer. For instance https://karta.eskilstuna.se/g

Re: [Geoserver-users] GetFeatureInfo search radius

2018-01-08 Thread Richard Duivenvoorde
On 05-01-18 16:27, Andrea Aime wrote: > I've downloaded the map and checked what point you're clicking with a > graphic editor, it's exactly at the corner between > 3 polygons (added a red circle around the location, x=346&y=237): If I'm correct (looking at the picture), your geoms do not have a

Re: [Geoserver-users] GetFeatureInfo search radius

2018-01-05 Thread Andrea Aime
On Fri, Jan 5, 2018 at 2:28 PM, David I wrote: > Like this call > https://karta.eskilstuna.se/geoserver/wms?SERVICE=WMS&; > VERSION=1.1.1&REQUEST=GetFeatureInfo&FORMAT=image/ > png&TRANSPARENT=true&QUERY_LAYERS=sokvyx_fk_ay_esktn& > LAYERS=sokvyx_fk_ay_esktn&TILED=true&INFO_FORMAT=text/ > html&fe

Re: [Geoserver-users] GetFeatureInfo search radius

2018-01-05 Thread Rahkonen Jukka (MML)
aja: geoserver-users@lists.sourceforge.net Aihe: [Geoserver-users] GetFeatureInfo search radius Hello, We have this Openlayers 4 based application that can use WMS layers. It uses such via a 2.11.2 Geoserver. It has a search function that creates a getFeatureInfocall for search hits. The call i

[Geoserver-users] GetFeatureInfo search radius

2018-01-05 Thread David I
Hello, We have this Openlayers 4 based application that can use WMS layers. It uses such via a 2.11.2 Geoserver. It has a search function that creates a getFeatureInfocall for search hits. The call is created like so: var mapView = Viewer.getMap().getView(); var url = spec.layer.getSource().g