[Geomoose-users] force identify on certain layers, or hide layers from the catalog

Reynolds, Michael J. (DOT) mike.reynolds at state.mn.us
Fri Jun 15 04:35:04 PDT 2012


You can hide a layer from the catalog by not placing it in the catalog.  Instead, make sure they source layer has a parameter: visible="true"

For example: <layer name="HiddenLayer" visible="true">

Not necessary at this point to include this layer within the catalog section of the mapbook.  It should appear by default.  This parameter was available at Geomoose 2.2.  I'm not sure if that has changed.

To make your layer invisible to the user, remove the style and label section from the layer in the .map file.  I'm not sure if this frees mapserver resources from rendering the data.  I experimented using Firefox's firebug net tool and couldn't see a difference in load time but my layer dataset was not large.

As long as your layer in the .map file has a...
METADATA
'identify_record'   'identify_invisibleLayer.html'
END

Any identify tool use will return results from this layer.

Since your goal is performance...I'm not sure if this method helps you.


From: geomoose-users-bounces at lists.osgeo.org [mailto:geomoose-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz
Sent: Thursday, June 14, 2012 4:08 PM
To: geomoose-users at lists.osgeo.org
Subject: [Geomoose-users] force identify on certain layers, or hide layers from the catalog

Hello,

I am experimenting with moving some of my basemap layers into a single cached wms layer, which hopefully will improve performance.  The problem that I have is that some of these layers I would like to cache such as sections, currently have identify / search functionality.  I would like to allow users to search and identify sections and other "interactive" layers.  Since I already set up these layers in Mapserver, I would like to continue to use Mapserver to run the identify / search functionality.  I wonder if it might be possible to do one of the following:

1.       Force GeoMOOSE to identify on a particular layer, and possibly not draw the layer at all?
2.       Hide the layers from the catalog.  I then could remove all the symbology from the layer.  This would allow the layer to render with the faster wms, and still allow users to search and identify on interactive layers via GeoMOOSE / Mapserver.


If anyone knows how to do either of these, or has a better idea on how I can move layers into the WMS for rendering while keeping Mapserver for functionality let me know.


Thanks

Mark Volz
GIS Specialist


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120615/0af95de7/attachment.html>


More information about the Geomoose-users mailing list