Diskussion:WorldFileTool: Unterschied zwischen den Versionen
Aus Geoinformation HSR
DTran (Diskussion | Beiträge) |
Stefan (Diskussion | Beiträge) (→Specifications) |
||
Zeile 27: | Zeile 27: | ||
** http:files/gebaeude.zip | ** http:files/gebaeude.zip | ||
* Background map example to test Google Maps export (KML, image): | * Background map example to test Google Maps export (KML, image): | ||
− | ** http:files/background. | + | ** http:files/background.zip |
* KML with priority | * KML with priority | ||
** (?upload) | ** (?upload) | ||
+ | |||
+ | Input with "unwanted" rotation parameter; image needs to be rotated, 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> | ||
+ | ==== | ||
== Methoden == | == Methoden == |
Version vom 18. April 2008, 02:39 Uhr
Inhaltsverzeichnis
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...".
- Start WorldFileTool
- 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)
- 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...
- "Save KML" again
- (optional) 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
- (?upload)
Input with "unwanted" rotation parameter; image needs to be rotated, 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>
==
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.