FeatureInfo: Support parsing values from WMS raster sources that lack both ID and geometry #1274
Labels
module:client/core
Core functionality (not a plugin)
new feature
Request for adding/changing functionality
Milestone
Sometimes we want to read values from sources that lack typical information we usually get from vector-based sources. One example is a GeoTIFF raster where each color is mapped to a value (e.g. height above sea level, or temperature).
If those layers are queried using GeoJSON, there's no way to tell which feature belongs to which layer (because the returned features lack IDs).
But if we request them as GML or
text/xml
, we might get something that we can work on:The example above contains both one attribute value (
GRAY_INDEX
) and information on WMS layer name in the response, making it possible for us to match the infoclick definition with the correct layer.Unfortunately, OpenLayers' built-in parsers fail on generating usable feature IDs (FIDs) here. Hence, a custom solution is needed that will take care of this and produce something really usable.
(This is remotely related to #1099, #1258 and #1266.)
The text was updated successfully, but these errors were encountered: