I had a directory full of tif files with tfw files. I wanted to meet me with all images converted Geotiff . The advantage then is that we included in the image file tiff any georeferencing information. To do this we need only one tool: gdal So with the command:
- for i in `ls -1` *. tif; do (gdal_translate-of-GTiff a_srs EPSG: 4149 $ i `basename $ i. tif` _geo.tif)
- done all the original files in your directory will be preserved and for each file tif MonBoFichier.tif there will MonBoFichier_geo.tif a new file that has been created. And these new files containing georeferencing information as you can see by running a tiffinfo or better one:
listgeo cn41_geo.tif
Geotiff_Information: Version: 1 Key_Revision: 1.0 Tagged_Information: - ModelTiepointTag (2.3 ) 0 0 0 550 000 158 000 0 ModelPixelScaleTag (1,3):
5 5 0
End_Of_Tags. Keyed_Information: GTModelTypeGeoKey (Short,1): ModelTypeGeographic - GTRasterTypeGeoKey (Short,1): RasterPixelIsArea GeographicTypeGeoKey (Short,1): Unknown-4149 GeogCitationGeoKey (Ascii,7): "CH1903" GeogAngularUnitsGeoKey (Short,1): Angular_Degree End_Of_Keys. End_Of_Geotiff.
GCS: 4149/CH1903
(620000d 0'4294967296 .00" E, 110000d 0' 0.00 "N)
Datum: 6149/CH1903
Ellipsoid: 7004/Bessel 1841 (6377397.16,6356078.96)
Prime Meridian: 8901/Greenwich (0.000000/ 0d 0' 0.00"E)
Corner Coordinates: Upper Left <--ajout pour support proxy (550000d 0 '0.00 "E, 158000d 0' 0.00" N) Lower Left
(550000d 0 '0.00 "E, 110000d 0' 0.00" N) Upper Right
(620000d 0'4294967296 .00 "E 158000d 0 '0.00 "N) Lower Right
Center (585000d 0 '0.00" E, 134000d 0' 0.00 "N)
0 comments:
Post a Comment