AW: [MAPSERVER-USERS] Hiding overviews
Pål Kristensen
pal.kristensen at statkart.no
Wed Mar 26 00:19:24 PDT 2008
Hi! Daniel!
Yes, this is indeed what I'm trying to achieve. I can't answer for others,
but for what I've read it looks like the described behavior is what most
people wants. I guess someone would like the ability to totally hide some
layers from the capabilities document, but in my opinion that's more of a
cosmetic need not to disclose to the user how the layers are organized
internally in mapserver. After all a layer without a name is not queryable,
and that is the main objective.
Regards,
Pål Kristensen
Daniel Morissette-2 wrote:
>
> Daniel Morissette wrote:
>
> ... then the following mapfile block...
>
> LAYER
> NAME layer1
> METADATA
> "wms_title" "Layer 1"
> "wms_group_title" "Group 1"
> END
> GROUP group1
> MINSCALE 0
> MAXSCALE 10000
> TYPE RASTER
> STATUS ON
> DATA layer1.tif
> END
>
> LAYER
> # NAME intentionally omitted...
> METADATA
> "wms_title" "Layer 2"
> END
> GROUP group1
> MINSCALE 10001
> MAXSCALE 100000
> TYPE RASTER
> STATUS ON
> DATA layer2.tif
> END
>
>
> ... produces the following output in GetCapabilities ... this whole
> group can be turned on/off at once using LAYERS=group1 in the GetMap
> request. Notice that layer 2 has no name in GetCapabilities which is
> what we wanted. Omitting the layer name for layer 1 as well would make
> it non-selectable as well:
>
> <Layer>
> <Name>group1</Name>
> <Title>Group 1</Title>
> <Abstract>group1</Abstract>
> <Layer queryable="0">
> <Name>layer1</Name>
>
> <Title>Layer 1</Title>
> <ScaleHint min="0" max="4.98902848429637" />
> </Layer>
> <Layer queryable="0">
> <!-- WARNING: Mandatory mapfile parameter 'LAYER.NAME' was missing in
> this context. -->
> <Title>Layer 2</Title>
> <ScaleHint min="4.9895273871448" max="49.8902848429637" />
> </Layer>
>
> </Layer>
>
>
> We would also need to update the WARNING text to say "optional" instead
> of Mandatory.
>
> If this is indeed what you were trying to achieve then please file a
> ticket and I'll make the required changes in MapServer 5.2.
>
> Daniel
> --
> Daniel Morissette
> http://www.mapgears.com/
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
View this message in context: http://www.nabble.com/Hiding-overviews-tp15845320p16296685.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list