Diskussion:WorldFileTool: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
(Weblinks)
 
(48 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
== Enhancements... ==
+
Repository (Trac) => http://sifsv002.hsr.ch/worldfiletool
  
* DONE, Buttons lassen (keine Toolbar), kein "Title"-Feld.
+
== To Do's... ==
* DONE, Alle Menu items und Buttons "Import " und "Export " mit "..."
+
-
 +
 
 +
== Bugs und Feature Requests ==
 +
Für später...
 
* Flag: Set backround color to white (jpg, default: off) nach Rotieren
 
* Flag: Set backround color to white (jpg, default: off) nach Rotieren
* DONE, Bei Änderungen "Data has changed. Do you really want to quit?"
+
* unnecessary, Starten mit Doppelklick auf .jar (unter Windows)
* DONE, Vor speichern einer gleichnamigen Datei, warnen: "File already exists. Do you wan to overwrite it?".
+
** ''beim tobi, auf meinem laptop und auf dem pc funktionierts mit doppelklick.
* DONE, Bei Pull down menu "Map Type" fehlt "others".
+
* maxscaledenom und minscaledenom im KML metadata-'Block' einführen (gibt's so was auch in KML?)
* DONE, Es heisst "World File", bzw. "World file".
+
;minscaledenom <int>: Minimum scale denominator at which this layer is valid. When a requests at a larger scale is done, the layer is drawn. This effectively prevents the user from zooming in too far in. Note: Terminology is that 1:1000 is a *larger* scale than 1:100000. Example: minscaledenom 1
 +
;maxscaledenom <int>: Minimum scale at which this layer is valid. When a requests at a smaller scale is done, the layer is drawn. This effectively prevents the user from zooming too far out. Example: maxscaledenom 100000.
 +
 
 +
== Einschränkungen ==
 +
* Bildformate: JPG, PNG, GIF
 +
** TIFF:
 +
*** Win32 [http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-windows-i586-jre.exe JavaTM Advanced Imaging Image I/O Tools]
 +
*** Linux32 [http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-i586-jre.bin JavaTM Advanced Imageing Image I/O Tools]
  
Später:
+
== Requirements ==
* In Swing umschreiben - gute Übung zum Vergleich.
 
  
== 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.
Zeile 18: Zeile 27:
 
# 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)
+
## or 1. open image file (e.g. jpg), take worldfile (e.g .jpw)
 
## adds metadata in GUI (if needed):  
 
## adds metadata in GUI (if needed):  
 
### floor (-99..99, default= 0)  
 
### floor (-99..99, default= 0)  
### priority (1..100 i.e. 1= highest, 0=unknown, no default!)
+
### priority (1..100 i.e. 1= highest, 0= unknown, default= 0)
### map type '<background> (2=Others, 1=Landkarte, 0=Gebäudeplan, default= 0)  
+
### map type '<background> (2= Others, 1= Background Map, 0= Building Map, default= 0)  
 
### name (String, falls nicht vorhanden (Worldfile) default "Karte/Plan ohne Namen")
 
### name (String, falls nicht vorhanden (Worldfile) default "Karte/Plan ohne Namen")
 
# using '''WorldFileTool''' do either...  
 
# using '''WorldFileTool''' do either...  
 
## "Save KML" again (note: rotate image to north if needed, see below)
 
## "Save KML" again (note: rotate image to north if needed, see below)
## (optional) Export world file  
+
## Export world file  
 
## (optional) Generate 'background map' (includes KML and image) (internet access required).
 
## (optional) Generate 'background map' (includes KML and image) (internet access required).
 
# Use georeferenced image in your GIS viewer (e.g. IndoorWPS), map server or GIS.
 
# Use georeferenced image in your GIS viewer (e.g. IndoorWPS), map server or GIS.
Zeile 39: Zeile 48:
  
 
KML:
 
KML:
* Examples to test load/import (KML without metadata, image):  
+
* Examples to test load/import (KML without metadata, image): http:files/amklusbach.zip
** http:files/amklusbach.zip
+
* Building map example to test export (KML, image): http:files/gebaeude.zip
* Building map example to test export (KML, image):
+
* Background map example to test Google Maps export (KML, image): http:files/background.zip
** http:files/gebaeude.zip
+
* KML with priority: ?
* Background map example to test Google Maps export (KML, image):
 
** http:files/background.zip
 
* KML with priority
 
** (?upload)
 
  
 
Input with "unwanted" rotation parameter; image needs to be rotated to 'north', so that <rotation>-49.84368795876157</rotation> can be left out (= <rotation>0</rotation>):
 
Input with "unwanted" rotation parameter; image needs to be rotated to 'north', so that <rotation>-49.84368795876157</rotation> can be left out (= <rotation>0</rotation>):
Zeile 67: Zeile 72:
 
   </kml>
 
   </kml>
  
== Methoden ==
+
== Weblinks ==
  /* Assumes a world file of a north up image, unprojected and in
+
* Formula for deriving the destination point given a start point, an initial bearing, and a distance travelled: [http://www.movable-type.co.uk/scripts/latlong-vincenty-direct.html]
    WGS 84, defined with following affine transform parameters
+
* http://freegeographytools.com
  */
+
 
  Point getlat2lon2(Image img, File worldfile)
+
Background Map:
  etc.
+
* 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 siehe [[DesktopWMS]]
 +
* 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
 +
 
 +
== History ==
 +
 
 +
[[Benutzer:Stefan|Stefan]] 21:51, 7. Aug. 2008 (CEST):
 +
* In Swing umschreiben - gute Übung zum Vergleich.
 +
* Rotation dreht auf die falsche Seite (ev. wird rotation-Vorzeichen nicht berücksichtigt?)
 +
** ''was heisst falsche seite? bild vom kml oder worldfile, beides?
 +
** => Ich glaube, im Bild (gif) und zwar nach im Uhrzeigersinn statt im Gegenuhrzeigersinn; siehe Gebaeude_5_Screen.jpg mit dem Vergleich Gebaeude_5_OG1.gif (= Original, noch nicht nach Norden gedreht) und Gebaeude_5_OG2.gif (falsch gedreht?). [[Benutzer:Stefan|Stefan]] 14:13, 11. Mai 2008 (CEST)
 +
** ''status tests:
 +
*** ''kml export to wordfile: PASSED.
 +
*** ''kml pic rotation: PASSED.
 +
*** ''worldfile to kml: PASSED.
 +
*** ''worldfile pic rotation: experimental.
 +
 
 +
[[Benutzer:Stefan|Stefan]] 20:17, 12. Mai 2008 (CEST):
 +
* DONE, kml parser: case sensitive reading: Image-Name: Gross-Kleinschreibung beim Einlesen lassen (nicht auf Kleinschreibung zwingen).
 +
* DONE, Bei Laden und Editieren des Felds 'Image' (= Filename) testen und anzeigen (= z.B. grünes Häckchen?), dass Datei vorhanden ist.
 +
* DONE, Warte-Cursor u.a. beim Rotieren des Bilds. ''wird hier ein dialog mit ja/nein erwartet? im moment wird im hintergrund rotiert..'' => Kein Dialog, nur Cursor, der von Pfeil (oder so) auf Sanduhr wechselt - wenn es eine kleine Datei ist, nur für Millisekunden. [[Benutzer:Stefan|Stefan]] 14:13, 11. Mai 2008 (CEST)
 +
 
 +
[[Benutzer:Stefan|Stefan]] 14:14, 11. Mai 2008 (CEST):
 +
* DONE, "Export as World File" soll direkt das World file speichern (daher ohne "...") und zwar passend zum Format (JPG, GIF, etc.).
 +
* DONE, Buttons lassen (keine Toolbar), kein "Title"-Feld.
 +
* DONE, Alle Menu items und Buttons "Import " und "Export " mit "..."
 +
* DONE, Vor speichern einer gleichnamigen Datei, warnen: "File already exists. Do you wan to overwrite it?".
 +
* DONE, Bei Pull down menu "Map Type" fehlt "others".
 +
* DONE, Es heisst "World File", bzw. "World file".
 +
* DONE, Starten ohne, dass gleich "Import..."-Dialog kommt.
 +
* DONE, Bei Änderungen "Data has changed. Do you really want to quit?"
 +
* DONE, kml: tags case sensitive (groundoverlay => GroundOverlay)
 +
* DONE, Import World file (ohne KML) berechnet south und east nicht.

Aktuelle Version vom 20. September 2009, 17:35 Uhr

Repository (Trac) => http://sifsv002.hsr.ch/worldfiletool

To Do's...

-

Bugs und Feature Requests

Für später...

  • Flag: Set backround color to white (jpg, default: off) nach Rotieren
  • unnecessary, Starten mit Doppelklick auf .jar (unter Windows)
    • beim tobi, auf meinem laptop und auf dem pc funktionierts mit doppelklick.
  • maxscaledenom und minscaledenom im KML metadata-'Block' einführen (gibt's so was auch in KML?)
minscaledenom <int>
Minimum scale denominator at which this layer is valid. When a requests at a larger scale is done, the layer is drawn. This effectively prevents the user from zooming in too far in. Note: Terminology is that 1:1000 is a *larger* scale than 1:100000. Example: minscaledenom 1
maxscaledenom <int>
Minimum scale at which this layer is valid. When a requests at a smaller scale is done, the layer is drawn. This effectively prevents the user from zooming too far out. Example: maxscaledenom 100000.

Einschränkungen

Requirements

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..." (WICHTIG: Speichern als UTF-8!).
  4. Start WorldFileTool
    1. Choose "Open KML..." (which includes already overlay title, image name, bbox)
    2. or 1. open image file (e.g. jpg), take worldfile (e.g .jpw)
    3. adds metadata in GUI (if needed):
      1. floor (-99..99, default= 0)
      2. priority (1..100 i.e. 1= highest, 0= unknown, default= 0)
      3. map type '<background> (2= Others, 1= Background Map, 0= Building Map, default= 0)
      4. name (String, falls nicht vorhanden (Worldfile) default "Karte/Plan ohne Namen")
  5. using WorldFileTool do either...
    1. "Save KML" again (note: rotate image to north if needed, see below)
    2. 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.zip
  • KML with priority: ?

Input with "unwanted" rotation parameter; image needs to be rotated to 'north', so that <rotation>-49.84368795876157</rotation> can be left out (= <rotation>0</rotation>):

 <?xml version="1.0" encoding="UTF-8"?>
 <kml xmlns="http://earth.google.com/kml/2.2">
 <GroundOverlay>
   <name>HSR-Gebäude 6 1. Stock</name>
   <Icon>
     <href>G6-2.png</href>
     <viewBoundScale>0.75</viewBoundScale>
   </Icon>
   <LatLonBox>
     <north>47.22384390486059</north>
     <south>47.22345122640866</south>
     <east>8.816304349533887</east>
     <west>8.815489285344636</west>
     <rotation>-49.84368795876157</rotation>
   </LatLonBox>
 </GroundOverlay>
 </kml>

Weblinks

Background Map:

History

Stefan 21:51, 7. Aug. 2008 (CEST):

  • In Swing umschreiben - gute Übung zum Vergleich.
  • Rotation dreht auf die falsche Seite (ev. wird rotation-Vorzeichen nicht berücksichtigt?)
    • was heisst falsche seite? bild vom kml oder worldfile, beides?
    • => Ich glaube, im Bild (gif) und zwar nach im Uhrzeigersinn statt im Gegenuhrzeigersinn; siehe Gebaeude_5_Screen.jpg mit dem Vergleich Gebaeude_5_OG1.gif (= Original, noch nicht nach Norden gedreht) und Gebaeude_5_OG2.gif (falsch gedreht?). Stefan 14:13, 11. Mai 2008 (CEST)
    • status tests:
      • kml export to wordfile: PASSED.
      • kml pic rotation: PASSED.
      • worldfile to kml: PASSED.
      • worldfile pic rotation: experimental.

Stefan 20:17, 12. Mai 2008 (CEST):

  • DONE, kml parser: case sensitive reading: Image-Name: Gross-Kleinschreibung beim Einlesen lassen (nicht auf Kleinschreibung zwingen).
  • DONE, Bei Laden und Editieren des Felds 'Image' (= Filename) testen und anzeigen (= z.B. grünes Häckchen?), dass Datei vorhanden ist.
  • DONE, Warte-Cursor u.a. beim Rotieren des Bilds. wird hier ein dialog mit ja/nein erwartet? im moment wird im hintergrund rotiert.. => Kein Dialog, nur Cursor, der von Pfeil (oder so) auf Sanduhr wechselt - wenn es eine kleine Datei ist, nur für Millisekunden. Stefan 14:13, 11. Mai 2008 (CEST)

Stefan 14:14, 11. Mai 2008 (CEST):

  • DONE, "Export as World File" soll direkt das World file speichern (daher ohne "...") und zwar passend zum Format (JPG, GIF, etc.).
  • DONE, Buttons lassen (keine Toolbar), kein "Title"-Feld.
  • DONE, Alle Menu items und Buttons "Import " und "Export " mit "..."
  • DONE, Vor speichern einer gleichnamigen Datei, warnen: "File already exists. Do you wan to overwrite it?".
  • DONE, Bei Pull down menu "Map Type" fehlt "others".
  • DONE, Es heisst "World File", bzw. "World file".
  • DONE, Starten ohne, dass gleich "Import..."-Dialog kommt.
  • DONE, Bei Änderungen "Data has changed. Do you really want to quit?"
  • DONE, kml: tags case sensitive (groundoverlay => GroundOverlay)
  • DONE, Import World file (ohne KML) berechnet south und east nicht.