Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tileindex Layer and WMS Get Capabilities. #1952

Closed
mapserver-bot opened this issue Apr 3, 2012 · 11 comments
Closed

Tileindex Layer and WMS Get Capabilities. #1952

mapserver-bot opened this issue Apr 3, 2012 · 11 comments

Comments

@mapserver-bot
Copy link

Reporter: dnadeau@pop600.gsfc.nasa.gov
Date: 2006/10/31 - 17:01
Trac URL: http://trac.osgeo.org/mapserver/ticket/1952
When a client perform a Get Capabilities, all "tileindex" layers should not be
displayed. WMS clients may try to get data from this layer and the request will
fail.

Can we add a STATUS flag to hide some layers from a Get Capability request?

Here is an example where the first layer should not be displayed in a Get Capability request.

#
#  TRMM_3B42_V6_10-DAY Tileindex Layer
#
LAYER
    STATUS ON
    NAME        'TRMM_3B42_V6_10_DAY_IDX'
    TYPE POLYGON
    CONNECTIONTYPE POSTGIS
    CONNECTION  "dbname=mapserver password=**** user=**** port=5432"
    DATA        "the_geom from trmm_3b42_v6_10_day"
    METADATA
                "wms_title"    "3b42_V6_10-day Index"
        END
END


#
#  TRMM_3B42_V6_10_DAY Tileindex Layer
#

LAYER
    NAME 'TRMM_3B42_V6_10_DAY'
    TYPE RASTER
    STATUS ON
    DEBUG ON

    # Column in postgis table with varchar of the
        # filepath to each image
    TILEITEM             "location"

    TILEINDEX            "TRMM_3B42_V6_10_DAY_IDX"
    PROJECTION
        "init=epsg:4326"
    END

    METADATA
                wms_title       "TRMM_3B42_V6_10_DAY"
                wms_srs         "EPSG:4326"
                wms_extent      "-180 -50.0 180 50.0"
                wms_timeextent  "1998-01-10/2011-12-31"
                wms_timeitem    "time"
                wms_timedefault "2006-03-10"
        END

        OFFSITE 0 0 0
        PROCESSING "SCALE=0,300"
        CLASS
                NAME "TRMM 3B42 R3 10 DAY"
                KEYIMAGE "/precipitation_colorbar.png"
                DEBUG ON
        END
END
@mapserver-bot
Copy link
Author

Author: dnadeau
Date: 2008/01/14 - 14:40
Patch to hide TILEINDEX from GetCapabilities for WMS layers.

@mapserver-bot
Copy link
Author

Author: jmckenna
Date: 2008/01/15 - 16:23
my comments on the dev list:

"...For many clients who have an application mapfile AND a serve-through-wms requirement for their data I have to make a copy of the mapfile and remove certain layers that shouldn't be served through WMS...I wish there was a magical "wms_exclude_layers" metadata item that we could set."

@mapserver-bot
Copy link
Author

Author: dnadeau
Date: 2008/01/16 - 15:59
Jeff,

I did not set "wms_exclude_layers" metadata but

ows_service

if you set this METADATA in the LAYER or WEB section to "none" no layer will be displayed in the GetCapabilities request. This is working only for WMS at this point.

i.e.

#
# AIRX3STD Total H2O Vapor Ascending TILEINDEX Layer''
#
LAYER
        STATUS ON
        NAME        "AIRX3STDTOTH2OVAPAIDX"
        TYPE POLYGON
        CONNECTIONTYPE POSTGIS
        CONNECTION  "dbname=mapserver password=anonymous user=anonymous port=5432"
        DATA        "the_geom from airx3std_005_toth2ovap_a"
        METADATA
                "wms_title"    "AIRS STD Total H2O Vapor Ascending INDEX"
                "ows_service"  "none"  #hide this layer to getcapabilities request
        END
END

I found the discussion thread about this on MPASERVER-DEV mailing list.

http://lists.umn.edu/cgi-bin/wa?S2=MAPSERVER-DEV&X=5005A33B9EDB477B12-&Y=denis.nadeau%40gmail.com&q=tileindex+hide&s=&f=&a=&b=

@mapserver-bot
Copy link
Author

Author: mko
Date: 2009/02/03 - 08:46
correct thread url:
[http://n2.nabble.com/Hide-tileindex-layer-td1997886.html#a7389385]

related discussion thread:
[http://n2.nabble.com/Excluding-certain-layer-types-from-WMS...-td1999863.html]

related tickets:
[http://trac.osgeo.org/mapserver/ticket/300]

[http://trac.osgeo.org/mapserver/ticket/337]

@mapserver-bot
Copy link
Author

Author: dmorissette
Date: 2009/02/26 - 20:35
The page wiki:HidingLayersInOGCWebServices has been created to collect use cases and try to come up with a solution for this ticket and a few related ones.

@mapserver-bot
Copy link
Author

Author: bj
Date: 2011/05/04 - 16:36
Hey, just discovered. I guess it's to late to get this feature it in MapServer 6.0, right?

Any comment from a dev would be helpful gain momentum here.

bj

@mapserver-bot
Copy link
Author

Author: assefa
Date: 2011/05/04 - 16:49
isn't this fixed with http://mapserver.org/trunk/development/rfc/ms-rfc-67.html?

@mapserver-bot
Copy link
Author

Author: dmorissette
Date: 2011/05/04 - 17:30
Yes, RFC 67 provides a mechanism to address this need. The following metadata entry in a tileindex layer should hide it in MapServer 6.0:

METADATA
  "wms_enable_request" "!*"
  ...
END

@mapserver-bot
Copy link
Author

attachment http://trac.osgeo.org/mapserver/attachment/ticket/1952/mapwms.patch :

   Hide Tileindex from WMS GetCapabilities 

@mapserver-bot
Copy link
Author

attachment http://trac.osgeo.org/mapserver/attachment/ticket/1952/mapwms.c.patch :

   updated patch handling grouped layers

@mapserver-bot
Copy link
Author

attachment http://trac.osgeo.org/mapserver/attachment/ticket/1952/ms540b1-hidden-layers.patch :

   Contrary to the original enhancement request, this patch introduces the 'ows_hidden_layer' metadata which hides a layer (e.g. tileindex) from (wms/wfs/wcs/sos) getcapabilities requests. Also solves ticket #2582 (but not #337 hence it does only hide the layer). The html printer doesn't show the complete patch for some reason, please view the raw format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant