No subject
Fawcett, David
David.Fawcett at STATE.MN.US
Fri Sep 7 07:35:09 PDT 2007
Chris,
I see two parts to this:
1. To get your map file properly set up
2. To confirm that your image is properly georeferenced.
For the map file:
Have you looked at the Raster Data HowTo? http://mapserver.gis.umn.edu/docs/howto/raster_data This should give you some simple examples.
You shouldn't actually need projection blocks unless you are combining data from different projections or serving the data up as a WMS. If you do need to use projections, and your data is in UTM Zone 16, using the epsg definition that I
sent in the last email will make it easier.
Get rid of the EXTENT line in your LAYER, I don't believe that this property exists.
Set your LAYER STATUS to DEFAULT.
Get rid of the CLASS block in your LAYER.
For the image, run gdalinfo on it and see if the georeferencing information is correct. You can get gdalinfo at http://www.gdal.org/
David.
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Harris
Sent: Friday, September 07, 2007 9:18 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS]
No, I'm setting all the parameters (well, as many as I can and understand). I tried to follow the Proj.4 .pdf manual and I was kinda confused what lat_1, lon_1 and lat_2, lon_2 were supposed to be or if I even needed them.
Here is my map file:
MAP
NAME UniversityOfIllinois
STATUS ON
SIZE 600 500
IMAGETYPE GIF
PROJECTION
"proj=utm"
"ellps=WGS84"
"datum=NAD83"
"zone=16"
"units=m"
"north"
END
EXTENT 393898 4438945 396253 4441379 #image is 1747 X 1916 pixels
UNITS METERS
SHAPEPATH "/var/www/mapserver/basic/data/illinois/"
IMAGECOLOR 255 255 255
OUTPUTFORMAT
NAME thegif
DRIVER "GD/GIF"
MIMETYPE "image/gif"
IMAGEMODE RGB
EXTENSION "gif"
END
WEB
IMAGEPATH "/var/www/mapserver/basic/images/"
IMAGEURL "/mapserver/basic/images/"
END
#REFERENCE
#IMAGE /var/www/mapserver/basic/data/illinois/colorUofIllinoisGIF.gif
# location of the image
#EXTENT 393898 4438945 396253 4441379
# extent of the image
#STATUS ON
# the overview is on by default
#COLOR -1 -1 -1
# transparent background
#OUTLINECOLOR 255 0 0
# the color of the outline
#SIZE 1747 1916
# the size of the image in pixels
#END
LAYER
NAME "UofI"
DATA "colorUofIllinoisGIF.gif"
TYPE RASTER
STATUS ON
PROJECTION
"proj=utm"
"ellps=WGS84"
"datum=NAD83"
"zone=16"
"units=m"
"north"
END
EXTENT 393898 4438945 396253 4441379
CLASS
EXPRESSION /*/
COLOR 0 255 0
END
END
END
I have that reference section in there although I really don't know the point behind it. It didn't change a thing, so I commented it out. Thanks so much David for your help!
- Chris
________________________________
Kick back and relax with hot games and cool activities at the Messenger Café. Play now! <http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070907/1d4b107a/attachment.htm>
More information about the MapServer-users
mailing list