README.md 1.77 KB
Newer Older
Jan Málek's avatar
Jan Málek committed
1 2
# JOSM Batch Downloader

Jan Malek's avatar
Jan Malek committed
3
Downloads data around every selected feature or inside of it (Polygons) or around each feature in active layer if none are selected.
Jan Málek's avatar
Jan Málek committed
4

Jan Malek's avatar
Jan Malek committed
5
The tool works in a loop and creates a rectangle around each (selected) feature and runs a download task with the created 
Jan Málek's avatar
Jan Málek committed
6 7
rectangle as a bounding box. The size of the rectangle around the feature can be specified.
There are 2 main purposes:
Jan Malek's avatar
Jan Malek committed
8

Jan Málek's avatar
Jan Málek committed
9
1. Download data around imported points for further validation. (This was the original purpose and much larger project. 
Jan Malek's avatar
Jan Malek committed
10 11
You can check it out on https://gitlab.com/Jamalek/survey-validator)

Jan Málek's avatar
Jan Málek committed
12 13 14 15 16
2. Multiple task validation with HOTOSM Tasking Manager: 
	a)	Go to a project, select validation tab without any tile selected (or click outside tiled area to unselect any 
	tile)
		Here you can see all mappers of the project.
	b)	Click start on any mapper to start validating all his tiles.
Jan Malek's avatar
Jan Malek committed
17 18 19 20
	c)	Click on start JOSM as normally. Here instead of sending the data, TM will only send the bounding boxes. 
        (Only works for certain number of tiles, tested 300 - worked, 1400 - did not work)
	d)	Activate the layer containing tiles
	e)	Run Batch-downloader from menu/Data/Batch download
Jan Málek's avatar
Jan Málek committed
21 22 23 24
	
Each feature usually takes up something between half a second to several seconds depending on the size of the downloaded 
area. Keep that in mind when downloading data around more than 100 features.

Jan Malek's avatar
Jan Malek committed
25 26 27 28 29 30
Bug:
Sometimes this message appears: "Could not load plugin 'josm-batch-downloader' because the plugin
main class 'org.openstreetmap.josm.plugins.batchdownloader.BatchDownloaderPlugin' was not found.
Delete from preferences?"
Current solution is removing the plugin, restarting JOSM and adding the plugin back. 

Jan Malek's avatar
Jan Malek committed
31
Example video: https://www.youtube.com/watch?v=lm3jK4VuUOo (old version)
Jan Malek's avatar
Jan Malek committed
32

Jan Málek's avatar
Jan Málek committed
33
You can contact me on 2janmalek[at]gmail.com