Ah, of course, the status. Now it works. :-)
Well, thank you very much.
Greetings,
Martin Vigerske
Wim Blanken schrieb:
Hello Martin,
Mapserver does not know you want to view the US state boundaries layer.
Two solutions:
1. Give the US State boundaries layer the STATUS DEFAULT instead of ON
2. Include the layername with the layers statement.
http://localhost/cgi-bin/mapserv.exe?map=usa1.map&mode=map&layers=US
state boundaries. It's easier by the way (for a start) that you do not
include spaces in the name of the layer.
Regards,
Wim Blanken
The Netherlands
----- Original Message ----- From: "Martin Vigerske" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, December 17, 2005 1:51 PM
Subject: [UMN_MAPSERVER-USERS] starting-problem: doesn't show the content
Hi,
I am new to the MapServer and tried a demo-mapfile, but it shows me
no Shapefile and no Tiff.
I installed the win-version ms4w (4.6). The demo-mapfile (usa1.map)
came into the directory c:\ms4w\Apache\cgi-bin\, the shapefile
"statesp020" to my own directory c:\ms4w\usr\shapes\. The only thing
I changed in the demo-map was the SHAPEPATH, from
"/var/www/html/data" to "c:\ms4w\usr\shapes\" (and the imagepath, but
that should not be the problem). When I start mapserv with
"http://localhost/cgi-bin/mapserv.exe?map=usa1.map&mode=map", I get a
grey rectangle and the text-layer "Made with Mapserver". The
Mapserver works but it doesn't show me the shapefile.
The same with the example usa3.map which should render a RASTER. I
change the data-path to the path of the tif, but it doesn't show up.
I tried to copy shape and tif directly into the cgi-bin-directory,
where the .map is, but no difference.
I guess mapserver can't find the data.
The log-file isn't very informative:
"Sat Dec 17 13:43:24 2005,3728,127.0.0.1,USA1,3,-8000000.000000
-3162500.000000 5000000.000000 4962500.000000,-1.000000
-1.000000,,normal execution"
Any ideas?
Greetings and thanks,
Martin Vigerske
--- my usa1.map:
MAP
NAME USA1
STATUS ON
SIZE 800 500
IMAGETYPE PNG
IMAGECOLOR 240 240 240
SHAPEPATH "c:\ms4w\usr\shapes\"
EXTENT -8000000 300000 5000000 1500000
UNITS METERS
PROJECTION
"proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100"
"x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83"
END
WEB
IMAGEPATH "c:\ms4w\usr\tmp\"
IMAGEURL "\usr\tmp\"
END
LAYER
NAME "US state boundaries"
TYPE POLYGON
STATUS ON
DATA "statesp020"
PROJECTION
"proj=latlong"
"ellps=GRS80"
"datum=NAD83"
END
CLASS
NAME "US states"
OUTLINECOLOR 60 60 60
COLOR 255 255 0
SYMBOL 0
END
END
LAYER
NAME "credits"
STATUS DEFAULT
TRANSFORM FALSE
TYPE ANNOTATION
FEATURE
POINTS
10 480
END
TEXT 'Made with Mapserver.'
END
CLASS
LABEL
TYPE BITMAP
POSITION CR
COLOR 0 0 0
END
END
END
END