Hi,<div><br></div><div>thanks for the ideas. Have tried this and here is what I got back from gdalinfo (I couldnt seem to get ogrinfo to run on my tif files):</div><div><br></div><div><br></div><div><div>D:\ms4w\tools\gdal-ogr&gt;gdalinfo D:\opendata\minisc_gb\MiniScale\data\miniscaleno</div>
<div>grid.tif</div><div>Warning 1: TIFFFetchNormalTag:Incompatible type for &quot;RichTIFFIPTC&quot;; tag ignored</div><div>Driver: GTiff/GeoTIFF</div><div>Files: D:\opendata\minisc_gb\MiniScale\data\miniscalenogrid.tif</div>
<div>Size is 7000, 13000</div><div>Coordinate System is `&#39;</div><div>Origin = (0.000000000000000,1300000.000000000000000)</div><div>Pixel Size = (100.000000000000000,-100.000000000000000)</div><div>Metadata:</div><div>
  TIFFTAG_SOFTWARE=Adobe Photoshop CS4 Macintosh</div><div>  TIFFTAG_DATETIME=2009:12:04 12:52:34</div><div>  TIFFTAG_XRESOLUTION=254</div><div>  TIFFTAG_YRESOLUTION=254</div><div>  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)</div>
<div>Image Structure Metadata:</div><div>  COMPRESSION=LZW</div><div>  INTERLEAVE=PIXEL</div><div>Corner Coordinates:</div><div>Upper Left  (       0.000, 1300000.000)</div><div>Lower Left  (   0.0000000,   0.0000000)</div>
<div>Upper Right (  700000.000, 1300000.000)</div><div>Lower Right (  700000.000,       0.000)</div><div>Center      (  350000.000,  650000.000)</div><div>Band 1 Block=7000x12 Type=Byte, ColorInterp=Red</div><div>Band 2 Block=7000x12 Type=Byte, ColorInterp=Green</div>
<div>Band 3 Block=7000x12 Type=Byte, ColorInterp=Blue</div><div><br></div><div>I took all of the stuff out of the map file with the exception of the extent and ran shp2img and it runs without any problem, generating a blank png image. I guess I need to add the correct extent information to get the image to display?</div>
<div><br></div><div>Cheers</div><div><br></div><div>Carl</div><br><div class="gmail_quote">On Mon, Jan 24, 2011 at 2:29 PM, Jeff McKenna <span dir="ltr">&lt;<a href="mailto:jmckenna@gatewaygeomatics.com">jmckenna@gatewaygeomatics.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
Here are my quick thoughts:<br>
<br>
- remove all projection objects from your mapfile<br>
- remove all layers from your mapfile except the one raster/tif layer<br>
- use the ogrinfo utility, which is included in MS4W, to get the extents of your tif file (<a href="http://www.gdal.org/ogrinfo.html" target="_blank">http://www.gdal.org/ogrinfo.html</a>)<br>
- use those extents in your mapfile&#39;s EXTENT parameter<br>
- test your mapfile with the shp2img utility, which is also included in MS4W (<a href="http://www.mapserver.org/utilities/shp2img.html" target="_blank">http://www.mapserver.org/utilities/shp2img.html</a>)<br>
- note that MS4W is already configured for the following IMAGEPATH and IMAGEURL parameters:<br>
<br>
    IMAGEPATH &quot;/ms4w/tmp/ms_tmp/&quot;<br>
    IMAGEURL &quot;/ms_tmp/&quot;<br>
<br>
(the above imagepath value assumes that you have MS4W installed at a root of a drive...if you used the setup.exe installer you might have installed it elsewhere, so that imagepath value might be different)<br>
<br>
Hope those quick thoughts help.<br>
<br>
-jeff<br>
<br>
<br>
<br>
-- <br>
Jeff McKenna<br>
MapServer Consulting and Training Services<br>
<a href="http://www.gatewaygeomatics.com/" target="_blank">http://www.gatewaygeomatics.com/</a><br>
<br>
<br>
<br>
<br>
On 11-01-24 5:57 AM, Carl Burn wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello All,<br>
<br>
I am a newcomer to this list so forgive me if I make any blunders.<br>
I am trying to render a map image from mapserver using a tif file which<br>
has a georeferencing .tab file  in the same folder and I am getting<br>
nowhere with it. The tab file content is as follows:<br>
<br>
======= TAB File ==================<br>
!table<br>
!version 300<br>
!charset WindowsLatin1<br>
<br>
Definition Table<br>
   File &quot;MiniScalenogrid.tif&quot;<br>
   Type &quot;RASTER&quot;<br>
   (0,0) (0,13000) Label &quot;Pt 1&quot;,<br>
   (700000,0) (7000,13000) Label &quot;Pt 2&quot;,<br>
   (700000,1300000) (7000,0) Label &quot;Pt 3&quot;,<br>
   (0,1300000) (0,0) Label &quot;Pt 4&quot;<br>
   CoordSys Earth Projection 8, 79, &quot;m&quot;, -2, 49, 0.9996012717, 400000,<br>
-100000<br>
   Units &quot;m&quot;<br>
   RasterStyle 7 0<br>
<br>
========Tab File ends =======================<br>
<br>
The mapfile is below:<br>
<br>
========== Map file =========================<br>
<br>
MAP<br>
   NAME &quot;osminiscale&quot;<br>
   # Map image size<br>
   SIZE 800 800<br>
   UNITS meters<br>
<br>
   EXTENT 41069.1 -1149.02 665378.01 1231178.57<br>
   FONTSET &#39;./etc/fonts.txt&#39;<br>
   SYMBOLSET &#39;./etc/symbols.sym&#39;<br>
   PROJECTION<br>
&#39;init=epsg:27700&#39;<br>
   END<br>
<br>
   # Background color for the map canvas -- change as desired<br>
   IMAGECOLOR 255 255 255<br>
   IMAGEQUALITY 95<br>
   IMAGETYPE png<br>
<br>
   OUTPUTFORMAT<br>
     NAME png<br>
     DRIVER &#39;GD/PNG&#39;<br>
     MIMETYPE &#39;image/png&#39;<br>
     IMAGEMODE RGBA<br>
     EXTENSION &#39;png&#39;<br>
   END<br>
   # Legend<br>
   LEGEND<br>
       IMAGECOLOR 255 255 255<br>
     STATUS OFF<br>
     KEYSIZE 18 12<br>
     LABEL<br>
       TYPE BITMAP<br>
       SIZE MEDIUM<br>
       COLOR 0 0 89<br>
     END<br>
   END<br>
<br>
   # Web interface definition. Only the template parameter<br>
   # is required to display a map. See MapServer documentation<br>
   WEB<br>
     # Set IMAGEPATH to the path where MapServer should<br>
     # write its output.<br>
     IMAGEPATH &#39;/tmp/&#39;<br>
<br>
     # Set IMAGEURL to the url that points to IMAGEPATH<br>
     # as defined in your web server configuration<br>
     IMAGEURL &#39;/tmp/&#39;<br>
<br>
     # WMS server settings<br>
     METADATA<br>
&#39;ows_title&#39; &#39;miniscale&#39;<br>
&#39;ows_onlineresource&#39;<br>
&#39;<a href="http://www.foobar.com/cgi-bin/mapserv.exe?map=D:/ms4w/Apache/cgi-bin/osminiscale.map" target="_blank">http://www.foobar.com/cgi-bin/mapserv.exe?map=D:/ms4w/Apache/cgi-bin/osminiscale.map</a>&#39;<br>
&#39;ows_srs&#39; &#39;EPSG:27700&#39;<br>
     END<br>
<br>
     #Scale range at which web interface will operate<br>
     # Template and header/footer settings<br>
     # Only the template parameter is required to display a map. See<br>
MapServer documentation<br>
     TEMPLATE &#39;fooOnlyForWMSGetFeatureInfo&#39;<br>
   END<br>
<br>
   LAYER<br>
     NAME &#39;MiniScalenogrid&#39;<br>
     TYPE RASTER<br>
     DUMP true<br>
     TEMPLATE fooOnlyForWMSGetFeatureInfo<br>
   EXTENT 41069.1 -1149.02 665378.01 1231178.57<br>
     DATA &#39;D:/opendata/minisc_gb/MiniScale/data/MiniScalenogrid.tif&#39;<br>
     METADATA<br>
&#39;ows_title&#39; &#39;MiniScalenogrid&#39;<br>
&#39;ows_srs&#39; &#39;EPSG:27700&#39;<br>
     END<br>
     STATUS OFF<br>
     TRANSPARENCY 100<br>
     PROJECTION<br>
&#39;init=epsg:27700&#39;<br>
     END<br>
   END<br>
<br>
   LAYER<br>
     NAME &#39;MiniScalewithgrid&#39;<br>
     TYPE RASTER<br>
     DUMP true<br>
     TEMPLATE fooOnlyForWMSGetFeatureInfo<br>
   EXTENT 41069.1 -1149.02 665378.01 1231178.57<br>
     DATA &#39;D:/opendata/minisc_gb/MiniScale/data/MiniScalewithgrid.tif&#39;<br>
     METADATA<br>
&#39;ows_title&#39; &#39;MiniScalewithgrid&#39;<br>
&#39;ows_srs&#39; &#39;EPSG:27700&#39;<br>
     END<br>
     STATUS OFF<br>
     TRANSPARENCY 100<br>
     PROJECTION<br>
&#39;init=epsg:27700&#39;<br>
     END<br>
   END<br>
<br>
END<br>
<br>
<br>
============ Map File ends ==========================<br>
<br>
I am not getting an image from the map server and have run shp2img with<br>
the following results:<br>
<br>
msProcessProjection(): Projection library error. unknown elliptical<br>
parameter name<br>
<br>
Any clues or pointers would be great.<br>
<br>
Thanks<br>
<br>
Burnsy<br>
<br>
<br>
</blockquote>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">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></div>