[QGIS-Developer] Future of OSM integration
Etienne Trimaille
etienne.trimaille at gmail.com
Thu Oct 12 06:42:44 PDT 2017
Editing OSM data in QGIS looks quite difficult. The OSM data format is
quite far away from any GIS format. And relations are totally not
supported. I think it's out of scope for now
> Does quick OSM give us the same download as local dataset feature. I have
never looked.
Yes it does. You can either use the Overpass API to query the OSM database
or you can open a local OSM file (PBF or XML) using your custom osmconf.ini.
I think QGIS should provide a way to :
* download an OSM dataset from overpass and save it to a local file. It was
only XML format, but it seems PBF is supported since a few months only
http://gis.19327.n8.nabble.com/PBF-output-prototype-available-for-testing-td5884534.html
so I might be good to load the PBF file with OGR now.
* load this file in QGIS, without having the "other_tags" column (or having
hstore as mentioned). QuickOSM is doing a first loop to determine every
field which are needed in the vector layer, it's quite time-consuming.
2017-10-12 14:52 GMT+02:00 Hugo Mercier <hugo.mercier at oslandia.com>:
>
>
> On 12/10/2017 14:27, Stefan Keller wrote:
> > 2017-10-12 11:43 GMT+02:00 Hugo Mercier <hugo.mercier at oslandia.com>:
> >> On 12/10/2017 11:30, Stefan Keller wrote:
> > ...
> >> Support for hstore columns in qgis 3 for example could be reused in some
> >
> > Yes, I'm excited to hear that hstore type is part of QGIS 3.
> >
> >> And we would have to find a smart way to handle OSM relations.
> >
> > Agreed. BUT: there is still the topology to handle:
> > Importers convert certain ways and relations to lines and polygons
> > and throw away the node-id just keeping the coordinates/support points.
> > How would you store these node-ids?
>
> If I had a RDBMS, I'll use editable views for that. On-the-fly
> geometries generated from nodes, ways and relations and triggers to make
> sure the whole topology is always respected.
>
> I don't have a solid solution yet, but virtual layers and/or geometry
> generators and/or a SQLite db may be a base for a first implementation.
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20171012/03384c81/attachment.html>
More information about the QGIS-Developer
mailing list