World file: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
(Konversion World file zu Google Earth)
Zeile 1: Zeile 1:
 
'''World File (.tfw, .jgw (.jfw))'''.
 
'''World File (.tfw, .jgw (.jfw))'''.
  
Das ESRI World-Format (world file, world-file) speichert Bild-zu-Weltkoordinaten-Daten zur [[Georeferenzierung]] von Rasterbildern. Der Dateiname heisst gleich, während die Datei-Extensions für tif tfw, für jpg jgw heissen, also der erste und letzte Buchstabe der dreibuchstabigen Erweiterung ergänzt mit 'w' am Schluss.
+
Das ESRI World file-Format (world file, world-file) speichert Bild-zu-Weltkoordinaten-Daten zur [[Georeferenzierung]] von Rasterbildern. Der Dateiname heisst gleich, während die Datei-Extensions für tif tfw, für jpg jgw heissen, also der erste und letzte Buchstabe der dreibuchstabigen Erweiterung ergänzt mit 'w' am Schluss.
  
 
Siehe auch / see also: [[WorldFileTool]]
 
Siehe auch / see also: [[WorldFileTool]]
  
== Konversion World file zu Google Earth ==
+
Hinweis: Mit dem [[WorldFileTool]] kann man World files bereinigen, sowie zu KML (Google Earth) konvertieren und umgekehrt - ausgehend von Google Earth, KML zu World files wandeln.
 
 
Google Earth expects image overlays unprojected with lat/long extents while worldfiles are projected by default in UTM. The projection in world files are not specified, but often you can make a guess.
 
 
 
Tipp: Use gdalwarp (see [[GDAL]]) to convert each jpg/worldfile into an unprojected GeoTiff, and then gdal_translate to produce a jpeg compatible with Google Earth, along with another worldfile listing in lat/lon. here we guess the image is in "UTM Zone 49 S".
 
 
 
  % gdalwarp -s_srs EPSG:21781 -t_srs EPSG:4326 switzerland.jpg switzerland_wgs84.tif
 
  % gdal_translate -outsize 13% 13% -of JPEG -co WORLDFILE=YES switzerland_wgs84.tif switzerland_wgs84.jpg
 
  
 
== Format ==
 
== Format ==
Zeile 37: Zeile 30:
 
English text:
 
English text:
 
   
 
   
The ESRI World format stores the image-coordinates-to-world-coordinates transformation data resulting from the georeferencing process. The resulting file contains the of an Affine transformation factors A to F defining the registering of the image in accordance with the equation below:
+
The ESRI World file format stores the image-coordinates-to-world-coordinates transformation data resulting from the georeferencing process. The resulting file contains the of an Affine transformation factors A to F defining the registering of the image in accordance with the equation below:
  
 
   1. x' = A x + B y + C
 
   1. x' = A x + B y + C

Version vom 12. Mai 2008, 20:23 Uhr

World File (.tfw, .jgw (.jfw)).

Das ESRI World file-Format (world file, world-file) speichert Bild-zu-Weltkoordinaten-Daten zur Georeferenzierung von Rasterbildern. Der Dateiname heisst gleich, während die Datei-Extensions für tif tfw, für jpg jgw heissen, also der erste und letzte Buchstabe der dreibuchstabigen Erweiterung ergänzt mit 'w' am Schluss.

Siehe auch / see also: WorldFileTool

Hinweis: Mit dem WorldFileTool kann man World files bereinigen, sowie zu KML (Google Earth) konvertieren und umgekehrt - ausgehend von Google Earth, KML zu World files wandeln.

Format

Hier ein Beispiel (mit CH1903-Koordinaten):

 A: 1.25
 B: 0
 C: 0
 D: -1.25
 E: 675000.625
 F: 277999.375

Erläuterungen:

  • Zeile A: Die erste Zahl ist gleich der Länge eines Pixels in horizontaler Richtung.
  • Zeile B/C: Die zweite und die dritte Zahl sind Rotationswinkel, die jedoch 0 sind und oft ignoriert werden (z.B. ArcView 3.x).
  • Zeile D: Die vierte Zahl ist die Länge eines Pixels in vertikaler Richtung. Zu beachten ist hier das negative Vorzeichen.
  • Zeile E/F: Die zwei letzten Zeilen/Zahlen sind die Koordinaten der linken oberen Ecke des Bildes (hier: Landeskoordinaten der Schweiz).

Bemerkung zu E/F: Die Zahlen hier sind in einem bestimmten Koordinaten-Referenz-System gehalten (KRS, engl. CRS oder SRS). Angaben zu KRS werden z.B. bei ESRI-Produkten oft in .PRJ-Dateien abgelegt.


English text:

The ESRI World file format stores the image-coordinates-to-world-coordinates transformation data resulting from the georeferencing process. The resulting file contains the of an Affine transformation factors A to F defining the registering of the image in accordance with the equation below:

  1. x' = A x + B y + C
  2. y' = D x + E y + F

with x,y = Image coordinates

    x',y'= Real world coordinates
    A = x-scale
    B,D = rotation terms
    C,F = translation terms
    E = y-scale (negative)
    

Example for a .tfw file:

   A: 4.23214625853148
   D: 0.00000000000000
   B: 0.00000000000000
   E: -4.23214625853148
   C: 3404018.70881921
   F: 5819863.55539414

Weblinks