[mapserver-users] 2 layers shown when 1 requested
Jeff McKenna
jmckenna at gatewaygeomatics.com
Thu Oct 17 12:14:18 PDT 2013
A nice quick way to test requesting a single layer is to use the shp2img
commandline utility and pass it the layer name with the "-l" switch.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 2013-10-14 5:44 AM, martijnvdp wrote:
> 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
>
>
More information about the MapServer-users
mailing list