Am 05.02.2014 15:26, schrieb Jukka Rahkonen:


QGIS, GDAL and OSM users should also remember that there is an excellent
GDAL OSM driver http://gdal.org/ogr/drv_osm.html.

You can use it by simply dragging the .osm file into the table of content.


Another chance is to use the spatialite_osm_map tool.

Unfortuantely, all these (and the standard osm2pgsl importer to Postgis) strip of the osm user information during import by default.

For the direct import with Add vector layer, you can edit the file ../QGIS Dufour\share\gdal\osmconf.ini by editing

# common attributes
osm_id=yes
osm_version=yes
osm_timestamp=yes
osm_uid=yes
osm_user=yes
osm_changeset=yes

for point, lines, multipolygons, multilinestrings and other_relations.


For osm2pgsql, it is possible to add those columns by uncommenting the last lines of the default style:
#node,way  osm_user       text
#node,way  osm_uid        text
#node,way  osm_version    text
#node,way  osm_timestamp  text

HTH,
André Joost


_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to