[Geomoose-users] Query a Mapserver raster group

James Klassen klassen.js at gmail.com
Tue Feb 7 10:14:52 PST 2017


I don't know what else to say.  For the record, I tested with MapServer
7.0.4 and GeoMoose 2.9.2 but I doubt versions are critical here.  You have
some extra stuff in your layers but that usually doesn't hurt.

I can only suggest looking at something like Firebug to see the actual
requests made by GeoMoose and the responses from MapServer.  There may be
clues there.




On Feb 7, 2017 11:35 AM, "andy" <aborruso at gmail.com> wrote:

Hi James,

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

Looks like the fake template trick doesn't work with raster layers.  So it
> seems it needs an empty template file.  The following works for me:
>
I have tried but for me it does not work. I have used your html templates.

It’s surely a stupid error of mine :(

As usual, thank you very much

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

  LAYER
    DATA "display.tif"
    EXTENT 369957.267038251 4124951.49692997 378066.716402869 4133060.94629459
    GROUP "DEMG"
    METADATA
      "coordsys_name"    "WGS 84 / UTM zone 33N"
      "ows_title"    "display"
      "identify_record"    "dummy.html"
    END # METADATA
    NAME "display"
    PROJECTION
      "proj=utm"
      "zone=33"
      "datum=WGS84"
      "units=m"
      "no_defs"
    END # PROJECTION
    STATUS ON
    TEMPLATE "dummy.html"
    TILEITEM "location"
    TOLERANCE 0
    TYPE RASTER
    UNITS METERS
    CLASS
      NAME "display"
    END # CLASS
  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/20170207/18a8bbac/attachment.html>


More information about the Geomoose-users mailing list