[Geomoose-users] Query a Mapserver raster group
TC Haddad
tchaddad at gmail.com
Wed Feb 1 20:55:00 PST 2017
I've seen a working example before and can't lay my hands on it at the
moment, but this is what I think works:
In the DEM map file you want this in the LAYER file:
STATUS ON
OPACITY 0
And don't include any class blocks at all. I believe with this setup you
don't have to mess with GROUP at all, as the elevation layer will always be
something that reports.
If you prefer that the layer only reports with GROUP behavior, you will
have to set STATUS to OFF, and then add the GROUP tag, and use that GROUP
name to call the layers from via WMS.
Note that there used to be a problem in Geomoose with querying layers that
were in GROUPs, I thought that that got fixed in ~v.2.8, but to be honest I
have not tested it in a while. So hopefully you are not bumping into a
zombie version of that bug...
Tanya
On Wed, Feb 1, 2017 at 3:34 PM, Jim Klassen <klassen.js at gmail.com> wrote:
> My guess:
>
> Put both layers in the the same group (also note that MAP->NAME is also
> an implicit top level group). IIRC both layers have to be queryable (in
> they need a TEMPLATE keyword defined, but the template itself may be
> empty, or not even exist. I often use TEMPLATE 'dummy').
>
> You will need some trick to make the DEM layer not draw. I'm not sure
> the best way to approach this. Some ideas: doing something with CLASSes
> or setting OPACITY to 0. There used to be a MAP->LAYER->TYPE QUERY that
> was for this purpose, but I don't know if it still exists or if it would
> work with raster data.
>
> On 02/01/2017 05:12 PM, andy wrote:
> >
> > Hi,
> > I have a map file with a group and I’m able to load this in my map.
> >
> > In this group I have:
> >
> > a DEM, in wich in each pixel I have the height valure;
> > an hillshade of the this DEM to have something better in terms of
> > appearance.
> >
> > I would like to load the group, see the hillshade, and when click on
> > it via Geomoose identify tool to have the height values of the DEM.
> >
> > If I load only the DEM and use Geomoose identify tool I obtain the
> > height values. Than I have created this mapserver group and inserted
> > in the DEM layer the |wms_group_title| parameter.
> >
> > But when I load the group, the Geomoose identify tool gives me only
> > the coordinates.
> >
> > Is there some alternative to obtain my goal? To view a layer, but to
> > query another one?
> >
> > Thank you
> >
> > ------------------------------------------------------------------------
> >
> > 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
> >
> >
> >
> >
> > _______________________________________________
> > Geomoose-users mailing list
> > Geomoose-users at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/geomoose-users
>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20170201/4f992a8a/attachment.html>
More information about the Geomoose-users
mailing list