Display a map using Tiger data
ryan
ryant at CS.UTAH.EDU
Tue Apr 19 12:30:45 PDT 2005
Hi,
I'm having trouble displaying a map of street data i got from the tiger LINE
project. mapserv doesn't give me any errors, just shows a blank png. I can
run the demo stuff fine. I've also tried changing STATUS from ON to OFF to
DEFAULT in my mapfile. Also, I don't know for sure what the extent of my
map should be, but i'm passing 1.00, 1.00, 50000.00, 50000.00 because i can
use arcexplorer on my windows machine to find that the dimensions of the map
are about 50Km by 50Km.
Here is the web address i access:
http://localhost/cgi-bin/mapserv?map=/usr/bin/apache/htdocs/mapserver/simple.map&mode=map&layer=Freeways&mapext=1.00%201.00%2050000.00%2050000.00&imgsize=300%20300
And my map file is here:
#-------start of map file---------------#
NAME sampleMapServer
# the below extents and size are provided in the URL and so must be removed
#EXTENT 482925.85 3625874.39 497393.16 3617143.43
#SIZE 300 300
SHAPEPATH "data"
UNITS meters
#all layers default to off.
# Note that the layers are drawn depending on their order in this file, from
top to bottom, and
LAYER
NAME Freeways
TYPE LINE
DATA tgr49035lkA
STATUS DEFAULT
CLASS
COLOR 255 0 0
END # end of class object
END # end of layer object
END # end of map file
#-------end of map file---------------#
I've also put my shapefiles online if anyone would care to look at them:
http://www.cs.utah.edu/~ryant/mapserver/
This is a SuSE linux machine. mapserver was compiled with the following
configure command:
./configure --with-postgis --with-jpeg=/usr/bin/jpeg
--prefix=/usr/bin/mapserver --with-httpd=/usr/bin/apache/bin/httpd
--with-proj=/usr/bin/proj4
Thanks for any help. I've been banging my head against my desk and
searching through all the documentation for a few days now. I really
appreciate anything you could throw my way.
Ryan T.
More information about the MapServer-users
mailing list