<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=373315309-17092008>Tere.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=373315309-17092008></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=373315309-17092008>You have defined the output projection as epsg:4326 and 
by quick look it is OK in both map projection and WMS metadata.&nbsp; However, 
your original image is in Estonian projection, but&nbsp;Mapserver does not know 
it automatically.&nbsp;&nbsp;You need to add PROJECTION block to layer 
definitions as well.&nbsp; Try&nbsp;editin&nbsp;your mapfile as 
follows:&nbsp;</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=373315309-17092008></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=373315309-17092008><FONT face="Times New Roman" color=#000000 
size=3>LAYER<BR>&nbsp; TYPE RASTER<BR>&nbsp;&nbsp;NAME 
"raster"<BR>&nbsp;&nbsp;STATUS ON<BR>&nbsp;&nbsp;DATA 
"54653.tif"</FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=373315309-17092008><FONT face="Times New Roman" color=#000000 
size=3>PROJECTION</FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=373315309-17092008><FONT face="Times New Roman" color=#000000 
size=3>&nbsp; &nbsp;"init=epsg:3301"</FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=373315309-17092008><FONT face="Times New Roman" color=#000000 
size=3>END&nbsp; #end projection<BR>END #end 
layer</FONT><BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=373315309-17092008>I hope 
I guessed the epsg code right.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=373315309-17092008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=373315309-17092008>-Jukka 
Rahkonen-</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=373315309-17092008>&nbsp;</DIV>
<DIV dir=ltr align=left><BR></DIV></SPAN></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=373315309-17092008></SPAN></FONT>&nbsp;</DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=fi dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>Lähettäjä:</B> 
  mapserver-users-bounces@lists.osgeo.org 
  [mailto:mapserver-users-bounces@lists.osgeo.org] <B>Puolesta </B>Raivo 
  Alla<BR><B>Lähetetty:</B> 17. syyskuuta 2008 12:51<BR><B>Vastaanottaja:</B> 
  mapserver-users@lists.osgeo.org<BR><B>Aihe:</B> Re: [mapserver-users] 
  mapserver 5 TIFF displaying problem<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV dir=ltr>Thank you for answering!<BR><BR>There's some additional 
  information. Gdalinfo output:<BR><BR>Driver: GTiff/GeoTIFF<BR>Files: 
  65812.tif<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 65812.aux<BR>Size is 5000, 
  5000<BR>Coordinate System 
  is:<BR>LOCAL_CS["Estonia_1997_Estonia_National_Grid",<BR>&nbsp;&nbsp;&nbsp; 
  UNIT["meters",1]]<BR>Origin = 
  (715000.500000000000000,6584999.500000000000000)<BR>Pixel Size = 
  (1.000000000000000,-1.000000000000000)<BR>Metadata:<BR>&nbsp; 
  TIFFTAG_XRESOLUTION=2272.0896<BR>&nbsp; 
  TIFFTAG_YRESOLUTION=2272.0896<BR>&nbsp; TIFFTAG_RESOLUTIONUNIT=2 
  (pixels/inch)<BR>Image Structure Metadata:<BR>&nbsp; COMPRESSION=LZW<BR>&nbsp; 
  INTERLEAVE=PIXEL<BR>Corner Coordinates:<BR>Upper Left&nbsp; (&nbsp; 
  715000.500, 6584999.500)<BR>Lower Left&nbsp; (&nbsp; 715000.500, 
  6579999.500)<BR>Upper Right (&nbsp; 720000.500, 6584999.500)<BR>Lower Right 
  (&nbsp; 720000.500, 6579999.500)<BR>Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  (&nbsp; 717500.500, 6582499.500)<BR>Band 1 Block=5000x8 Type=Byte, 
  ColorInterp=Red<BR>&nbsp; Metadata:<BR>&nbsp;&nbsp;&nbsp; 
  LAYER_TYPE=athematic<BR>Band 2 Block=5000x8 Type=Byte, 
  ColorInterp=Green<BR>&nbsp; Metadata:<BR>&nbsp;&nbsp;&nbsp; 
  LAYER_TYPE=athematic<BR>Band 3 Block=5000x8 Type=Byte, 
  ColorInterp=Blue<BR>&nbsp; Metadata:<BR>&nbsp;&nbsp;&nbsp; 
  LAYER_TYPE=athematic<BR><BR><BR>And from .map file:<BR>IMAGETYPE 
  PNG<BR>&nbsp;OUTPUTFORMAT<BR>&nbsp; NAME png<BR>&nbsp; DRIVER 
  "GD/PNG"<BR>&nbsp; MIMETYPE "image/png"<BR>&nbsp; IMAGEMODE 
  RGB<BR>END<BR>PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
  "init=epsg:4326"<BR>END<BR>METADATA<BR>&nbsp;&nbsp;&nbsp; WMS_TITLE "UMN 
  MapServer Maa-ameti TEST"<BR>&nbsp;&nbsp;&nbsp; WMS_ABSTRACT "Mõeldud 
  testimiseks"<BR>&nbsp;&nbsp;&nbsp; WMS_ACCESSCONSTRAINTS 
  "none"<BR>&nbsp;&nbsp;&nbsp; WMS_SRS "EPSG:4326"<BR>END<BR><BR>Could it be 
  problem that coordinate systems does not match?<BR>However, I remember it's 
  written that Mapserver could do SRS transforming on-the-fly.<BR><BR><BR><BR>
  <DIV class=gmail_quote>On Wed, Sep 17, 2008 at 11:23 AM, Rahkonen Jukka <SPAN 
  dir=ltr>&lt;<A 
  href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</A>&gt;</SPAN> 
  wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
    <DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN>Hi,</SPAN></FONT></DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN></SPAN></FONT>&nbsp;</DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN>Impossible to say with this information.&nbsp; Much better 
    possibilities to&nbsp;help you if you could send also the main MAP part of 
    your mapfile including at lesast outputformat and projection, and the 
    metadata sections.&nbsp; Gdalinfo report about the image might be helpful as 
    well.</SPAN></FONT></DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN></SPAN></FONT>&nbsp;</DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>-Jukka 
    Rahkonen-</SPAN></FONT></DIV></FONT></DIV><BR>
    <BLOCKQUOTE dir=ltr 
    style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
      <DIV lang=fi dir=ltr align=left>
      <HR>
      <FONT face=Tahoma size=2><B>Lähettäjä:</B> <A 
      href="mailto:mapserver-users-bounces@lists.osgeo.org" 
      target=_blank>mapserver-users-bounces@lists.osgeo.org</A> [mailto:<A 
      href="mailto:mapserver-users-bounces@lists.osgeo.org" 
      target=_blank>mapserver-users-bounces@lists.osgeo.org</A>] <B>Puolesta 
      </B>Raivo Alla<BR><B>Lähetetty:</B> 17. syyskuuta 2008 
      9:38<BR><B>Vastaanottaja:</B> <A 
      href="mailto:mapserver-users@lists.osgeo.org" 
      target=_blank>mapserver-users@lists.osgeo.org</A><BR><B>Aihe:</B> 
      [mapserver-users] mapserver 5 TIFF displaying problem<BR></FONT><BR></DIV>
      <DIV>
      <DIV></DIV>
      <DIV class=Wj3C7c>
      <DIV></DIV>
      <DIV dir=ltr>Hello,<BR><BR>I'm quite new using Mapserver and found myself 
      struggling with this simple-looking problem:<BR><BR>In my map file, there 
      is layer defined as follows:<BR>LAYER<BR>&nbsp;TYPE RASTER<BR>&nbsp;NAME 
      "raster"<BR>&nbsp;STATUS ON<BR>&nbsp;DATA "54653.tif"<BR>END<BR><BR>The 
      problem is, that this image is corrupted when I look at it in ArcMap - it 
      contains strange black boxes and stripes. Original image is OK, so<BR>I 
      guess the problem is somewhere in map file. <BR>.tfw file should be 
      ok:<BR>1.000000000000000<BR>0.000000000000000<BR>0.000000000000000<BR>-1.000000000000000<BR>650000.500000000000000<BR>6469999.500000000000000<BR><BR>What 
      could be the problem?<BR><BR><BR>Raivo 
    Alla<BR></DIV></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>