display two layers at same time
Marco Cerruti
cerruti.marco at GMAIL.COM
Tue May 8 08:05:50 PDT 2007
It looks that your map file has too many "END" for each layer.
Should be something like this:
LAYER
NAME "Build"
STATUS default
TYPE line
DATA "build"
CLASS
STYLE
COLOR 0 0 0
END # ends style
END # ends class
END # ends layer
I think the fourth END for the first LAYER ends the whole map file.
M
2007/5/8, AMAL OMAR <amal_osaad2003 at yahoo.com>:
>
> Hi all,
>
> can any one tell me why some times cant display two layers at same time, I
> have done some example with no problem but when I tried display my vectors
> layers I couldn't
>
> * thank you Advice*
>
> this my map file:
>
> # This is our first map file
> NAME "cis1"
> SIZE 400 300
> EXTENT 217500.00 3639400.03 217800.00 3639700.75
> UNITS METERS
>
> ####################################################
> PROJECTION
> proj=longlat
> ellps=WGS84
> datum=WGS84
> no_defs
> END
>
> ######################################################
> IMAGECOLOR 255 255 255
> IMAGETYPE JPEG
> SHAPEPATH "/ms4w/home/mapdata/cis/"
>
> #####################################################
> WEB
> TEMPLATE '/ms4w/var/www/htdocs/cis1.html'
> IMAGEPATH '/ms4w/var/www/htdocs/tmp/'
> IMAGEURL '/tmp/'
> END
> ######################################################
>
> LAYER
> NAME "Build"
> STATUS default
> TYPE line
> DATA "build"
> CLASS
> STYLE
> COLOR 0 0 0
> END
> END
> END
> END
> ######################################################
>
> LAYER
> NAME "PBuild"
> STATUS default
> TYPE line
> DATA "build1"
> CLASS
> STYLE
> COLOR 0 255 0
> END
> END
> END
> END
> ######################################################
>
> LAYER
> NAME "public pbuilding"
> STATUS default
> TYPE line
> DATA "pbuilding"
> CLASS
> STYLE
> COLOR 255 0 0
> END
> END
> END
> END
> END
>
> ------------------------------
> Sucker-punch spam with award-winning protection.
> Try the free Yahoo! Mail Beta.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070508/24346076/attachment.htm>
More information about the MapServer-users
mailing list