I'm trying to add some data in OSM file format in a QGIS 3.4 Graphical Modeler. I'm interested in the line type of data (layer ID 1) inside .osm file but I can only access point data (layer ID 0). The two tested methods were:
- Algorithm "Load layer into project". Only point data are loaded. There are no options to specify the target layer.
- Algorithm "Convert format" from GDAL/Vector. Despite the fact that, apparently, I have control of the conversion options through "Additional creation options field" where I can pass something like
-sql "SELECT * FROM lines"
in reality, it seems that the conversion is preceded by plain a hard-coded ogr2ogr command in form of
ogr2ogr -f ESRI Shapefile input output.shp
This hard-coded command is ignoring any other parameters, thus producing a .shp file with the first layer from the .osm file, the points.
Any clues on how to access the line type of data from the .osm file?