Diskussion:WorldFileTool: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: == World File Tool - A metadata management tool for georeferenced images == An interactive tool and a library to georeference images using free and open source softwar...)
 
Zeile 1: Zeile 1:
== World File Tool - A metadata management tool for georeferenced images ==
 
 
An interactive tool and a library to georeference images using free and open source software.
 
 
Features:
 
* jpg, tiff, png, gif
 
 
Full deliverable contains Java (inc. Javadoc), Swing and test cases (JUnit). This documentation will be soon placed on http://gis.hsr.ch/wiki/WorldFileTool.
 
 
 
== Workflow ==
 
== Workflow ==
 
# Get image to be referenced about a region on earth; e.g. a floor plan from a building ('building map').
 
# Get image to be referenced about a region on earth; e.g. a floor plan from a building ('building map').
 
# Start Google Earth, create "New overlay..." and georeference image.
 
# Start Google Earth, create "New overlay..." and georeference image.
 
# In Google Earth export overlay as KML (not KMZ) "Save As...".
 
# In Google Earth export overlay as KML (not KMZ) "Save As...".
# Start '''!WorldFileTool'''
+
# Start '''WorldFileTool'''
 
## Choose "Open KML..." (which includes already overlay title, image name, bbox)
 
## Choose "Open KML..." (which includes already overlay title, image name, bbox)
 
## (optional) or 1. open image file (e.g. jpg), take worldfile (e.g .jpw)
 
## (optional) or 1. open image file (e.g. jpg), take worldfile (e.g .jpw)
 
## add metadata in GUI: floor (-99..99) and priority (0=nil=>unknown,1..100), map type (<background>1<background>) change title.
 
## add metadata in GUI: floor (-99..99) and priority (0=nil=>unknown,1..100), map type (<background>1<background>) change title.
# using '''!WorldFileTool''' do either...  
+
# using '''WorldFileTool''' do either...  
 
## "Save KML" again
 
## "Save KML" again
 
## (optional) Export world file  
 
## (optional) Export world file  
Zeile 23: Zeile 14:
  
 
There exist alternatives to georeference an image: See [http://gis.hsr.ch/wiki/Georeferenzieren_von_Bildern GISpunkt Wiki] (german) and [http://freegeographytools.com/2007/importing-google-earth-imagery-into-a-gis freegeographytools.com].
 
There exist alternatives to georeference an image: See [http://gis.hsr.ch/wiki/Georeferenzieren_von_Bildern GISpunkt Wiki] (german) and [http://freegeographytools.com/2007/importing-google-earth-imagery-into-a-gis freegeographytools.com].
 
== Use Cases ==
 
* load, edit and save georeferenced KML
 
* import a world file with its corresponding image
 
* export a world file
 
* generate a 'background map' from Google Maps (Static Maps API), Yahoo Maps or !OpenStreetMap (tiles-at-HOME)
 
  
 
== Specifications ==
 
== Specifications ==
Zeile 52: Zeile 37:
 
   Point getlat2lon2(Image img, File worldfile)
 
   Point getlat2lon2(Image img, File worldfile)
 
   etc.
 
   etc.
 
== Useful Weblinks ==
 
* Deegree-Code: See [http://hillary.lat-lon.de/deegree2_buildresults/nightly_untested/api/org/deegree/model/coverage/grid/WorldFile.html Javadoc of WorldFile class]
 
* http://www.nabble.com/world-file-to-world-file-td15352846.html
 
* Hintergrundkarte bzw. WMS: GoogleWMS: http://peterdamen.com/GoogleWMS/
 
* Tiling Links: http://del.icio.us/sfkeller/tiling
 
* OSM
 
** 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
 

Version vom 17. April 2008, 20:28 Uhr

Workflow

  1. Get image to be referenced about a region on earth; e.g. a floor plan from a building ('building map').
  2. Start Google Earth, create "New overlay..." and georeference image.
  3. In Google Earth export overlay as KML (not KMZ) "Save As...".
  4. Start WorldFileTool
    1. Choose "Open KML..." (which includes already overlay title, image name, bbox)
    2. (optional) or 1. open image file (e.g. jpg), take worldfile (e.g .jpw)
    3. add metadata in GUI: floor (-99..99) and priority (0=nil=>unknown,1..100), map type (<background>1<background>) change title.
  5. using WorldFileTool do either...
    1. "Save KML" again
    2. (optional) Export world file
    3. (optional) Generate 'background map' (includes KML and image) (internet access required).
  6. Use georeferenced image in your GIS viewer (e.g. IndoorWPS), map server or GIS.

There exist alternatives to georeference an image: See GISpunkt Wiki (german) and freegeographytools.com.

Specifications

Floor: Stock. ACHTUNG:

  • Erdgeschoss => first floor (en_GB: ground floor)
  • 1. Stock => 2nd floor (US)

KML:

  • Examples to test load/import (KML without metadata, image):
    • http:files/amklusbach.zip
  • Building map example to test export (KML, image):
    • http:files/gebaeude.zip
  • Background map example to test Google Maps export (KML, image):
    • http:files/background.zi
  • KML with priority
    • (?upload)

Methoden

 /* Assumes a world file of a north up image, unprojected and in
    WGS 84, defined with following affine transform parameters
 */
 Point getlat2lon2(Image img, File worldfile)
 etc.