[Geomoose-users] Query a Mapserver raster group

James Klassen klassen.js at gmail.com
Fri Feb 3 09:05:35 PST 2017


No that should work, but you need MAP.LAYER.TEMPLATE set on every layer in
the group otherwise MapServer will error out as without TEMPLATE defined,
query isn't allowed for that layer (a group is just a shortcut to specify
all layers in it).

So you need the DEM layer with a valid template and the cosmetic layer with
just something like

TEMPLATE 'dummy'

Where the 'dummy' file doesn't actually need to exist.

On Feb 3, 2017 10:51 AM, "andy" <aborruso at gmail.com> wrote:

Hi James,
first of all thank you.

On 3 February 2017 at 17:30, James Klassen <klassen.js at gmail.com> wrote:

There isn't a way to tell it to use one layer for GetMap but some other
> layer for GetFeatureInfo.
>
I thought that a Group could solve my problem. I thought to put in this
group my “cosmetic” file and my data file, and than run a GetFeatureInfo on
this group and obtain the info only for the layer in which I set a template
file (the data file). Below an example.

But, it seems not possible.

Thank you again

  LAYER
    DATA "dataFile.tif"
    EXTENT 369957.267038251 4124951.49692997 378066.716402869 4133060.94629459
    GROUP "DEMG"
    METADATA
      "coordsys_name"    "WGS 84 / UTM zone 33N"
      "ows_title"    "dataFile"
      "identify_record"    "dummy.html"
      "wms_group_title"    "DEMG"
    END # METADATA
    NAME "dataFile"
    PROJECTION
      "proj=utm"
      "zone=33"
      "datum=WGS84"
      "units=m"
      "no_defs"
    END # PROJECTION
    STATUS ON
    TYPE RASTER
    TEMPLATE "dummy.html"
    UNITS METERS
    OPACITY 0
  END # LAYER

  LAYER
    DATA "cosmeticFile.tif"
    EXTENT 369957.267038251 4124951.49692997 378066.716402869 4133060.94629459
    GROUP "DEMG"
    METADATA
      "coordsys_name"    "WGS 84 / UTM zone 33N"
      "ows_title"    "cosmeticFile"
      "wms_group_title"    "DEMG"
    END # METADATA
    NAME "cosmeticFile"
    PROJECTION
      "proj=utm"
      "zone=33"
      "datum=WGS84"
      "units=m"
      "no_defs"
    END # PROJECTION
    STATUS ON
    TYPE RASTER
    UNITS METERS
  END # LAYER

------------------------------

Andrea Borruso
website: http://blog.spaziogis.it
38° 7’ 48” N, 13° 21’ 9” E, EPSG:4326
------------------------------

“cercare e saper riconoscere chi e cosa,

in mezzo all’inferno, non è inferno,
e farlo durare, e dargli spazio”

Italo Calvino
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20170203/ea49fd06/attachment-0001.html>


More information about the Geomoose-users mailing list