[gdal-dev] Blocks of data missing when using gdalwarp
Asger Sigurd Skovbo Petersen
ASP at blominfo.dk
Wed Mar 4 12:47:05 EST 2009
Hi list,
I have a setup for transforming a large quantity of raster tiles from utm into spherical mercator. The setup is like:
-------------------
// This first step has some rather unimportant explanations foreach SourceFile.tif {
gdal_translate -of vrt SourceFile.tif SourceFile.vrt }
gdalbuildvrt SourceMosiac.vrt SourceFile*.vrt
foreach outputtile
{
gdalwarp -te tilebounds -of gtiff -co tiled=yes -co interleave=band
-t_srs "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
+x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs" -r cubic -wm
100 SourceMosaic.vrt outputtile.tif
}
-----------------------
This _almost_ works as a dream. The only problem is that the warped tif tiles have some very systematic blocks of black pixels which suspiciously look like warp errors. They are definitely not in the input data. The blocks are strictly rectangular and they are found in patterns that are very much alike from outputtile to outputtile.
Please see attached jpg file for an example.
Has anyone seen this before and are there any ways to work around this weird effect?
Best regards
Asger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1013000_7369000_1016500_7372500.jpg
Type: image/jpeg
Size: 16099 bytes
Desc: 1013000_7369000_1016500_7372500.jpg
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090304/5a274ba4/1013000_7369000_1016500_7372500-0001.jpg
More information about the gdal-dev
mailing list