<div dir="ltr">Hi,<br>
<br>
Jukka, thank you very much for discussion, it was helpful. For now I found what was wrong. <br>Gabe, maybe it&#39;s useful for you too:<br>&nbsp;
my
mapserv compilation was both with --with-gdal and --with-tiff, when I
recompiled it removing native TIFF support (--without-tiff), <br>&nbsp; then&nbsp; this
recompilation was successful:) <br>

<br>
Have a nice day,<br>
Raivo<br><br><div class="gmail_quote">On Wed, Sep 17, 2008 at 5:45 PM, Emerson, Gabe <span dir="ltr">&lt;<a href="mailto:gemerson@welshco.com">gemerson@welshco.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;">










<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Raivo, </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I sometimes get odd artifacts showing up on my PNG24 maps as
well. I don't know if it's related to your problem, but I believe mine
is client-related based on its behavior, even though it happens on multiple
computers and browsers. </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Every now and then, my map comes out looking like this: <a href="https://netfiles.umn.edu/users/emers089/www/imgerror.jpg" target="_blank">https://netfiles.umn.edu/users/emers089/www/imgerror.jpg</a></span></p>


<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">It doesn't always look the same, sometimes &nbsp;the map is
greyed out or covered in mostly black, sometimes only part of the map is
affected. </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Since it's unpredictable and infrequent, I haven't
been able to test very much. However, It clears itself immediately when I click
anything on the page, or when I resize the browser window. That makes me think that
my problem is related to client-side graphics drivers; the correct image is already
in the browser, just hidden under the artifacting. I've been meaning to play
around with driver updates, but it hasn't been enough of an issue.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">-Gabe</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<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>On Behalf Of </b>Rahkonen Jukka<br>
<b>Sent:</b> Wednesday, September 17, 2008 7:22 AM<br>
<b>To:</b> Raivo Alla; <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [mapserver-users] mapserver 5 TIFF displaying problem</span></p>

</div>

</div><div><div></div><div class="Wj3C7c">

<p>&nbsp;</p>

<p><span style="font-size: 10pt; color: blue;">I&#39;m sorry,&nbsp;I fear I can&#39;t help you further.&nbsp; I&#39;m sure
that somebody else will go on with your problem soon.&nbsp;&nbsp;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></p>

<p><span style="font-size: 10pt; color: blue;">- use&nbsp;ready&nbsp;compiled Mapserver if you find such for your
operating system</span></p>

<p><span style="font-size: 10pt; color: blue;">- test with another image from different source</span></p>

<p>&nbsp;</p>

<p><span style="font-size: 10pt; color: blue;">-Jukka-</span></p>

<p>&nbsp;</p>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; margin: 5pt 0in 5pt 3.75pt; padding: 0in 0in 0in 4pt;">


<p>&nbsp;</p>

<div style="text-align: center;" align="center"><span lang="FI">

<hr size="2" width="100%" align="center">

</span></div>

<p style="margin-bottom: 12pt;"><b><span style="font-size: 10pt;" lang="FI">Lähettäjä:</span></b><span style="font-size: 10pt;" lang="FI"> Raivo Alla
[mailto:<a href="mailto:snaperski@gmail.com" target="_blank">snaperski@gmail.com</a>] <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</span><span lang="FI"></span></p>

<div>

<p style="margin-bottom: 12pt;">Hi,<br>
<br>
thank you but sadly it did&#39;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" target="_blank">http://picasaweb.google.com/snaperski/Ort#5246949911192681730</a><br>
Strange:)<br>
<br>
Raivo</p>

<div>

<p>On Wed, Sep 17, 2008 at 2:27 PM, Rahkonen Jukka &lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi" target="_blank">Jukka.Rahkonen@mmmtike.fi</a>&gt;
wrote:</p>

<div>

<p><span style="font-size: 10pt; color: blue;">Hi,</span></p>

<p><span style="font-size: 10pt; color: blue;">&nbsp;</span></p>

<p><span style="font-size: 10pt; color: blue;">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></p>

<p><span style="font-size: 10pt; color: blue;">&nbsp;</span></p>

<p><span style="font-size: 10pt; color: blue;">gdal_translate -of GTiff </span><span style="color: black;">54653.tif
54653_basic.tif</span><span style="font-size: 10pt; color: blue;"></span></p>

<div>

<p><span style="font-size: 10pt; color: blue;">&nbsp;</span></p>

</div>

<div>

<p><span style="font-size: 10pt; color: blue;">Make 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></p>

</div>

<div>

<p><span style="font-size: 10pt; color: blue;">DRIVER &quot;GD/PNG24&quot;</span></p>

