If you do a gdallocationinfo on your .vrt using lon/lat, does it give
all values or just one?
If you only get one value, you may need specify that they are individual
COGs. Using gdalbuildvrt that may look like:
gdalbuildvrt -separate mycogs.vrt /path/to/cogs/*.tif
I'm not sure how that will translate to getFeatureInfo, but it ensures
your .vrt is correctly made.
On 4/22/25 08:03, Eloi Ribeiro via MapServer-users wrote:
Dear all,
I have a stack of COG files that fully overlap, with the same extent,
EPSG and size.
I have created a VRT <https://cloud.eloiribeiro.eu/s/WtKgesFJCHnYSCQ>,
mapfile <https://cloud.eloiribeiro.eu/s/sCoqeWaLq6eSKqA> and
getfeatureinfo template <https://cloud.eloiribeiro.eu/s/35Z2e8nkifnoC6w>.
The goal is to get the pixel value from all layers (COG files) in the
VRT in one go with a GetFeatureInfo request. Is this even possible? For
now I only get the value of the first layer. The response looks like this: /
Layer: PH-GSOC Coords: 120.85598, 15.638156 Value: 37.550686/.
What I need to do in order to get the values from all layers, instead of
only the first one?
Kind regards,
Eloi
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users