<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana,helvetica,sans-serif;font-size:10pt">Hi Roger -<br><br>Thanks for the advice, but no change.&nbsp; I did stumble across the advice to try to run "shp2img" and even with debug set to "5", get very little debugging information.<br><br># shp2img -m test.map -all_debug 5 -o test.png<br>GDAL: GDALOpen(/opt/fgs/apps/gmap-demo-cvs_MS_VERSION_54/htdocs/./../data/o43071a4.tif, this=0x9bd61b0) succeeds as GTiff.<br>GDAL: GDALDeregister_GTiff() called.<br><br>The resulting test.png ends up being all white.<br><br>The actual TIFF file (10MB) can be found here:<br><br><span><a target="_blank" href="http://trainguy.dyn.dhs.org/%7Ejminer/o43071a4.tif">http://trainguy.dyn.dhs.org/~jminer/o43071a4.tif</a></span><br><br>Thanks<br><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new
 york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Roger André &lt;randre@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Jon Miner &lt;cp_n18@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> mapserver-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Fri, January 29, 2010 4:16:08 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [mapserver-users] New to mapserver; question about USGS  DRG/GeoTIFF files<br></font><br>
Hi Jon,<br><br>You don't appear to have any projection info in your map file.&nbsp; Since you have "UNITS dd" in it, I assume you want to display the map in lat/lon WGS84?&nbsp; If so, your MAP file needs an entry that looks like this:<br>
<br>&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp; "init=epsg:4326"<br>&nbsp; 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>&nbsp; NAME "usgs"<br>&nbsp; PROJECTION&nbsp; "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">&lt;<a rel="nofollow" ymailto="mailto:cp_n18@yahoo.com" target="_blank" href="mailto:cp_n18@yahoo.com">cp_n18@yahoo.com</a>&gt;</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. &nbsp;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. &nbsp;It doesn't display on the webpage, and I'm not sure where to start debugging this. &nbsp;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>
 &nbsp; &nbsp;GEOGCS["NAD27",<br>
 &nbsp; &nbsp; &nbsp; &nbsp;DATUM["North_American_Datum_1927",<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SPHEROID["Clarke 1866",6378206.4,294.9786982138982,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AUTHORITY["EPSG","7008"]],<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AUTHORITY["EPSG","6267"]],<br>
 &nbsp; &nbsp; &nbsp; &nbsp;PRIMEM["Greenwich",0],<br>
 &nbsp; &nbsp; &nbsp; &nbsp;UNIT["degree",0.0174532925199433],<br>
 &nbsp; &nbsp; &nbsp; &nbsp;AUTHORITY["EPSG","4267"]],<br>
 &nbsp; &nbsp;PROJECTION["Transverse_Mercator"],<br>
 &nbsp; &nbsp;PARAMETER["latitude_of_origin",0],<br>
 &nbsp; &nbsp;PARAMETER["central_meridian",-69],<br>
 &nbsp; &nbsp;PARAMETER["scale_factor",0.9996],<br>
 &nbsp; &nbsp;PARAMETER["false_easting",500000],<br>
 &nbsp; &nbsp;PARAMETER["false_northing",0],<br>
 &nbsp; &nbsp;UNIT["metre",1,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;AUTHORITY["EPSG","9001"]],<br>
 &nbsp; &nbsp;AUTHORITY["EPSG","26719"]]<br>
Origin = (295125.999493999988772,4778305.842659999616444)<br>
Pixel Size = (2.438400000000000,-2.438400000000000)<br>
Metadata:<br>
 &nbsp;AREA_OR_POINT=Area<br>
 &nbsp;TIFFTAG_IMAGEDESCRIPTION=USGS GeoTIFF DRG 1:24000 Quad of Manchester North. Product:522644<br>
 &nbsp;TIFFTAG_SOFTWARE=USGS CD Archiver program tif2usgsdrg v.1.0<br>
 &nbsp;TIFFTAG_DATETIME=1997:01:10 07:16:28<br>
 &nbsp;TIFFTAG_XRESOLUTION=72<br>
 &nbsp;TIFFTAG_YRESOLUTION=72<br>
 &nbsp;TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)<br>
Image Structure Metadata:<br>
 &nbsp;COMPRESSION=PACKBITS<br>
 &nbsp;INTERLEAVE=BAND<br>
Corner Coordinates:<br>
Upper Left &nbsp;( &nbsp;295125.999, 4778305.843) ( 71d31'7.66"W, 43d 7'54.16"N)<br>
Lower Left &nbsp;( &nbsp;295125.999, 4761593.049) ( 71d30'45.52"W, 42d58'52.88"N)<br>
Upper Right ( &nbsp;308264.099, 4778305.843) ( 71d21'26.67"W, 43d 8'6.54"N)<br>
Lower Right ( &nbsp;308264.099, 4761593.049) ( 71d21'5.95"W, 42d59'5.20"N)<br>
Center &nbsp; &nbsp; &nbsp;( &nbsp;301695.049, 4769949.446) ( 71d26'6.44"W, 43d 3'29.80"N)<br>
Band 1 Block=5388x1 Type=Byte, ColorInterp=Palette<br>
 &nbsp;Color Table (RGB with 256 entries)<br>
 &nbsp; &nbsp;0: 0,0,0,255<br>
 &nbsp; &nbsp;1: 255,255,255,255<br>
 &nbsp; &nbsp;2: 0,151,164,255<br>
 &nbsp; &nbsp;3: 203,0,23,255<br>
 &nbsp; &nbsp;4: 131,66,37,255<br>
 &nbsp; &nbsp;5: 201,234,157,255<br>
 &nbsp; &nbsp;6: 137,51,128,255<br>
 &nbsp; &nbsp;7: 255,234,0,255<br>
 &nbsp; &nbsp;8: 167,226,226,255<br>
 &nbsp; &nbsp;9: 255,184,184,255<br>
 &nbsp; 10: 218,179,214,255<br>
 &nbsp; 11: 209,209,209,255<br>
 &nbsp; 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>
 &nbsp;MINSCALEDENOM 24000<br>
 &nbsp;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>
 &nbsp;IMAGEPATH "/opt/fgs/tmp/ms_tmp/"<br>
 &nbsp;IMAGEURL "/ms_tmp/"<br>
 &nbsp;LOG "/tmp/gmap.log"<br>
END<br>
<br>
LAYER<br>
 &nbsp;NAME usgs<br>
 &nbsp;METADATA<br>
 &nbsp; &nbsp;"DESCRIPTION" "USGS GeoTIFF"<br>
 &nbsp;END<br>
 &nbsp;TYPE RASTER<br>
 &nbsp;STATUS ON<br>
 &nbsp;DATA o43071a4.tif<br>
END<br>
<br>
END # Map File<br>
<br>
<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a rel="nofollow" ymailto="mailto:mapserver-users@lists.osgeo.org" target="_blank" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><span>
<a target="_blank" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></span><br>
</blockquote></div><br>
</div></div>
<!-- cg38.c4.mail.gq1.yahoo.com compressed/chunked Wed Jan 27 14:49:00 PST 2010 -->
</div><br>

      </body></html>