Changes between Version 19 and Version 20 of FAQRaster


Ignore:
Timestamp:
Jan 10, 2010, 2:31:27 PM (14 years ago)
Author:
Mateusz Łoskot
Comment:

Updated how to make GeoTIFF from non-geospatial raster

Legend:

Unmodified
Added
Removed
Modified
  • FAQRaster

    v19 v20  
    33[[PageOutline(2,,inline)]]
    44
    5 == How to make GeoTIFF from TIFF? ==
     5== How to make GeoTIFF from non-geospatial raster? ==
    66
    77One option is to use [http://gdal.org/gdal_translate.html gdal_translate] to assign the geo-referenced bounds and generate [http://en.wikipedia.org/wiki/World_file .tfw] file:
     
    99gdal_translate -a_ullr ulx uly lrx lry src_dataset dst_dataset
    1010}}}
    11 where ''ulx uly lrx lry'' should be replaced with real coordinates.
     11
     12or with SRS assignment:
     13
     14{{{
     15gdal_translate -a_srs EPSG:4326 -a_ullr ulx uly lrx lry src_dataset dst_dataset
     16}}}
     17
     18In fact, ''src_dataset'' and ''dst_dataset'' can be any raster datasets supported by GDAL with creation capability.
     19
     20== How to make GeoTIFF from PNG? ==
     21
     22Use the same command as presented in the previous Q&A.
     23{{{
     24gdal_translate -a_srs EPSG:4326 -a_ullr ulx uly lrx lry src_dataset.png dst.tif
     25}}}
    1226
    1327== Why won't gdalwarp or gdal_merge write to most formats? ==