[mapserver-users] Cascading Mapserver - WMS client - GetLegendGraphic ?

Pierre GIRAUD bluecarto at gmail.com
Fri Jun 17 09:33:19 EDT 2011


Can someone please confirm that cascading getLegendGraphic is not supported ?

Thanks.

Pierre

On Fri, May 20, 2011 at 6:34 AM, Andrew Cowie
<CowieA at landcareresearch.co.nz> wrote:
> Hello list,
>
>
>
> We have a cascading WMS using Mapserver as a client to request maps from
> another Mapserver. We have it working well, however we are wondering whether
> it is possible to do a GetLegendGraphic request to this top level Mapserver
> and have it in turn pass on that request to the underlying mapserver, which
> would then return the legend graphic.
>
>
>
> Here’s a snippet of our ‘top level’ Mapserver mapfile, which sits on our
> public server:
>
> ...
>
>        LEGEND
>
>               STATUS OFF
>
>               KEYSIZE 30 15
>
>               KEYSPACING 10 10
>
>               LABEL
>
>                      COLOR 0 0 0
>
>                      FONT 'arialbd'
>
>                      TYPE truetype
>
>                      SIZE 10
>
>               END
>
>        END
>
>        LAYER
>
>               NAME ‘coastpoly’
>
>               TYPE RASTER
>
>               CONNECTIONTYPE WMS
>
>               CONNECTION "http://ourprivateserver/wms?"
>
>               PROCESSING "CLOSE_CONNECTION=DEFER"
>
>
>
>               METADATA
>
>                      "wms_name"                  "coastpoly"
>
>                      "wms_title"                 "Topographic Coastline
> Polygons"
>
>                      "wms_server_version"        "1.1.1"
>
>                      "wms_format"                "image/png"
>
>                      "wms_srs"                   "EPSG:2193 EPSG:27200
> EPSG:4326"
>
>               END
>
>        END
>
> ...
>
>
>
> And a snippet from our underlying Mapserver:
>
> ...
>
>        LEGEND
>
>               STATUS OFF
>
>               KEYSIZE 30 15
>
>               KEYSPACING 10 10
>
>               LABEL
>
>                      COLOR 0 0 0
>
>                      FONT 'arialbd'
>
>                      TYPE truetype
>
>                      SIZE 10
>
>               END
>
>        END
>
>        LAYER
>
>               NAME 'coastpoly'
>
>               TYPE POLYGON
>
>               STATUS OFF
>
>               CONNECTIONTYPE postgis
>
>               CONNECTION "dbname='ourdb' host=’ourprivateserver’ port=5432
> user='user' password=pass"
>
>               PROCESSING "CLOSE_CONNECTION=DEFER"
>
>               DATA 'the_geom FROM "data"."coastlinepoly" USING UNIQUE gid
> USING srid=2193'
>
>               PROJECTION
>
>                      "proj=tmerc" "lat_0=0" "lon_0=173" "k=0.9996"
> "x_0=1600000" "y_0=10000000" "ellps=GRS80" "towgs84=0,0,0,0,0,0,0"
> "units=m"
>
>               END
>
>               EXTENT 983515.7211 4728776.8709 2117458.3527 6223676.2306
>
>               METADATA
>
>                      "wms_name"                  "coastpoly"
>
>                      "wms_title"                 "Topographic Coastline
> Polygons"
>
>                      "wms_version"               "1.1.1"
>
>                      "wms_format"                "image/png"
>
>                      "wms_srs"                   "EPSG:2193 EPSG:27200
> EPSG:4326"
>
>                      "wms_abstract"
> "Abstract"
>
>               END
>
>               CLASS
>
>                      NAME 'Coast Polygon'
>
>                      STYLE
>
>                             COLOR 225 223 197
>
>                      END
>
>               END
>
>        END
>
> ...
>
>
>
> I think we may be missing something obvious here, so any ideas greatly
> appreciated... J
>
>
>
> Andrew
>
>
>
> ________________________________
> Please consider the environment before printing this email
> Warning: This electronic message together with any attachments is
> confidential. If you receive it in error: (i) you must not read, use,
> disclose, copy or retain it; (ii) please contact the sender immediately by
> reply email and then delete the emails.
> The views expressed in this email may not be those of Landcare Research New
> Zealand Limited. http://www.landcareresearch.co.nz
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>



-- 
Pierre GIRAUD
http://www.camptocamp.com


More information about the mapserver-users mailing list