Diskussion:WorldFileTool
Aus Geoinformation HSR
Version vom 12. Mai 2008, 19:23 Uhr von DTran (Diskussion | Beiträge)
Inhaltsverzeichnis
To Do's...
Vorschläge:
- Flag: Set backround color to white (jpg, default: off) nach Rotieren
- 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)
- 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)
Nach erstem 'Stable Release':
- In Swing umschreiben - gute Übung zum Vergleich.
- Starten mit Doppelklick auf .jar (unter Windows)
Bugs und Feature Requests
Für später...
- Generate a 'background map' from Google Maps (Static Maps API), Yahoo Maps and OpenStreetMap (tiles-at-HOME)
Requirements
Workflow:
- 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.
- In Google Earth export overlay as KML (not KMZ) "Save As..." (WICHTIG: Speichern als UTF-8!).
- Start WorldFileTool
- Choose "Open KML..." (which includes already overlay title, image name, bbox)
- or 1. open image file (e.g. jpg), take worldfile (e.g .jpw)
- adds metadata in GUI (if needed):
- floor (-99..99, default= 0)
- priority (1..100 i.e. 1= highest, 0= unknown, 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")
- using WorldFileTool do either...
- "Save KML" again (note: rotate image to north if needed, see below)
- Export world file
- (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.
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
- Formula for deriving the destination point given a start point, an initial bearing, and a distance travelled: [1]
- http://freegeographytools.com
Background Map:
- Deegree-Code: See 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
History
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.