1、QGIS安装。
安装路径需仅含英文或数字,无中文或空格。否则就会出现……
以及“unable to open bookmarks database.”、“No Data Providers”、"Python Error"等一系列问题。
(※:出现上图的问题后,尝试用网上说的删除.qgis2文件夹的方式处理,但问题仍然存在。)
2、用QGIS打开OSM数据。
查阅QGIS的UserGuide↓
12.1.3 OpenStreetMap data
In recent years, the OpenStreetMap project has gained popularity because in many countries no free geodata such as digital road maps are available. The objective of the OSM project is to create a free editable map of the world from GPS data, aerial photography or local knowledge. To support this objective, QGIS provides support for OSM data.
Loading OpenStreetMap Vectors
QGIS integrates OpenStreetMap import as a core functionality.
• To connect to the OSM server and download data, open the menu Vector → Openstreetmap → Load data. You can skip this step if you already obtained an .osm XML file using JOSM, Overpass API or any other source.
• The menu Vector → Openstreetmap → Import topology from an XML file willconvert your .osm file into a SpatiaLite database and create a corresponding database connection.
• The menu Vector → Openstreetmap → Export topology to SpatiaLite then allows you toopen the database connection, select the type of data you want (points, lines, or polygons) andchoose tags to import. This creates a SpatiaLite geometry layer that you can add to your project by clicking