<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>.hmmessage P {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV><SPAN class=577042114-07092007><FONT face=Arial color=#0000ff>Chris,
</FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial color=#0000ff>I see two
parts to this: </FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial color=#0000ff>1. To
get your map file properly set up</FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial color=#0000ff>2. To
confirm that your image is properly georeferenced. </FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial color=#0000ff>For the map
file: </FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial color=#0000ff>Have you
looked at the Raster Data HowTo? </FONT></SPAN><SPAN
class=577042114-07092007><FONT face=Arial color=#0000ff><A
href="http://mapserver.gis.umn.edu/docs/howto/raster_data">http://mapserver.gis.umn.edu/docs/howto/raster_data</A>
This should give you some simple examples.</FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial color=#0000ff>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</FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial color=#0000ff>sent in the
last email will make it easier.</FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial color=#0000ff>Get rid of
the EXTENT line in your LAYER, I don't believe that this property
exists.</FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial color=#0000ff>Set your
LAYER STATUS to DEFAULT. </FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial color=#0000ff>Get rid of
the CLASS block in your LAYER.</FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial color=#0000ff>For the
image, run gdalinfo on it and see if the georeferencing information is
correct. You can get gdalinfo at <A
href="http://www.gdal.org/">http://www.gdal.org/</A></FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff>David.</FONT></SPAN></DIV>
<DIV><SPAN class=577042114-07092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma>-----Original Message-----<BR><B>From:</B> UMN MapServer Users
List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Christopher
Harris<BR><B>Sent:</B> Friday, September 07, 2007 9:18 AM<BR><B>To:</B>
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B>
[UMN_MAPSERVER-USERS]<BR><BR></FONT></DIV>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.<BR><BR>Here is my map
file:<BR><BR>MAP<BR> NAME
UniversityOfIllinois<BR> STATUS ON<BR>
SIZE 600 500<BR> IMAGETYPE GIF<BR>
PROJECTION<BR>
"proj=utm"<BR> "ellps=WGS84"
<BR> "datum=NAD83"<BR>
"zone=16"<BR>
"units=m"<BR>
"north"<BR> END<BR> EXTENT 393898 4438945
396253 4441379 #image is 1747 X 1916 pixels<BR> UNITS
METERS<BR> SHAPEPATH
"/var/www/mapserver/basic/data/illinois/"<BR> IMAGECOLOR 255
255 255<BR> <BR>
OUTPUTFORMAT<BR> NAME
thegif<BR> DRIVER
"GD/GIF"<BR> MIMETYPE
"image/gif"<BR> IMAGEMODE
RGB<BR> EXTENSION
"gif"<BR> END<BR><BR>
WEB<BR> IMAGEPATH
"/var/www/mapserver/basic/images/"<BR>
IMAGEURL "/mapserver/basic/images/"<BR>
END<BR> <BR>
#REFERENCE<BR> #IMAGE
/var/www/mapserver/basic/data/illinois/colorUofIllinoisGIF.gif<BR>
# location of the image<BR>
#EXTENT 393898 4438945 396253 4441379<BR>
# extent of the image<BR>
#STATUS ON<BR> # the
overview is on by default<BR> #COLOR -1
-1 -1<BR> # transparent
background<BR> #OUTLINECOLOR 255 0
0<BR> # the color of the
outline<BR> #SIZE 1747
1916<BR> # the size of the image in
pixels<BR> #END<BR><BR>
LAYER<BR> NAME "UofI"<BR>
DATA "colorUofIllinoisGIF.gif"<BR>
TYPE RASTER<BR>
STATUS ON<BR>
PROJECTION<BR>
"proj=utm"<BR>
"ellps=WGS84" <BR>
"datum=NAD83"<BR>
"zone=16"<BR>
"units=m"<BR>
"north"<BR> END<BR>
EXTENT 393898 4438945 396253 4441379<BR>
CLASS<BR>
EXPRESSION /*/<BR>
COLOR 0 255
0<BR> END<BR>
END <BR>END<BR><BR><BR>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!<BR><BR> - Chris<BR>
<HR>
Kick back and relax with hot games and cool activities at the Messenger Café.
<A href="http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline"
target=_new>Play now!</A> </BLOCKQUOTE></BODY></HTML>