Tag Info

New answers tagged


I would recommend to use gdalcopyproj.py, a sample file from the GDAL repository done for this purpose as mentioned directly in the script: Duplicate the geotransform and projection metadata from one raster dataset to another, which can be useful after performing image manipulations with other software that ignores or discards georeferencing ...


Use gdalsrsinfo to get the srs of the tiff that still has the projection: gdalsrsinfo -o wkt tiffwithsrs.tiff Then copy the output and use gdal_translate to apply it to a new tiff: gdal_translate -a_srs '...' tiffwithoutsrs.tif newfixedtif.tif just paste your projection after the -a_srs option


I would use listgeo http://www.remotesensing.org/geotiff/listgeo.html and then geotifcp.


You can use gdal_merge which will combine the rasters. Have a look at the description of gdal_merge: This utility will automatically mosaic a set of images. All the images must be in the same coordinate system and have a matching number of bands, but they may be overlapping, and at different resolutions. In areas of overlap, the last image will be copied ...


Creating a mosaic from your source images takes only a few seconds if you use GDAL virtual raster as output. Read http://www.gdal.org/gdal_vrttut.html and http://www.gdal.org/gdalbuildvrt.html Often the artifacts like you have can also be avoided by taking care that the individually warped images are aligned to use a common canvas. This can be achieved by ...


Your zero values occur where you have no data (warping distorts the images and an output image must be rectangular, hence the noData pixels). You can force the output NoData value using -dstnodata In your case, -dstnodata None would create undefined NoData that will not be included in the range.

Top 50 recent answers are included