<div style='font-family: Arial; font-size: 10pt; color: #330099'><div style="font-family: Arial; font-size: 10pt; color: rgb(51, 0, 153);">I see the same strange areas when I'm viewing the tiles with Irfanview, so geoserver is excluded.<br><br>I re-created the first tile that gave me the problem (and only this tile) from the source files using gdal_retile and gdal_translate -projwin. The problem isn't there any more. So I guess it was only a random error ? I still need to recreate the higher tiles, if that works.<br><br>Thanks for the tip on the option "TILED=YES". It comes from gdal_translate, I didn't think much when I started using gdal_retile. So I have no specific reason to use it and the output tiles of gdal_retile aren't tiled inside.<br><br>Alain<br><br>----- Mail Original -----<br>De: "Christian Müller (via Nabble)" <<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3472194&i=0" target="_top" rel="nofollow">[hidden email]</a>><br>À: "acangi" <<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3472194&i=1" target="_top" rel="nofollow">[hidden email]</a>><br>Envoyé: Mercredi 19 Août 2009 14h34:41 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne<br>Objet: Re: [Gdal-dev] Flashy colors in a pyramid<br><br>
Hi
<br><br>The thing I want to know is if you have the blue or green areas in the
<br>output files of gdal_retile.py or if you see them when looking at the images
<br>with geoserver. So, is at problem of gdal_retile.py or of geoserver loading
<br>the output from gdal_retile.py.
<br><br>Btw, you use the option -co "TILED=YES". Why ?. Each output tile of
<br>gdal_retile.py has again tiles in it ?
<br><br>
<br><br>
<br><br><br>acangi writes:
<br><div class="shrinkable-quote"><div class='shrinkable-quote'><br>>
<br>> Hi Christian,
<br>>
<br>> Thanks for your reply and thanks for writing gdal_retile. I use it a lot and
<br>> it works great.
<br>>
<br>> I'm not sure I understand you well. On the highest level of the pyramid (the
<br>> top) there's only one file. Gdal_retile already created the files needed for
<br>> the mosaic (shp, shx, dbf and prj). Would you like me to re-create them ?
<br>>
<br>> Or do you mean at the base of the pyramid ?
<br>>
<br>> Alain
<br>>
<br>>
<br>> Christian Müller wrote:
<br>>>
<br>>> Hi, Christian speaking, I wrote the gdal_retile.py utility.
<br>>>
<br>>> Could you try to run a gdal_merge.py on the highest pyramid level
<br>>> containing
<br>>> this strange area. What is the result.? I want to know if the problem is
<br>>> gdal_retile.py or geoserver.
<br>>>
<br>>>
<br>>>
<br>>> acangi writes:
<br>>>
<br>>>>
<br>>>> Hello list,
<br>>>>
<br>>>> I created a pyramid of aerial photos using gdal_retile.py and now see
<br>>>> there
<br>>>> are strange zones in the pyramid. I'm trying to understand why I got this
<br>>>> strange results and how I can fix it (Bombing the area to make sure it
<br>>>> looks
<br>>>> like what I have ?). Description :
<br>>>> 1. The command I used was gdal_retile.py -targetDir pyramid/ -levels 12
<br>>>> -pyramidOnly -v -s_srs /path/to/prjs/3812.prj -ps 10000 10000 -r bilinear
<br>>>> -co "TILED=YES" -co "COMPRESS=LZW" -co "INTERLEAVE=PIXEL" -tileIndex
<br>>>> orthocol -tileIndexField location /path/to/source/files/*.tif &
<br>>>> 2. In the source files, I see nothing special. The tiles in this area
<br>>>> look
<br>>>> like the other ones.
<br>>>> 3. On the first (generated) level of the pyramid, I see a small area
<br>>>> (alias
<br>>>> SMALL_SQUARE : 256m x 256m) in blue :
<br>>>> <a href="http://n2.nabble.com/file/n3470903/BlueSquare.jpg" target="_blank" rel="nofollow">http://n2.nabble.com/file/n3470903/BlueSquare.jpg</a>
<br>>>> 4. On the next levels of the pyramid, a black rectangle 512m x 256m is
<br>>>> now
<br>>>> visible where SMALL_SQUARE was :
<br>>>> <a href="http://n2.nabble.com/file/n3470903/BlackRect.jpg" target="_blank" rel="nofollow">http://n2.nabble.com/file/n3470903/BlackRect.jpg</a>
<br>>>> and the area corresponding to the first level tile containing
<br>>>> SMALL_SQUARE
<br>>>> (alias BIG_SQUARE : 10000m x 10000m) is in green :
<br>>>> <a href="http://n2.nabble.com/file/n3470903/GreenSquare.jpg" target="_blank" rel="nofollow">http://n2.nabble.com/file/n3470903/GreenSquare.jpg</a>
<br>>>> 5. I view the pyramid in geoserver, the tiles look like they are on disk,
<br>>>> except at the first level, geoserver doesn't show me the full
<br>>>> SMALL_SQUARE,
<br>>>> only parts of it. In geoserver logs, I find nothing very interesting, it
<br>>>> all
<br>>>> looks the same whether or not I'm looking at BIG_SQUARE.
<br>>>> 6. If I set OutputTransparentColor to #000000 (the background color),
<br>>>> BIG_SQUARE is now invisible (in geoserver)
<br>>>>
<br>>>> So, my questions are :
<br>>>> Why did it happen ? I suppose it's just a random error...
<br>>>> How can I fix it ? Is there any way other than rebuilding the whole
<br>>>> pyramid
<br>>>> ?
<br>>>>
<br>>>> Any idea is welcome,
<br>>>>
<br>>>> Alain
<br>>>> --
<br>>>> View this message in context:
<br>>>> <a href="http://n2.nabble.com/Flashy-colors-in-a-pyramid-tp3470903p3470903.html" target="_blank" rel="nofollow">http://n2.nabble.com/Flashy-colors-in-a-pyramid-tp3470903p3470903.html</a><br>>>> Sent from the GDAL - Dev mailing list archive at Nabble.com.
<br>>>> _______________________________________________
<br>>>> gdal-dev mailing list
<br>>>> <a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3471969&i=0" target="_blank" rel="nofollow">[hidden email]</a>
<br>>>> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank" rel="nofollow">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>>>
<br>>>
<br>>> _______________________________________________
<br>>> gdal-dev mailing list
<br>>> <a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3471969&i=1" target="_blank" rel="nofollow">[hidden email]</a>
<br>>> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank" rel="nofollow">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
<br>>>
<br>>>
<br>>
<br>> --
<br>> View this message in context: <a href="http://n2.nabble.com/Flashy-colors-in-a-pyramid-tp3470903p3471888.html" target="_blank" rel="nofollow">http://n2.nabble.com/Flashy-colors-in-a-pyramid-tp3470903p3471888.html</a><br>> Sent from the GDAL - Dev mailing list archive at Nabble.com.
<br>> _______________________________________________
<br>> gdal-dev mailing list
<br>> <a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3471969&i=2" target="_blank" rel="nofollow">[hidden email]</a>
<br>> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank" rel="nofollow">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></div>
</div><br>_______________________________________________
<br>gdal-dev mailing list
<br><a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3471969&i=3" target="_blank" rel="nofollow">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank" rel="nofollow">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br><br>
<hr noshade="noshade" size="1">
<div style="color: rgb(102, 102, 102); font-family: tahoma,geneva,helvetica,arial,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
View message @ <a href="http://n2.nabble.com/Flashy-colors-in-a-pyramid-tp3470903p3471969.html" target="_blank" rel="nofollow">http://n2.nabble.com/Flashy-colors-in-a-pyramid-tp3470903p3471969.html</a>
<br>To unsubscribe from Re: Flashy colors in a pyramid, <a target="_blank" rel="nofollow">click here</a>.
</div>
<br>
</div></div>
<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/Flashy-colors-in-a-pyramid-tp3470903p3472194.html">Re: [Gdal-dev] Flashy colors in a pyramid</a><br>
Sent from the <a href="http://n2.nabble.com/GDAL---Dev-f2022644.html">GDAL - Dev mailing list archive</a> at Nabble.com.<br>