<!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>
<DIV dir=ltr align=left><SPAN class=822521112-17092008><FONT face=Arial><FONT 
color=#0000ff><FONT size=2>I'm sorry,&nbsp;I fear I can't help you 
further.&nbsp; I'm sure that somebody else will go on with your problem 
soon.&nbsp;&nbsp;<SPAN class=809401612-17092008>There must be something odd in 
the image or in your Mapserver.&nbsp; You could still&nbsp;try two things and 
try to find exact reason for the 
failure:</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=822521112-17092008><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=809401612-17092008>- 
use&nbsp;ready&nbsp;compiled Mapserver if you find such for your operating 
system</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=822521112-17092008><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=809401612-17092008>- test with another 
image from different source</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=822521112-17092008></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=822521112-17092008>-Jukka-</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV></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> Raivo Alla 
  [mailto:snaperski@gmail.com] <BR><B>Lähetetty:</B> 17. syyskuuta 2008 
  14:57<BR><B>Vastaanottaja:</B> Rahkonen Jukka<BR><B>Aihe:</B> Re: 
  [mapserver-users] mapserver 5 TIFF displaying problem<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV dir=ltr>Hi,<BR><BR>thank you but sadly it did'nt help. <BR>Changed the 
  DRIVER and translated to GeoTiff, but the problem remained. <BR>Even after I 
  changed my .map file projection to EPSG:3301 (same like that .tif file has) 
  was the same picture there.<BR>If I zoom in/out, then the picture changes a 
  bit -&gt;<BR><A 
  href="http://picasaweb.google.com/snaperski/Ort#5246949911192681730">http://picasaweb.google.com/snaperski/Ort#5246949911192681730</A><BR>Strange:)<BR><BR>Raivo<BR><BR>
  <DIV class=gmail_quote>On Wed, Sep 17, 2008 at 2:27 PM, 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>If all 
    the clients show the same artifacts we can trust they come from the 
    server.&nbsp; For some reason it does not like your original image.&nbsp; 
    Try converting it to uncompressed&nbsp;geotiff image with 
    gdal_translate</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>gdal_translate -of GTiff <FONT face="Times New Roman" 
    color=#000000 size=3>54653.tif 54653_basic.tif</FONT></SPAN></FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><SPAN></SPAN>M<SPAN>ake another layer from this new image, or edit your 
    mapfile to use that instead of the original 54653.tif.&nbsp; What happens? 
    By the way, I believe it should read</SPAN></DIV>
    <DIV><SPAN>DRIVER "GD/PNG24"<BR></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>-Jukka-</FONT></SPAN></DIV>
    <DIV><BR></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>
      <DIV class=Ih2E3d><B>Lähettäjä:</B> Raivo Alla [mailto:<A 
      href="mailto:snaperski@gmail.com" target=_blank>snaperski@gmail.com</A>] 
      <BR></DIV><B>Lähetetty:</B> 17. syyskuuta 2008 14:16
      <DIV>
      <DIV></DIV>
      <DIV class=Wj3C7c><BR><B>Vastaanottaja:</B> Rahkonen Jukka<BR><B>Aihe:</B> 
      Re: [mapserver-users] mapserver 5 TIFF displaying 
      problem<BR></DIV></DIV></FONT><BR></DIV>
      <DIV>
      <DIV></DIV>
      <DIV class=Wj3C7c>
      <DIV></DIV>
      <DIV dir=ltr>Hei,<BR><BR>thank you for advice!<BR>I changed .map a 
      bit:&nbsp; <BR><BR>IMAGETYPE png24<BR>OUTPUTFORMAT<BR>&nbsp; NAME 
      png24<BR>&nbsp; DRIVER "GD/PNG"<BR>&nbsp; MIMETYPE "image/png"<BR>&nbsp; 
      IMAGEMODE RGBA<BR>&nbsp; EXTENSION "png"<BR>END<BR><BR>output quality 
      looks better, but that black-lined crap is still there:(<BR>I tried the 
      same with uDig and Gaia WMS-clients, but it's the 
      same.<BR><BR><BR>Raivo<BR><BR>
      <DIV class=gmail_quote>On Wed, Sep 17, 2008 at 1:51 PM, Rahkonen Jukka 
      <SPAN dir=ltr>&lt;<A href="mailto:Jukka.Rahkonen@mmmtike.fi" 
      target=_blank>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>It's 
        getting closer.&nbsp;&nbsp;Image is now at least in a correct 
        place?&nbsp; Distortion can be due to ArcMAP, perhaps it does not like 
        the outputformat you are using.&nbsp; Next trials:</SPAN></FONT></DIV>
        <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>- 
        Have a try with another&nbsp;client software. like&nbsp;Quantum GIS, 
        OpenJUMP, Cadcorp SIS map browser, or just your web 
        browser.</SPAN></FONT></DIV>
        <DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>- 
        Try changing outputformat.&nbsp; I believe you will need to&nbsp;change 
        it anyway, png is not good for aerial images.&nbsp;&nbsp;Try png24 or 
        jpeg instead.</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-</SPAN></FONT></DIV><BR></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> Raivo Alla [mailto:<A 
          href="mailto:snaperski@gmail.com" 
          target=_blank>snaperski@gmail.com</A>] <BR><B>Lähetetty:</B> 17. 
          syyskuuta 2008 13:43<BR><B>Vastaanottaja:</B> Rahkonen Jukka 
          <DIV>
          <DIV></DIV>
          <DIV><BR><B>Aihe:</B> Re: [mapserver-users] mapserver 5 TIFF 
          displaying problem<BR></DIV></DIV></FONT><BR></DIV>
          <DIV>
          <DIV></DIV>
          <DIV>
          <DIV></DIV>
          <DIV dir=ltr>Thank you,<BR><BR>I added PROJECTION block to the layer, 
          but unfortunately the same dance: output is corrupted as it could be 
          seen here: <BR><A 
          href="http://picasaweb.google.com/snaperski/Ort#5246933992333025954" 
          target=_blank>http://picasaweb.google.com/snaperski/Ort#5246933992333025954</A><BR><BR>Maybe 
          I should compile mapserver without -with-tiff 
key?<BR><BR>Raivo<BR><BR>
          <DIV class=gmail_quote>On Wed, Sep 17, 2008 at 1:03 PM, Rahkonen Jukka 
          <SPAN dir=ltr>&lt;<A href="mailto:Jukka.Rahkonen@mmmtike.fi" 
          target=_blank>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><SPAN>Tere.</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>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>
            <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><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>
            <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
            size=2><SPAN><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><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><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>I hope I guessed 
            the epsg code right.</SPAN></FONT></DIV>
            <DIV><FONT face=Arial color=#0000ff 
            size=2><SPAN></SPAN></FONT>&nbsp;</DIV>
            <DIV><FONT face=Arial color=#0000ff size=2><SPAN>-Jukka 
            Rahkonen-</SPAN></FONT></DIV>
            <DIV><FONT face=Arial color=#0000ff 
            size=2><SPAN></SPAN></FONT>&nbsp;</DIV>
            <DIV dir=ltr align=left><BR></DIV>
            <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
            size=2><SPAN></SPAN></FONT>&nbsp;</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>
              <DIV><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></DIV><B>Lähetetty:</B> 17. 
              syyskuuta 2008 12:51 
              <DIV><BR><B>Vastaanottaja:</B> <A 
              href="mailto:mapserver-users@lists.osgeo.org" 
              target=_blank>mapserver-users@lists.osgeo.org</A><BR></DIV><B>Aihe:</B> 
              Re: [mapserver-users] mapserver 5 TIFF displaying 
              problem<BR></FONT><BR></DIV>
              <DIV>
              <DIV></DIV>
              <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" 
              target=_blank>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>
                  <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></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>