[Mapserver-users] Can't set the status of a layer to be on.

Eric Bridger eric at gomoos.org
Tue Jun 10 17:29:58 PDT 2003


I don't use cgi mapserver much, but I believe you need to have a query string telling mapserver to turn
the layers ON, e.g. ?layers=counties+States+interstate+river or
?layer=counties&layer=States&layer=interstate&layer=river

You need to construct your form so that layers or layer appears in the form's query string.

Eric Bridger

At 03:50 PM 06/10/2003 -0500, pond bear wrote:
>When I set the status of a layer to be default, it shows. But when I set the status of the layer to be ON, it disappears. Does anybody know the reason? Here is my mapfile:
>
>
>NAME UMAC
>SIZE 658 300
>#EXTENT -104.349976 45.824193 -96.408106 49.111218
>EXTENT -1398289 -441075 779057 576298
>#EXTENT -312640 104632 265792 452180
>IMAGECOLOR 255 255 255
>SHAPEPATH "../shape/"
>
>PROJECTION
> "proj=laea"
> "ellps=WGS84"
> "lat_0=45"
> "lon_0=-100"
> "x_0=0"
> "y_0=0"
>END
>
>WEB
> TEMPLATE "lowerframe.html"
> IMAGEPATH "/usr/local/apache2/htdocs/tmp/"
> IMAGEURL "/tmp/"
>END
>
>
>LAYER # counties
> NAME "counties"
> DATA counties
> #MAXSCALE 8200000
> STATUS default
> TYPE POLYGON
> CLASS
>   OUTLINECOLOR 111 111 111
> END
>END
>
>
>LAYER # States
> NAME "States"
> DATA states
> STATUS default
> TYPE POLYGON
> CLASS
>   OUTLINECOLOR 0 0 0
> END
>END
>
>LAYER # interstate
> NAME "interstate"
> DATA interstate
> STATUS default
> TYPE LINE
> CLASS
>   OUTLINECOLOR 0 128 0
> END
>END
>
>LAYER # river
> NAME "river"
> DATA rivers
> STATUS default
> TYPE LINE
> CLASS
>   OUTLINECOLOR 0 0 128
> END
>END
>
>LAYER # cities
> NAME "cities"
> DATA cities
> STATUS on
> TYPE point
> CLASS
>   OUTLINECOLOR 255 0 0
> END
>END
>
>END
>
>_________________________________________________________________
>Add photos to your messages with MSN 8. Get 2 months FREE*.  
>http://join.msn.com/?page=features/featuredemail
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list