[MapServer-users] GetFeatureInfo from VRT COG stack
Eloi Ribeiro
mail at eloiribeiro.eu
Wed Apr 23 03:31:57 PDT 2025
Indeed, the gdallocationinfo was returning just one value. After rebuilding the VRTs with the -separate flag, it now returns all values. Great, thanks!
Now I need to fix the GetFeatureInfo, it still returns one value. I guess I need to change my getfeatureinfo template file. I'm not sure how. Any clues?
Kind regards,
Eloi
On Tuesday, April 22nd, 2025 at 19:50, Scott via MapServer-users <mapserver-users at lists.osgeo.org> wrote:
> 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 at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list