[Geomoose-users] Mapbook tidy up question

Carl Burn burnsy at northcountrywoods.co.uk
Fri Feb 11 11:04:17 EST 2011


Hi Bobb,

thanks, I have stuck the data all into one file and have the
maxscaledenom/minscaledenom values set in the mapfile and that all seems to
work fine.

The bit I am struggling with is the map book set up in geomoose, I need to
simply have one catalog entry for all of the layers so that the user only
sees a single layer in the catalog called  say "Background".

When this background layer is switched on I need the user to see whichever
of the raster layers is most appropriate for the level of zoom they
have....so that the users do not need to know different layers are set up
for different scales the system does the switching for them.

Does that make sense?

I set up the mapsource as a single wms source and used "all" to simply bring
in all of the four layers (not naming each one) I think I need to do a
catalog entry in the map book like this:

<catalog>
<layer title="background" src="mywmsservice/all" status="on" fade="true"
unfade="true"/>
</catalog>

But I dont think this is going to work, in fact having tried it it doesnt
seem to ...or is that just me.

Carl



On Fri, Feb 11, 2011 at 3:42 PM, Bob Basques <Bob.Basques at ci.stpaul.mn.us>wrote:

>  Carl,
>
>  In this situation you want to use a single MapFile, with multiple layer
> definitions.  You can control the display thresholding on each layer based
> on view scaling with the MINSCALEDEMON,MAXSCALEDENOM settings.
>
>  Each layer in the MapFile can source it's information from a different
> dataset.
>
>  bobb
>
>
>
>
> >>> Carl Burn <burnsy at northcountrywoods.co.uk> wrote:
>
> Hello All,
>
>
>   I have a tidy up task to do and am not sure how to tackle it. I have
> four raster layers in mapbook all being drawn from wms sources which specify
> a min/max scale in their mapserver map files.
>
>
>   Currently I have these four layers as individual entries in the catalog
> meaning that the user has to select one of them and then when they zoom in
> they have to select a different raster option manually.
>
> I would like to be able to simply have one entry in the catalog which once
> selected would allow the user to zoom in and use the raster layer
> appropriate to the level of zoom.
>
>
>   I have access to the mapserver so I have put all of the raster layers
> into one mapfile, so the mapsource in my mapbook is now a single wms source
> with 4 layers - so I can call them all in together by simply using "all" as
> the layer name. However I cant see a way of doing the same in the catalog so
> that only one layer is displayed to the users.
>
>
>   Feels like I have tackled this the wrong way, any ideas?
>
>
>   Best
>
>
>   Carl
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20110211/e143126e/attachment.html


More information about the Geomoose-users mailing list