Layer on/off - Legend line/polygon

Till Adams adams at TERRESTRIS.DE
Mon Aug 22 06:41:07 EDT 2005


Leopold Schefcik (MULTIMEDIAPLAN.AT) wrote:
> Hi list,
> 
> 2 questions:
> 
> 1. Below there are the definitions of two layers. I want the second one to
> be shown at start, the first not.
> So I put once STATUS OFF and once STATUS ON. But both layers are shown.
> 
> 2. In the legend there are the polygon layers shown correctly (if they have
> a fill color). But the TYPE LINE layers-signature aren't shown in the
> legend. Why?3
> 
> thx Leopold
> 
> 
> the user-interface:
> http://213.47.127.15:8081/mapbender/frames/login.php?&gui_id=centrope_test&n
> ame=centrope_test_user&password=test
> 
> --------------------------------------
> the layers:
> 
>  LAYER
>     NAME "gewaesser_noe"
>     STATUS OFF
>     DATA "AT_AT_NATUR_HYDSP_WATERCOURSES_2000"
>     TYPE LINE
>     UNITS METERS
>     SIZEUNITS PIXELS
>     TOLERANCE 0
>     TOLERANCEUNITS PIXELS
>     METADATA
>       "wms_title"    "Gewaesser_Noe"
>       "DESCRIPTION"    "Wasser"
>       "WMS_SRS"    "EPSG:31287 EPSG:4326 EPSG:31466 EPSG:31467"
>     END
>     CLASS
>       NAME "gewaesser_noe"
>       STYLE
>         SYMBOL 0
>         COLOR 199 195 240
>         OUTLINECOLOR 106 105 199
>         SIZE 1
>         MINSIZE 1
>         MAXSIZE 100
>       END
>       STYLE
>         SYMBOL 0
>         COLOR 0 0 255
>         BACKGROUNDCOLOR 251 148 112
>         SIZE 1
>         MINSIZE 1
>         MAXSIZE 100
>       END
>     END
>   END
>   LAYER
>     NAME "flora_fauna_habitat"
>     STATUS ON
>     DATA "AT_NO_LEGAL_NATUR_NATURA2000FFH_2003"
>     TYPE POLYGON
>     UNITS METERS
>     SIZEUNITS PIXELS
>     TOLERANCE 0
>     TOLERANCEUNITS PIXELS
>     METADATA
>       "wms_title"    "Flora_Fauna_Habitat"
>       "DESCRIPTION"    "Natura_2000_Gebiete"
>       "WMS_SRS"    "EPSG:31287 EPSG:4326 EPSG:31466 EPSG:31467"
>     END
>     CLASS
>       NAME "flora_fauna_habitat"
>       STYLE
>         SYMBOL 0
>         COLOR 0 209 0
>         BACKGROUNDCOLOR 251 148 112
>         SIZE 1
>         MINSIZE 1
>         MAXSIZE 100
>       END
>     END
>   END

Leopold,

use the mapbender module "Edit GUI WMS" to disable/enable the layer 
initially. Just set a click to "sel_default" to enable ;-)

Till



-- 

Mit freundlichen Grüssen aus Bonn,

Till Adams

******************************************
*  released: AmeiN! ArcMap-Export-2-UMN  *
*        LiveLinux 'WebGIS on CD'        *
*        http://www.terrestris.de        *
******************************************

------------------------------------------

Dipl. Geogr. Till Adams
terrestris, H. Paulsen& T. Adams GbR
Siemensstr. 8 * 53121 Bonn
Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57
info at terrestris.de * http://www.terrestris.de



More information about the mapserver-users mailing list