Ticket #2600 (new bug)

Opened 3 years ago

Last modified 2 years ago

OSM plugin: layers in temp folders and qgis messages when opening a project that includes osm data

Reported by: lutra Owned by: wonder
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Python plugins and bindings Version: Trunk
Keywords: Cc: mayeulk
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

Description

When you add to a project OSM data, the osm files are placed in tmp/temp folders. If you save the project and reopen it (on both linux and windows), causes qgis to ask about the missing layers.

If the osm layers are placed in tmp/temp folders on purpose then they should not be saved into the project file. If not, then it should be asked where to save the osm data when downloading it.

I would obviously prefer the second option... :)

cheers

Change History

  Changed 3 years ago by lutra

  • milestone changed from Version 1.5.0 to Version 1.6.0

  Changed 2 years ago by mayeulk

  • cc mayeulk added

in reply to: ↑ description   Changed 2 years ago by mayeulk

Lutra,

I think now there is only the second part of the bug left.

In current dev version (qgis 1.7.0 r14978) the default is still a temp file, see:

 http://trac.osgeo.org/qgis/browser/trunk/qgis/python/plugins/osm/OsmDownloadDlg.py?rev=14131#L312

However, a dialog offers you to change the path to save your osm data, and it works.

The problem still exist when you save the qgis project and want to reopen it. For instance, it will try to open the fowllowing file but does not know how to handle it:

/home/myaccount/maps/download.osm?type=line&tag=name&style=/usr/share/qgis/python/plugins/osm/styles/small_scale.style

For another pholosophy on OSM rendering, have a look at #3222

Note: See TracTickets for help on using tickets.