</div>

<div>

<p><span style="font-size: 10pt; color: blue;">-Jukka-</span></p>

</div>

<div>

<p><span style="font-size: 10pt; color: blue;">&nbsp;</span></p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; margin: 5pt 0in 5pt 3.75pt; padding: 0in 0in 0in 4pt;">


<p>&nbsp;</p>

<div style="text-align: center;" align="center"><span lang="FI">

<hr size="2" width="100%" align="center">

</span></div>

<div>

<p><b><span style="font-size: 10pt;" lang="FI">Lähettäjä:</span></b><span style="font-size: 10pt;" lang="FI"> Raivo Alla
[mailto:<a href="mailto:snaperski@gmail.com" target="_blank">snaperski@gmail.com</a>]
</span></p>

</div>

<p><b><span style="font-size: 10pt;" lang="FI">Lähetetty:</span></b><span style="font-size: 10pt;" lang="FI"> 17.
syyskuuta 2008 14:16 </span></p>

<div>

<div>

<p><span style="font-size: 10pt;" lang="FI"><br>
<b>Vastaanottaja:</b> Rahkonen Jukka<br>
<b>Aihe:</b> Re: [mapserver-users] mapserver 5 TIFF displaying problem</span></p>

</div>

</div>

<p><span lang="FI">&nbsp;</span></p>

<div>

<div>

<div>

<p style="margin-bottom: 12pt;">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 &quot;GD/PNG&quot;<br>
&nbsp; MIMETYPE &quot;image/png&quot;<br>
&nbsp; IMAGEMODE RGBA<br>
&nbsp; EXTENSION &quot;png&quot;<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&#39;s the same.<br>
<br>
<br>
Raivo</p>

<div>

<p>On Wed, Sep 17, 2008 at 1:51 PM, Rahkonen Jukka &lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi" target="_blank">Jukka.Rahkonen@mmmtike.fi</a>&gt;
wrote:</p>

<div>

<p><span style="font-size: 10pt; color: blue;">Hi,</span></p>

<p><span style="font-size: 10pt; color: blue;">&nbsp;</span></p>

<p><span style="font-size: 10pt; color: blue;">It&#39;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></p>

<p><span style="font-size: 10pt; color: blue;">- Have a try with another&nbsp;client software. like&nbsp;Quantum
GIS, OpenJUMP, Cadcorp SIS map browser, or just your web browser.</span></p>

<p><span style="font-size: 10pt; color: blue;">- 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></p>

<p><span style="font-size: 10pt; color: blue;">&nbsp;</span></p>

<p><span style="font-size: 10pt; color: blue;">-Jukka-</span></p>

<p>&nbsp;</p>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; margin: 5pt 0in 5pt 3.75pt; padding: 0in 0in 0in 4pt;">


<p>&nbsp;</p>

<div style="text-align: center;" align="center"><span lang="FI">

<hr size="2" width="100%" align="center">

</span></div>

<p><b><span style="font-size: 10pt;" lang="FI">Lähettäjä:</span></b><span style="font-size: 10pt;" lang="FI"> 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 </span></p>

<div>

<div>

<p><span style="font-size: 10pt;" lang="FI"><br>
<b>Aihe:</b> Re: [mapserver-users] mapserver 5 TIFF displaying problem</span></p>

</div>

</div>

<p><span lang="FI">&nbsp;</span></p>

<div>

<div>

<div>

<p style="margin-bottom: 12pt;">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</p>

<div>

<p>On Wed, Sep 17, 2008 at 1:03 PM, Rahkonen Jukka &lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi" target="_blank">Jukka.Rahkonen@mmmtike.fi</a>&gt;
wrote:</p>

<div>

<p><span style="font-size: 10pt; color: blue;">Tere.</span></p>

<p>&nbsp;</p>

<p><span style="font-size: 10pt; color: blue;">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></p>

<div>

<p>&nbsp;</p>

<p><span style="color: black;">LAYER<br>
&nbsp; TYPE RASTER<br>
&nbsp;&nbsp;NAME &quot;raster&quot;<br>
&nbsp;&nbsp;STATUS ON<br>
&nbsp;&nbsp;DATA &quot;54653.tif&quot;</span></p>

</div>

<p><span style="color: black;">PROJECTION</span></p>

<p><span style="color: black;">&nbsp;
&nbsp;&quot;init=epsg:3301&quot;</span></p>

<p><span style="color: black;">END&nbsp; #end projection<br>
END #end layer</span></p>

<div>

<p><span style="font-size: 10pt; color: blue;">I hope I guessed the epsg code right.</span></p>

