[Qgis-developer] QGIS Server and OL3 GetFeatureInfo requests issue

2015-09-17 Thread G. Allegri
OL3 has changed the way GetFeatureInfo request parameters are generated. The nre way uses fixed WIDTH/HEIGHT and X/Y (I/J) params: 101 for the first and 50 latters. Then it builds the BBOX parameter consequently. The old way they were built from the size and extent of the map, and the query

Re: [Qgis-developer] QGIS Server and OL3 GetFeatureInfo requests issue

2015-09-17 Thread Mathias Walker
Hi Giovanni QGIS Server uses a fixed percentage (1 or 2%) of the image size as a default tolerance for GetFeatureInfo requests. This works nicely with a full sized image e.g. in the QGIS WebClient. But with the smaller image size in the OL3 GetFeatureInfo request this results in a single pixel

Re: [Qgis-developer] QGIS Server and OL3 GetFeatureInfo requests issue

2015-09-17 Thread G. Allegri
Thanks Mathias! I will investigate it. Maybe an heuristic for the tolerance could be used on the base of the BBOX coordinates... giovanni 2015-09-17 15:39 GMT+02:00 Mathias Walker : > Hi Giovanni > > > > QGIS Server uses a fixed percentage (1 or 2%) of the image size as a >