tecnica:gps_cartografia_gis:georeferencing
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tecnica:gps_cartografia_gis:georeferencing [2009/09/28 14:04] – niccolo | tecnica:gps_cartografia_gis:georeferencing [2011/11/15 10:30] (current) – removed niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Raster Georeferencing ====== | ||
| - | ===== Georiferire un file PNG ===== | ||
| - | |||
| - | Quei mattacchioni della NASA fanno [[http:// | ||
| - | |||
| - | Un primo tentativo può essere quello di fornire un //world file//, come | ||
| - | documentato da [[http:// | ||
| - | < | ||
| - | gdalinfo TrueMarble.2km.21600x10800.tif | ||
| - | ... | ||
| - | Origin = (-180.000000000000000, | ||
| - | Pixel Size = (0.016666666666667, | ||
| - | ... | ||
| - | </ | ||
| - | |||
| - | Un trucco per far creare il world file con gdal, a partire da un GeoTiff georiferito è il seguente: | ||
| - | |||
| - | < | ||
| - | gdal_translate -co " | ||
| - | rm temp.tif | ||
| - | </ | ||
| - | |||
| - | Scriviamo il world file con lo stesso nome del file '' | ||
| - | |||
| - | < | ||
| - | 0.0166666667 | ||
| - | 0.0000000000 | ||
| - | 0.0000000000 | ||
| - | -0.0166666667 | ||
| - | -179.9916666667 | ||
| - | 89.9916666667 | ||
| - | </ | ||
| - | |||
| - | Peccato che la velocità di accesso non sia accettabile, | ||
| - | |||
| - | Convertiamo quindi in Tiff non compresso con ImageMagick (il world file da usare rimane esattamente lo stesso): | ||
| - | |||
| - | < | ||
| - | convert world_topo_bathy.png -compress none world_topo_bathy.tif | ||
| - | </ | ||
| - | |||
| - | Se invece vogliamo un **GeoTiff completo**, che non ha bisogno del world file perché incorpora tutte le informazioni geografiche necessarie, si può usare il comando: | ||
| - | |||
| - | < | ||
| - | gdal_translate -a_srs EPSG:4326 world_topo_bathy.png world_topo_bathy.tif | ||
| - | </ | ||
| - | |||
| - | Nel GeoTiff risultante vengono incorporate sie le informazioni relative al sistema di riferimento che quelle contenute nel world file. | ||
| - | |||
| - | Se il file è troppo grande conviene realizzare //le piramidi//, | ||
| - | |||
| - | gdalado | ||
tecnica/gps_cartografia_gis/georeferencing.1254146661.txt.gz · Last modified: by niccolo
