[Gdal-dev] Georeferencing a tiff file

Romano J M Silva rmagacho at predialnet.com.br
Tue Apr 6 20:51:39 EDT 2004


Hi Frank,

>
> When you say "I want to georeference it", do you already know the
georeferencing
> or are you wanting to do a tie down in a GUI environment?  If you know the
top

I want to tie down in a GUI environment. I have a scanned image with some
marks that I know the correct world coordinates.

> left corner and pixel spacing you can manually create a corresponding
> "world file" for the file and then use gdal_translate to "apply" that
> world file along with a coordinate system and produce an output file.
>
> For instance, imagine you had a file called raw.tif with 60m x 60m pixels,
and
> a top left corner of 440750m E, 3751290m N in UTM 11 WGS84.  You could
> georeference it by creating a world file called raw.tfw with the following
> in it (six lines):
>
>             60.0000000000
>              0.0000000000
>              0.0000000000
>            -60.0000000000
>         440750.0000000000
>        3751290.0000000000
>
> Then use this gdal_translate command to create a geotiff version with a
> coordinate system.
>
>   gdal_translate -a_srs '+proj=utm +zone=11 +datum=WGS84' raw.tif
geotiff.tif
>

Thanks for this tip. It will be useful too later :-)


Romano




More information about the Gdal-dev mailing list