How do I hide a layer from WMS GETCAPABILITIES XML?

Brent Fraser bfraser at GEOANALYTIC.COM
Fri Dec 17 08:09:22 PST 2004


Ed,

  Yeah, I already ran into that one.  My thought was to have a map file
design to deal with the issues of

    - don't want to expose a map file layer in GETCAPABILITES (but still
want mapserver to render/use it)
    - may want to expose a group of map file layers as only one OWS layer
    - method should be the same for WMS, WFS, WCS (others yet to be
defined?)
    - other similar issues?

  so I was going through some many-to-one, one-to-none (and many-to-many?
yikes!) mapfile layer to OWS layer scenarios to see what made sense.

  My work-around in the short term is to do server-side filtering of the XML
doc...

Brent



----- Original Message -----
From: "Ed McNierney" <ed at TOPOZONE.COM>
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Friday, December 17, 2004 8:37 AM
Subject: Re: [UMN_MAPSERVER-USERS] How do I hide a layer from WMS
GETCAPABILITIES XML?


Brent -

Using the GROUP statement to batch layers together will not prevent the
individual layers from being advertised in the GetCapabilities request.

        - Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Brent Fraser
Sent: Friday, December 17, 2004 10:34 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] How do I hide a layer from WMS
GETCAPABILITIES XML?

Bart,

   Thanks for the pointer to the bug report.  After reading the bug
info, it occurred to me that the whole architecture of:

        one-mapfile-layer =one-OWS-layer

might lead to some serious limitations in the future.  I need to look
through some old email on layer grouping, etc.

Thanks again,
Brent

----- Original Message -----
From: "Bart van den Eijnden" <bartvde at XS4ALL.NL>
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Friday, December 17, 2004 2:03 AM
Subject: Re: [UMN_MAPSERVER-USERS] How do I hide a layer from WMS
GETCAPABILITIES XML?


> Hi,
>
> not possible yet.
>
> See:
>
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=337
>
> Best regards,
> Bart
>
> > I'm using the new TYPE TILEINDEX layer (pointed to by an indexed
> > raster
> > layer) and I'd like to prevent this layer from being listed in the
> > GETCAPABILITIES XML (and hence listed as a "valid" layer in various
> > WMS clients).
> >
> > Any thoughts?
> >
> >
> > Windows2000, IIS 5.0
> > MapServer version 4.4.0  OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
> > OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
> > INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
> >
> > Thanks!
> > Brent Fraser
> > GeoAnalytic Inc.
> > Tel:(403) 213-2700
> > bfraser at geoanalytic.com
> > www.geoanalytic.com



More information about the MapServer-users mailing list