[mapserver-users] 2 layers shown when 1 requested

Basques, Bob (CI-StPaul) bob.basques at ci.stpaul.mn.us
Thu Oct 17 12:15:38 PDT 2013


Usually DEFAULT will return a layer by default, using a STATUS of OFF will wait for a specific REQUEST to ask for a particular layer.

Bobb



>  -----Original Message-----
>  From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-
>  users-bounces at lists.osgeo.org] On Behalf Of martijnvdp
>  Sent: Monday, October 14, 2013 3:45 AM
>  To: mapserver-users at lists.osgeo.org
>  Subject: [mapserver-users] 2 layers shown when 1 requested
>  
>  Hello,
>  I have a mapfile with several layers that use ogr resources. When
>  I request
>  1 of these layers, they return a image with both the layers
>  presented. Is this a bug or am I doing something wrong in the
>  mapfile?
>  This is the part of that mapfile:
>  
>  ......
>  ......
>  
>  
>  #-------
>  #
>  # layera
>  #-------
>  LAYER
>      NAME "station_tt"
>      DEBUG 5
>      STATUS DEFAULT
>      TYPE POINT
>       METADATA
>              	"wms_enable_request" "*"
>              	"gml_include_items" "all"
>              	"wms_feature_info_mime_type" "html"
>       END  #METADATA
>      CONNECTIONTYPE OGR
>      CONNECTION "mysql-tt.ovf"
>      DATA "tt_data"
>      LABELITEM 'val_tt'
>      LABELCACHE OFF
>  
>  
>      CLASS
>        NAME "ttClass"
>        STYLE
>          SYMBOL 'circle'
>          SIZE 10
>          COLOR 215 0 76
>  
>        END  #STYLE
>        LABEL
>        	POSITION UC
>    	FONT sans
>    	TYPE TRUETYPE
>    	TEXT ( tostring([val_tt],"%.1f")+" C")
>    	COLOR 0 0 0
>    	OUTLINECOLOR 255 255 128
>    	SIZE 7
>        END  #LABEL
>      END   #CLASS
>  
>  
>  DUMP TRUE
>  END #LAYER
>  
>  END
>  
>  
>  #-------------------------------------------------
>  #
>  # layerb
>  #-------------------------------------------------
>  
>  LAYER
>    NAME "station_rh"
>    DEBUG 5
>    STATUS DEFAULT
>    TYPE POINT
>     METADATA
>            	"wms_enable_request" "*"
>            	"gml_include_items" "all"
>     END
>    CONNECTIONTYPE OGR
>    CONNECTION "mysql-rh.ovf"
>    DATA "rh_data"
>    LABELITEM 'val_rh'
>    LABELCACHE OFF
>  
>    CLASS
>      NAME "rhClass"
>      STYLE
>        SYMBOL 'circle'
>        SIZE 10
>        COLOR 215 0 76
>  
>      END
>  	LABEL
>  	    POSITION LC
>  	    FONT sans
>  	    TYPE TRUETYPE
>  	    TEXT ( tostring([val_rh],"%.0f")+"%")
>  	    COLOR 0 0 0
>  	    OUTLINECOLOR 255 255 128
>  	    SIZE 7
>  	END #LABEL
>    END  #CLASS
>  
>  
>    DUMP TRUE
>  END #LAYER -----------------------------------------
>  
>  
>  END # MAP
>  
>  
>  
>  --
>  View this message in context: http://osgeo-
>  org.1560.x6.nabble.com/2-layers-shown-when-1-requested-
>  tp5083367.html
>  Sent from the Mapserver - User mailing list archive at Nabble.com.
>  _______________________________________________
>  mapserver-users mailing list
>  mapserver-users at lists.osgeo.org
>  http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list