WorldFileTool: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
(Other software to convert World files)
 
(44 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
'''World File Tool''' - A metadata management tool for georeferenced images
+
[[Bild:worldfiletool_swing.png|thumb|WorldFileTool in Swing]]
  
See also [[Indoor WPS]].
+
'''A metadata management tool for georeferenced images.'''
  
== About the WorldFileTool ==
+
See also [[World file]], [[IndoorWPS_Locator]], [[Google Earth]], [[DesktopWMS]].
An interactive tool and a library to georeference images using free and open source software.
 
  
Full deliverable contains Java (inc. Javadoc), Swing and test cases (JUnit).  
+
== About... ==
 +
The WorldFileTool is an interactive tool and a library to georeference images using free and open source software.
 +
Both, the [[World file]] and the [[KML]] file ('GroundOverlay' tag), enable GIS programs to read georeferenced images.
  
 
== Features ==
 
== Features ==
 
* Loads, edits and saves KML with its linked image
 
* Loads, edits and saves KML with its linked image
* Imports a [[Worldfile]] with its corresponding image
+
* If needed, rotates an image to be north aligned and saves it back (and rotating raster images is NOT trivial and at least time consuming!)
* Exports a [[Worldfile]]
+
* Supports following graphic file formats: jpg, (jpeg), png, gif, (tiff)
* Generates a 'background map' from Google Maps (Static Maps API), Yahoo Maps or [[OpenStreetMap]] (tiles-at-HOME)
+
* Imports and exports a [[World file]] with its corresponding image
* Supports following graphic file formats: jpg, tiff, png, gif
 
  
== Weblinks ==
+
Limitations:
* Deegree-Code: See [http://hillary.lat-lon.de/deegree2_buildresults/nightly_untested/api/org/deegree/model/coverage/grid/WorldFile.html Javadoc of WorldFile class]
+
* The rotation of an image can degrade its resolution (which in turn makes its size at least smaller). The rotation of an image outside 0, 90, 180 and 270 degree has some fundamental implications - aside a double memory consumption: (i.e. how to deal with clipped regions of a rotated square pixel?).
* http://www.nabble.com/world-file-to-world-file-td15352846.html
+
 
* Hintergrundkarte bzw. WMS: GoogleWMS: http://peterdamen.com/GoogleWMS/
+
== Usage ==
* Tiling Links: http://del.icio.us/sfkeller/tiling
+
 
* OSM
+
Prepare the image. In order to minimize the system strain, keep the image size smaller than 2000 x 2000 pixels. If the image is larger then that, start WorldFile Tool in Terminal with "java -Xmx256M -jar WorldFileTool.jar".
** tiles@home-Projekt: http://tah.openstreetmap.org/MapOf/?lat=47.225572&long=8.822279&z=15&w=600&h=600&format=jpeg
+
 
** Anderes Projekt: http://dev.openstreetmap.org/~ojw/bbox/?W=8.80&S=47.20&E=8.87&N=47.25&width=600&height=600
+
# Open [[Google Earth]], use "Add Image Overlay", save it and export it as .kml in a local directory.
 +
# Start WorldFileTool, import KML and export it either again KML or as world file.
 +
# Done.
 +
 
 +
Now you can use the image e.g. in [[GIS]] tools like [[UMN Mapserver]] (based on the world file) or in [[IndoorWPS Locator]] (based on the KML).
 +
 
 +
For bugs and feature requests see [http://sifsv002.hsr.ch/worldfiletool Developer's Wiki].
 +
 
 +
== How to transform a World file into WGS84? ==
 +
 
 +
The WorldFileTool currently can't reproject coordinates, e.g. from local to other [[CRS]]s. But Google Earth for example expects image overlays unprojected with lat/long extents.
 +
 
 +
Use gdalwarp (see [[GDAL]]) to convert each world file into an unprojected GeoTiff, and then gdal_translate to produce a jpeg compatible with Google Earth, along with another worldfile listing in lat/lon.
 +
 
 +
  % 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
 +
 
 +
== Download ==
 +
* Download: [http://gis.hsr.ch/wiki/images/a/ad/Worldfiletool_0_3_6.zip WorldFileTool]
 +
* SVN: http://sifsv002.hsr.ch/svn/worldfiletool ([http://sifsv002.hsr.ch/worldfiletool/browser Browse source on SVN])
 +
* [http://sifsv002.hsr.ch/worldfiletool/newticket Bug Report]
 +
* Full deliverable contains Java (inc. Javadoc), Swing, SWT and test cases (JUnit).
 +
 
 +
== Other software to convert World files ==
 +
 
 +
* [http://egb13.net/2009/03/worldfile-calculator/ WorldFile Calculator]
 +
* [[ArcGIS]] Desktop GIS.
 +
* The TatukGIS Viewer can open a raster image file in several different formats (JPG, BMP, PNG, TIF, ECW, SID, JP2), use the world file to georeference it, and then export it to the GeoTiff format with the georeferencing data embedded in it.
 +
* See also http://freegeographytools.com
 +
 
 +
[[Kategorie:Konverter]]

Aktuelle Version vom 4. Dezember 2011, 03:33 Uhr

WorldFileTool in Swing

A metadata management tool for georeferenced images.

See also World file, IndoorWPS_Locator, Google Earth, DesktopWMS.

About...

The WorldFileTool is an interactive tool and a library to georeference images using free and open source software. Both, the World file and the KML file ('GroundOverlay' tag), enable GIS programs to read georeferenced images.

Features

  • Loads, edits and saves KML with its linked image
  • If needed, rotates an image to be north aligned and saves it back (and rotating raster images is NOT trivial and at least time consuming!)
  • Supports following graphic file formats: jpg, (jpeg), png, gif, (tiff)
  • Imports and exports a World file with its corresponding image

Limitations:

  • The rotation of an image can degrade its resolution (which in turn makes its size at least smaller). The rotation of an image outside 0, 90, 180 and 270 degree has some fundamental implications - aside a double memory consumption: (i.e. how to deal with clipped regions of a rotated square pixel?).

Usage

Prepare the image. In order to minimize the system strain, keep the image size smaller than 2000 x 2000 pixels. If the image is larger then that, start WorldFile Tool in Terminal with "java -Xmx256M -jar WorldFileTool.jar".

  1. Open Google Earth, use "Add Image Overlay", save it and export it as .kml in a local directory.
  2. Start WorldFileTool, import KML and export it either again KML or as world file.
  3. Done.

Now you can use the image e.g. in GIS tools like UMN Mapserver (based on the world file) or in IndoorWPS Locator (based on the KML).

For bugs and feature requests see Developer's Wiki.

How to transform a World file into WGS84?

The WorldFileTool currently can't reproject coordinates, e.g. from local to other CRSs. But Google Earth for example expects image overlays unprojected with lat/long extents.

Use gdalwarp (see GDAL) to convert each world file into an unprojected GeoTiff, and then gdal_translate to produce a jpeg compatible with Google Earth, along with another worldfile listing in lat/lon.

 % 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

Download

Other software to convert World files

  • WorldFile Calculator
  • ArcGIS Desktop GIS.
  • The TatukGIS Viewer can open a raster image file in several different formats (JPG, BMP, PNG, TIF, ECW, SID, JP2), use the world file to georeference it, and then export it to the GeoTiff format with the georeferencing data embedded in it.
  • See also http://freegeographytools.com