Hi Jon,<br><br>You don't appear to have any projection info in your map file. Since you have "UNITS dd" in it, I assume you want to display the map in lat/lon WGS84? If so, your MAP file needs an entry that looks like this:<br>
<br> PROJECTION<br> "init=epsg:4326"<br> END<br><br>and your usgs LAYER (the name should be quoted btw) should have the UTM projection defined in it, like this:<br><br>LAYER<br> NAME "usgs"<br> PROJECTION "init=epsg:26719" END<br>
<br>Best of luck,<br><br>Roger<br>--<br><br><br><br><br><div class="gmail_quote">On Fri, Jan 29, 2010 at 4:38 AM, Jon Miner <span dir="ltr"><<a href="mailto:cp_n18@yahoo.com">cp_n18@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
<br>
Hi -<br>
<br>
I'm new to Mapserver, and so far impressed by it's capabilities. I've installed the FGS package via fgs-mapserver_basic_5.6.0-fgs_9.5-linux-i386.bin and played with their demo program.<br>
<br>
I'm having a problem with a USGS DRG file that is encoded as a GeoTIFF file. It doesn't display on the webpage, and I'm not sure where to start debugging this. I've checked the file with gdalinfo:<br>
<br>
Driver: GTiff/GeoTIFF<br>
Files: o43071a4.tif<br>
Size is 5388, 6854<br>
Coordinate System is:<br>
PROJCS["NAD27 / UTM zone 19N",<br>
GEOGCS["NAD27",<br>
DATUM["North_American_Datum_1927",<br>
SPHEROID["Clarke 1866",6378206.4,294.9786982138982,<br>
AUTHORITY["EPSG","7008"]],<br>
AUTHORITY["EPSG","6267"]],<br>
PRIMEM["Greenwich",0],<br>
UNIT["degree",0.0174532925199433],<br>
AUTHORITY["EPSG","4267"]],<br>
PROJECTION["Transverse_Mercator"],<br>
PARAMETER["latitude_of_origin",0],<br>
PARAMETER["central_meridian",-69],<br>
PARAMETER["scale_factor",0.9996],<br>
PARAMETER["false_easting",500000],<br>
PARAMETER["false_northing",0],<br>
UNIT["metre",1,<br>
AUTHORITY["EPSG","9001"]],<br>
AUTHORITY["EPSG","26719"]]<br>
Origin = (295125.999493999988772,4778305.842659999616444)<br>
Pixel Size = (2.438400000000000,-2.438400000000000)<br>
Metadata:<br>
AREA_OR_POINT=Area<br>
TIFFTAG_IMAGEDESCRIPTION=USGS GeoTIFF DRG 1:24000 Quad of Manchester North. Product:522644<br>
TIFFTAG_SOFTWARE=USGS CD Archiver program tif2usgsdrg v.1.0<br>
TIFFTAG_DATETIME=1997:01:10 07:16:28<br>
TIFFTAG_XRESOLUTION=72<br>
TIFFTAG_YRESOLUTION=72<br>
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)<br>
Image Structure Metadata:<br>
COMPRESSION=PACKBITS<br>
INTERLEAVE=BAND<br>
Corner Coordinates:<br>
Upper Left ( 295125.999, 4778305.843) ( 71d31'7.66"W, 43d 7'54.16"N)<br>
Lower Left ( 295125.999, 4761593.049) ( 71d30'45.52"W, 42d58'52.88"N)<br>
Upper Right ( 308264.099, 4778305.843) ( 71d21'26.67"W, 43d 8'6.54"N)<br>
Lower Right ( 308264.099, 4761593.049) ( 71d21'5.95"W, 42d59'5.20"N)<br>
Center ( 301695.049, 4769949.446) ( 71d26'6.44"W, 43d 3'29.80"N)<br>
Band 1 Block=5388x1 Type=Byte, ColorInterp=Palette<br>
Color Table (RGB with 256 entries)<br>
0: 0,0,0,255<br>
1: 255,255,255,255<br>
2: 0,151,164,255<br>
3: 203,0,23,255<br>
4: 131,66,37,255<br>
5: 201,234,157,255<br>
6: 137,51,128,255<br>
7: 255,234,0,255<br>
8: 167,226,226,255<br>
9: 255,184,184,255<br>
10: 218,179,214,255<br>
11: 209,209,209,255<br>
12: 207,164,142,255<br>
(etc...)<br>
<br>
And my map file looks like this:<br>
<br>
MAP<br>
NAME DEMO<br>
STATUS ON<br>
SIZE 400 300<br>
SYMBOLSET ../etc/symbols.sym<br>
EXTENT -72 42 -71 44<br>
UNITS dd<br>
SCALEDENOM 24000<br>
SHAPEPATH "../data"<br>
IMAGECOLOR 255 255 255<br>
FONTSET ../etc/fonts.txt<br>
CONFIG "MS_ERRORFILE" "/tmp/ms_error.txt"<br>
#<br>
# Start of web interface definition<br>
#<br>
WEB<br>
MINSCALEDENOM 24000<br>
MAXSCALEDENOM 24000<br>
#<br>
# On Windows systems, /tmp and /opt/fgs/tmp/ms_tmp/ should be created at the root<br>
# of the drive where the .MAP file resides.<br>
#<br>
IMAGEPATH "/opt/fgs/tmp/ms_tmp/"<br>
IMAGEURL "/ms_tmp/"<br>
LOG "/tmp/gmap.log"<br>
END<br>
<br>
LAYER<br>
NAME usgs<br>
METADATA<br>
"DESCRIPTION" "USGS GeoTIFF"<br>
END<br>
TYPE RASTER<br>
STATUS ON<br>
DATA o43071a4.tif<br>
END<br>
<br>
END # Map File<br>
<br>
<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br>