[mapserver-commits] [MapServer/MapServer] b59a5c: Add GetFeatureInfo support for CONNECTIONTYPE KERN...
Trygve Aspenes
noreply at github.com
Sun Apr 19 07:03:09 PDT 2026
Branch: refs/heads/main
Home: https://github.com/MapServer/MapServer
Commit: b59a5cc6b4d1dbf3bf56362496945f407e6da3c9
https://github.com/MapServer/MapServer/commit/b59a5cc6b4d1dbf3bf56362496945f407e6da3c9
Author: Trygve Aspenes <Trygve.Aspenes at met.no>
Date: 2026-04-19 (Sun, 19 Apr 2026)
Changed paths:
A msautotest/gdal/expected/heatmap-getfeatureinfo.html
M msautotest/gdal/heat.map
A msautotest/gdal/heatmap_query.html
M src/maprasterquery.c
Log Message:
-----------
Add GetFeatureInfo support for CONNECTIONTYPE KERNELDENSITY/IDW layers (#7478)
* Add GetFeatureInfo support for CONNECTIONTYPE KERNELDENSITY/IDW layers
msRasterQueryByRect() previously returned immediately with no results
when layer->data and layer->tileindex were both NULL, which is always
the case for KERNELDENSITY and IDW layers. These connection types
generate an in-memory GDAL dataset on the fly via msInterpolationDataset().
Changes:
- Bypass the early-return guard for KERNELDENSITY/IDW in msRasterQueryByRect()
- Call msGDALInitialize() unconditionally before the dataset branch so the
GDAL MEM driver is always registered
- Compute map->cellsize via msAdjustExtent() when it is 0 (query path does
not call msCalculateScale() unlike the draw path), restore it afterwards
- Create and query the interpolation dataset, then clean up as in the draw path
Test: new RUN_PARMS in msautotest/gdal/heat.map exercising WMS GetFeatureInfo
against the existing kerneldensity heatmap layer.
* pre-commit
---------
Co-authored-by: Trygve Aspenes <trygveas at met.no>
To unsubscribe from these emails, change your notification settings at https://github.com/MapServer/MapServer/settings/notifications
More information about the MapServer-commits
mailing list