starting-problem: doesn't show the content
Martin Vigerske
martin at VIGERSKE.DE
Sat Dec 17 04:51:47 PST 2005
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
More information about the MapServer-users
mailing list