Re: [Qgis-user] QGIS 2.0 and reading OSM through GDAL

2013-09-26 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 26/09/2013 23:22, Jukka Rahkonen ha scritto:

> Once I have QGIS with GDAL 1.10 I can myself do this kind of things by
> writing GDAL .vrt files which would take care of the SQL part but I guess
> many other users would appreciate to have a wizard.

Hi Jukka,
could you please open a ticket on this?
Thanks.

- -- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlJFHLIACgkQ/NedwLUzIr58gACgjPVDnt8/e3/PwBICCpVh6oUZ
ruEAnj8gRxy5IrlSeWTBp6MDJ+T8z7DT
=d3hg
-END PGP SIGNATURE-
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS 2.0 and reading OSM through GDAL

2013-09-26 Thread Jukka Rahkonen
Hi,

I ask this because I am on 32-bit Windows and therefore my QGIS 2.0 comes
with GDAL 1.9 and I can't test myself yet.

Question is: How well QGIS 2.0 supports reading OSM data with the GDAL
read-only OSM driver http://www.gdal.org/ogr/drv_osm.html?

The driver is fast with medium sized datasets. It takes 3 minutes to convert
everything from a Finnish OSM data (150 MB as .pbf) into Spatialite
database. GDAL driver creates 5 OGR layers from the OSM data and reading
them as is may not make much sense with QGIS but with some query wizard
users could select a subset of OSM data and convert those into normal GIS
layers in QGIS. The wizard might help users by creating a list of columns
which can be used for quories by parsing the "osmconf.ini" file. Then there
should be an editable SQL query box for the final query. The contents of the
box would be converted into GDAL/OGR SQL clause. The result would be
something similar than this ogr2ogr command which selects all lines with any
highway tag from an OSM file and saves them into shapefile.

ogr2ogr -f "ESRI Shapefile" -dialect sqlite -sql "select * from lines where
highway is not null" highways.shp berlin-latest.osm.pbf

Once I have QGIS with GDAL 1.10 I can myself do this kind of things by
writing GDAL .vrt files which would take care of the SQL part but I guess
many other users would appreciate to have a wizard.

-Jukka Rahkonen-

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user