Bug 351633 - Automatic download of .osm files in the "Edit Maps" Panel
Summary: Automatic download of .osm files in the "Edit Maps" Panel
Status: RESOLVED MOVED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR task
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2015-08-23 07:07 UTC by Dennis Nienhüser
Modified: 2016-11-05 09:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Nienhüser 2015-08-23 07:07:39 UTC
Marble supports opening .osm files and editing them (as well as .kml files) in the "Edit Maps" Panel. In this task retrieving data for editing should be simplified by implementing a download option for the current viewport (visible map portion) similar to the JOSM editor.

- Add a button to the "Edit Maps" Panel to trigger the automatic download
- Have it perform safety checks first: The currently visible map portion must be small, there should not be any unsaved data
- Query data from OSM, see https://wiki.openstreetmap.org/wiki/API_v0.6#Retrieving_map_data_by_bounding_box:_GET_.2Fapi.2F0.6.2Fmap on how to create an appropriate region
- Use either QNetworkManager or HttpDownloadManager (whichever is easier) to download the data, ideally providing a progress dialog during the download
- Either just keep the data in memory and open from there, or (probably easier) save to a temporary file and open that
Comment 1 Dennis Nienhüser 2016-11-05 09:17:54 UTC
Please follow up in https://phabricator.kde.org/T4261