Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the OSM down-loader functionality #267

Open
1 task
Tracked by #51 ...
mvmaltitz opened this issue Sep 16, 2024 · 1 comment
Open
1 task
Tracked by #51 ...

Implement the OSM down-loader functionality #267

mvmaltitz opened this issue Sep 16, 2024 · 1 comment

Comments

@mvmaltitz
Copy link
Collaborator

mvmaltitz commented Sep 16, 2024

Using QgsBlockingNetworkRequest or non blocking request, impleent logic that will perform one or more OSM queries (one per polygon part for the analysis area) of the bounding boxes generated during the project setup phases.

I have provided an initial exemplar implementation here:

https://github.com/kartoza/GEEST2/blob/tim/geest/core/osm_data_downloader.py

This needs to be updated to use QgsLogger (see https://qgis.org/pyqgis/3.34/core/QgsLogger.html#module-QgsLogger) rather than printf for status messages that are not user facing.

User facing messages should be shown to the user https://qgis.org/pyqgis/3.34/gui/QgsMessageBar.html#module-QgsMessageBar

For the initial implementation just focus on having a static example of the downloader perfroming a query and saving it to the working dir, and a unit test to show it works properly.

Some pre-requisites for this ticket:

  • Implement properties for project
  • [ ]
@timlinux
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants