<!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> </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.  However, 
your original image is in Estonian projection, but Mapserver does not know 
it automatically.  You need to add PROJECTION block to layer 
definitions as well.  Try editin your mapfile as 
follows: </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=373315309-17092008></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>LAYER<BR>  TYPE RASTER<BR>  NAME 
"raster"<BR>  STATUS ON<BR>  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>   "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  #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> </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> </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> </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>       65812.aux<BR>Size is 5000, 
  5000<BR>Coordinate System 
  is:<BR>LOCAL_CS["Estonia_1997_Estonia_National_Grid",<BR>    
  UNIT["meters",1]]<BR>Origin = 
  (715000.500000000000000,6584999.500000000000000)<BR>Pixel Size = 
  (1.000000000000000,-1.000000000000000)<BR>Metadata:<BR>  
  TIFFTAG_XRESOLUTION=2272.0896<BR>  
  TIFFTAG_YRESOLUTION=2272.0896<BR>  TIFFTAG_RESOLUTIONUNIT=2 
  (pixels/inch)<BR>Image Structure Metadata:<BR>  COMPRESSION=LZW<BR>  
  INTERLEAVE=PIXEL<BR>Corner Coordinates:<BR>Upper Left  (  
  715000.500, 6584999.500)<BR>Lower Left  (  715000.500, 
  6579999.500)<BR>Upper Right (  720000.500, 6584999.500)<BR>Lower Right 
  (  720000.500, 6579999.500)<BR>Center      
  (  717500.500, 6582499.500)<BR>Band 1 Block=5000x8 Type=Byte, 
  ColorInterp=Red<BR>  Metadata:<BR>    
  LAYER_TYPE=athematic<BR>Band 2 Block=5000x8 Type=Byte, 
  ColorInterp=Green<BR>  Metadata:<BR>    
  LAYER_TYPE=athematic<BR>Band 3 Block=5000x8 Type=Byte, 
  ColorInterp=Blue<BR>  Metadata:<BR>    
  LAYER_TYPE=athematic<BR><BR><BR>And from .map file:<BR>IMAGETYPE 
  PNG<BR> OUTPUTFORMAT<BR>  NAME png<BR>  DRIVER 
  "GD/PNG"<BR>  MIMETYPE "image/png"<BR>  IMAGEMODE 
  RGB<BR>END<BR>PROJECTION<BR>     
  "init=epsg:4326"<BR>END<BR>METADATA<BR>    WMS_TITLE "UMN 
  MapServer Maa-ameti TEST"<BR>    WMS_ABSTRACT "Mõeldud 
  testimiseks"<BR>    WMS_ACCESSCONSTRAINTS 
  "none"<BR>    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><<A 
  href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</A>></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> </DIV>
    <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
    size=2><SPAN>Impossible to say with this information.  Much better 
    possibilities to help you if you could send also the main MAP part of 
    your mapfile including at lesast outputformat and projection, and the 
    metadata sections.  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> </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> TYPE RASTER<BR> NAME 
      "raster"<BR> STATUS ON<BR> 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>