Layers do not show up?
Ethan Alpert
ealpert at DIGITALGLOBE.COM
Thu Feb 10 15:23:31 PST 2005
You have more than one problem here.
Before going to the interactive map try using mode=map.
for example:
http://132.205.108.60/cgi-bin/mapserv?map=/var/www/cgi-bin/ogr.map&mode=
map&layer=myroads
Looks like your shapepath is wrong.
-e
-----Original Message-----
From: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of w m
Sent: Thursday, February 10, 2005 1:45 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Layers do not show up?
Hi,
I was making a simple map file. I'm able to display the map,
but when i add the "landcover" layers, they don't show up on the map.
I'm not sure why it doesn't show up???
Also, does it matter if I include the fontset? what is it used
for?
WHat is the purpose of IMAGEPATH and IMAGEURL? If I don't
include these it doesn't make a difference. Why is that?
The legend doesn't show up either.
It can be viewed here: http://132.205.108.60
I put all my files in the cgi-bin along with mapserver.
NAME europe
STATUS ON
IMAGETYPE PNG
IMAGECOLOR 255 255 255 # white background
EXTENT 407.997812 4103475.750 443135.000 4157027.250
#FONTSET "/usr/local/etc/htdocs/mapserver/fonts/fonts.list"
SIZE 500 500
SHAPEPATH "/var/www/cgi-bin"
# Set your template file to the name of YOUR template file
# you can leave the image path and image URL alone
WEB
TEMPLATE "/var/www/html/index.html"
IMAGEPATH "/usr/local/etc/htdocs/tmp/"
IMAGEURL "/tmp/"
END
LEGEND
STATUS ON
LABEL
TYPE TRUETYPE
FONT arial
COLOR 0 0 0
SIZE 10
ANTIALIAS TRUE
END
END
# LAYER DEFINITIONS
---------------------------------------------
LAYER
NAME "myoutline"
DATA europa
STATUS DEFAULT # Show the layer at all times
TYPE LINE
CLASS
COLOR 0 0 0
OUTLINECOLOR 255 120 60
END
END
LAYER
NAME "credits"
STATUS DEFAULT
TRANSFORM FALSE
TYPE ANNOTATION
FEATURE
POINTS
50 480 # changes the location of the text
END
TEXT 'Europe Map'
END
CLASS
LABEL
TYPE BITMAP
POSITION CR
COLOR 255 120 60
END
END
END
LAYER #
NAME "mylandcover"
DATA nhtm93s3
STATUS ON # show layer, but allow it to be turned off
TYPE POLYGON # choices for type are POLYGON, LINE and POINT
CLASSITEM "LANDCOVER"
CLASS # water
NAME "Water"
EXPRESSION 'Water' # match only those where [landcover]='Water'
COLOR 225 225 255
OUTLINECOLOR 0 0 0
END
CLASS # grassland
NAME "Grassland"
EXPRESSION /Planted*/ # search for landcovers starting with
Planted
COLOR 0 240 0
OUTLINECOLOR 0 0 0
END
CLASS # forest
NAME "Forest"
EXPRESSION /Forest*/
COLOR 200 140 0
OUTLINECOLOR 0 0 0
END
CLASS # salt marsh
NAME "Salt Marsh"
EXPRESSION /Salt*/
COLOR 0 200 140
OUTLINECOLOR 0 0 0
END
CLASS # sand
NAME "Sand"
EXPRESSION /Bare*/
COLOR 240 240 240
OUTLINECOLOR 0 0 0
END
END # end of layer object
LAYER
NAME "myroads"
DATA rtf100k
STATUS ON
TYPE line
CLASS
NAME Roads
COLOR 200 0 200
OUTLINECOLOR 0 0 0
END # end of class
END # end of layer object
END # end of map file
________________________________
Do you Yahoo!?
Yahoo! Mail
<http://us.rd.yahoo.com/mail_us/taglines/security/*http://promotions.yah
oo.com/new_mail/static/protection.html> - You care about security. So
do we.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050210/f7cfba3c/attachment.htm>
More information about the MapServer-users
mailing list