</div>

<div>

<p>&nbsp;</p>

</div>

<div>

<p><span style="font-size: 10pt; color: blue;">-Jukka Rahkonen-</span></p>

</div>

<div>

<p>&nbsp;</p>

</div>

<p>&nbsp;</p>

<p>&nbsp;</p>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; margin: 5pt 0in 5pt 3.75pt; padding: 0in 0in 0in 4pt;">


<p>&nbsp;</p>

<div style="text-align: center;" align="center"><span lang="FI">

<hr size="2" width="100%" align="center">

</span></div>

<div>

<p><b><span style="font-size: 10pt;" lang="FI">Lähettäjä:</span></b><span style="font-size: 10pt;" lang="FI"> <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</span></p>

</div>

<p><b><span style="font-size: 10pt;" lang="FI">Lähetetty:</span></b><span style="font-size: 10pt;" lang="FI"> 17.
syyskuuta 2008 12:51 </span></p>

<div>

<p><span style="font-size: 10pt;" lang="FI"><br>
<b>Vastaanottaja:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a></span></p>

</div>

<p style="margin-bottom: 12pt;"><b><span style="font-size: 10pt;" lang="FI">Aihe:</span></b><span style="font-size: 10pt;" lang="FI"> Re:
[mapserver-users] mapserver 5 TIFF displaying problem</span><span lang="FI"></span></p>

<div>

<div>

<div>

<p style="margin-bottom: 12pt;">Thank you for answering!<br>
<br>
There&#39;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[&quot;Estonia_1997_Estonia_National_Grid&quot;,<br>
&nbsp;&nbsp;&nbsp; UNIT[&quot;meters&quot;,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 &quot;GD/PNG&quot;<br>
&nbsp; MIMETYPE &quot;image/png&quot;<br>
&nbsp; IMAGEMODE RGB<br>
END<br>
PROJECTION<br>
&nbsp;&nbsp;&nbsp;&nbsp; &quot;init=epsg:4326&quot;<br>
END<br>
METADATA<br>
&nbsp;&nbsp;&nbsp; WMS_TITLE &quot;UMN MapServer Maa-ameti TEST&quot;<br>
&nbsp;&nbsp;&nbsp; WMS_ABSTRACT &quot;Mõeldud testimiseks&quot;<br>
&nbsp;&nbsp;&nbsp; WMS_ACCESSCONSTRAINTS &quot;none&quot;<br>
&nbsp;&nbsp;&nbsp; WMS_SRS &quot;EPSG:4326&quot;<br>
END<br>
<br>
Could it be problem that coordinate systems does not match?<br>
However, I remember it&#39;s written that Mapserver could do SRS transforming
on-the-fly.<br>
<br>
<br>
</p>

<div>

<p>On Wed, Sep 17, 2008 at 11:23 AM, Rahkonen Jukka &lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi" target="_blank">Jukka.Rahkonen@mmmtike.fi</a>&gt;
wrote:</p>

<div>

<p><span style="font-size: 10pt; color: blue;">Hi,</span></p>

<p><span style="font-size: 10pt; color: blue;">&nbsp;</span></p>

<p><span style="font-size: 10pt; color: blue;">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></p>

<p><span style="font-size: 10pt; color: blue;">&nbsp;</span></p>

<p><span style="font-size: 10pt; color: blue;">-Jukka Rahkonen-</span></p>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; margin: 5pt 0in 5pt 3.75pt; padding: 0in 0in 0in 4pt;">


<p>&nbsp;</p>

<div style="text-align: center;" align="center"><span lang="FI">

<hr size="2" width="100%" align="center">

</span></div>

<p style="margin-bottom: 12pt;"><b><span style="font-size: 10pt;" lang="FI">Lähettäjä:</span></b><span style="font-size: 10pt;" lang="FI"> <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</span><span lang="FI"></span></p>

<div>

<div>

<div>

<p>Hello,<br>
<br>
I&#39;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 &quot;raster&quot;<br>
&nbsp;STATUS ON<br>
&nbsp;DATA &quot;54653.tif&quot;<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</p>

</div>

</div>

</div>

</blockquote>

</div>

</div>

<p>&nbsp;</p>

</div>

</div>

</div>

</blockquote>

</div>

</div>

<p>&nbsp;</p>

</div>

</div>

</div>

</blockquote>

</div>

</div>

<p>&nbsp;</p>

</div>

</div>

</div>

</blockquote>

</div>

</div>

<p>&nbsp;</p>

</div>

</blockquote>

</div></div></div>

</div>


<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">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>
<br></blockquote></div><br></div>