JOSM/Plugins/Scanaerial: Difference between revisions
Jump to navigation
Jump to search
(+ settings updated) |
No edit summary |
||
| Line 46: | Line 46: | ||
! Key || Default value || Function |
! Key || Default value || Function |
||
|- |
|- |
||
| fixedzoomlevel |
| fixedzoomlevel |
||
| |
| 11 |
||
| use this zoomlevel, if Ext_tools did not tell via TZoom |
| use this zoomlevel, if Ext_tools did not tell via TZoom |
||
|- |
|- |
||
| server_api |
|||
| wmsname |
|||
| bing |
|||
| ⚫ | |||
| access method of map server: wms, tms or bing |
|||
| ⚫ | |||
|- |
|- |
||
| server_name |
|||
| wms_server_url |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| address |
|||
|- |
|- |
||
| server_url |
|||
| #wmsname |
|||
| [http://dev.virtualearth.net/REST/v1/Imagery/Metadata/Aerial?include=ImageryProviders&output=xml&key=Arzdiw4nlOJzRwOz__qailc8NiR31Tt51dN2D7cm57NrnceZnCpgOkmJhNpGoppU http://dev.virtualearth.net/...] |
|||
| '''LandSAT''' |
|||
| half-link for WMS, JOSM-like address for TMS |
|||
| name |
|||
|- |
|- |
||
| empty_tile_bytes |
|||
| #wms_server_url |
|||
| ⚫ | |||
| colspan="2" | http://irs.gis-lab.info/?layers=landsat& |
|||
| size of empty tile (in bytes) for current map server |
|||
|- |
|- |
||
| empty_tile_checksum |
|||
| #wmsname |
|||
| -332268601 |
|||
| '''OSM''' |
|||
| checksum of empty tile file (algorithm: CRC32) |
|||
| name |
|||
|- |
|- |
||
| ⚫ | |||
| #wms_server_url |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
|- |
|- |
||
| ⚫ | |||
| #tmsname |
|||
| 256 |
|||
| '''MapBox''' |
|||
| name |
|||
| ⚫ | |||
| #tms_server_url |
|||
| ⚫ | |||
| ⚫ | |||
| #tmsname |
|||
| '''MapQuest''' |
|||
| name |
|||
| ⚫ | |||
| #tms_server_url |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
|- |
|||
| ⚫ | |||
| ⚫ | |||
| leave it to 256 unless you know what you do |
| leave it to 256 unless you know what you do |
||
|- |
|- |
||
| tile_sizey |
| tile_sizey |
||
| 256 |
| 256 |
||
| leave it to 256 unless you know what you do |
| leave it to 256 unless you know what you do |
||
|- |
|- |
||
| Line 103: | Line 87: | ||
|- |
|- |
||
| deactivate_simplifying |
| deactivate_simplifying |
||
| 0 |
| 0 |
||
| deactivate Douglas-Peucker algorithm (only for debugging) |
|||
| ''exact meaning ?'' |
|||
|- |
|- |
||
| colour_str |
| colour_str |
||
| 30 |
| 30 |
||
| colour sensitivity |
| colour sensitivity (depends on contrast of images) |
||
|- |
|- |
||
| maxfilter_setting |
| maxfilter_setting |
||
| 3 |
| 3 |
||
| median filter size (noise reduction strength) |
|||
| how many times should we apply the smoothening? |
|||
| ⚫ | |||
| size_limit |
|||
| 400 |
|||
| maximum size of produced object |
|||
| ⚫ | |||
== Available servers == |
|||
{| class="wikitable" |
|||
|server_api = wms<br/> |
|||
server_name = Landsat<br/> |
|||
| ⚫ | |||
| ⚫ | |||
|server_api = wms<br/> |
|||
server_name = OSM<br/> |
|||
| ⚫ | |||
| ⚫ | |||
|server_api = tms<br/> |
|||
server_name = MapBox<br/> |
|||
| ⚫ | |||
empty_tile_bytes = 1882<br/> |
|||
empty_tile_checksum = -1893505042 |
|||
|- |
|- |
||
|server_api = tms<br/> |
|||
| timeout |
|||
server_name = MapQuest<br/> |
|||
| 15 |
|||
| ⚫ | |||
| |
|||
empty_tile_bytes = 2935<br/> |
|||
empty_tile_checksum = 839257317 |
|||
|- |
|- |
||
|server_api = bing<br/> |
|||
server_name = Bing<br/> |
|||
server_url = http://dev.virtualearth.net/REST/v1/Imagery/Metadata/Aerial?include=ImageryProviders&output=xml&key=Arzdiw4nlOJzRwOz__qailc8NiR31Tt51dN2D7cm57NrnceZnCpgOkmJhNpGoppU<br/> |
|||
empty_tile_bytes = 1033<br/> |
|||
empty_tile_checksum = -332268601 |
|||
|} |
|} |
||
Revision as of 16:07, 11 January 2015
General
Scanaerial is a package with python code to scan aerial pictures.
Requirements
- JOSM (current version)
- Ext_tools plug-in for JOSM
- Python & needed libraries (run library_check.py to find out if a library is missing)
- Python Image Library (in Gentoo: dev-python/imaging). This is only available in Python 2.7 and is not currently available in the newer 3+ versions.
- Python Projection Library (in Gentoo: dev-python/pyproj)
- Current Scanaerial-Script
Setup
Windows
- Unzip the archive and put it in a directory you like (e.g. C:\scanaerial\)
- Install Python, version 2.7 recommended (in our example installed to C:\python27\)
- Install needed Python libraries (Python Imaging Library (PIL) & Python Projection Library (PyProj))
- Install Ext_tools-Plugin in JOSM (more information on JOSM/Plugins#Installation) & Restart JOSM
- In JOSM press F12 and go to Ext_tools configuration
- Add a new tool by clicking the button saying so. Give the tool a good name (scanaerial would be an idea) and paste this as commandline:
C:\python27\python.exe C:\scanaerial\scanaerial.py {lat} {lon} {TZoom}
or if there is a space in the name of the directory (e.g. C:\scan aerial\)
C:\python27\python.exe "C:\SCANAE~1\scanaerial.py" {lat} {lon} {TZoom}
Use
C:\python27\python.exe C:\scanaerial\scanaerial.py {lat} {lon}
without {TZoom} to always use Config-File setting fixedzoomlevel.
It will create a new menu item in the tools menu.
Linux
- Unzip the contents of the downloaded archive to the JOSM Plugin directory. Put it to: ~/.josm/plugins/ext_tools/scanaerial
- Install Python + needed libraries
- Install Ext_tools-Plugin in JOSM (more information on JOSM/Plugins#Installation) & Restart JOSM
- In JOSM press F12 and go to Ext_tools configuration
- Add a new tool by clicking the button saying so. Give the tool a good name (scanaerial would be an idea) and paste this as commandline:
/home/<username>/.josm/plugins/ext_tools/scanaerial/scanaerial.py {lat} {lon} {TZoom}
It will create a new menu item in the tools menu. (NB: Syntax may change soon. Due to a bug in Ext_tools you can not write “~” instead of “home”)
Using Scanaerial
- To invoke scanaerial press ctrl+k or select the new menu item. Now point the cursor on the area you want to trace and left-click.
- For best result you may finetune the values in scanaerial.cfg
Finetuning Config-File
| Key | Default value | Function |
|---|---|---|
| fixedzoomlevel | 11 | use this zoomlevel, if Ext_tools did not tell via TZoom |
| server_api | bing | access method of map server: wms, tms or bing |
| server_name | Bing | name of the map server (only for the tag string) |
| server_url | http://dev.virtualearth.net/... | half-link for WMS, JOSM-like address for TMS |
| empty_tile_bytes | 1033 | size of empty tile (in bytes) for current map server |
| empty_tile_checksum | -332268601 | checksum of empty tile file (algorithm: CRC32) |
| projection | EPSG:3857 | projection that is used on the map server |
| tile_sizex | 256 | leave it to 256 unless you know what you do |
| tile_sizey | 256 | leave it to 256 unless you know what you do |
| douglas_peucker_epsilon | 0.60 | maximum roughness for smoothening the line |
| deactivate_simplifying | 0 | deactivate Douglas-Peucker algorithm (only for debugging) |
| colour_str | 30 | colour sensitivity (depends on contrast of images) |
| maxfilter_setting | 3 | median filter size (noise reduction strength) |
| size_limit | 400 | maximum size of produced object |
Available servers
Fan stuff
if you like scanaerial you can show others that you use it by putting
[[Category:Scanaerial User]]
in your Userpage.