This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

data type conversion extracting user defined tags as columns using Openstreetmap data

1

we have an ,osm data in which we have used some tags that we defined ourselves like, age, roof_type, roof_slope . we want to convert this file to shapefile, in which the roof_type tag appears as a column name and its values as attributes.

we have tried:

QGIS: install plugin, only creates column of 7 tags, others are grouped into one column called tags

OSM2GIS: online tools, selects area on map, has many tags, but not user defined ones

Geoconverter: online tools, input a supported file and it will export a supported file, but not user defined ones

OSMembrane: frontend for Osmosis, still learning (connection problem to postgis)

osm2shp.c: still learning (having problem in running the program)

asked 30 Dec '12, 06:56

amritkarma's gravatar image

amritkarma
684212941
accept rate: 11%


One Answer:

4

Have a look at the command line programm Osmconvert ... it has a feature to output OSM elements in CSV files.

You can define manually what columns are to be generated.

answered 31 Dec '12, 07:43

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

1

Thanks, it solved the case.

(04 Jan '13, 09:26) amritkarma

Could You also have a look at this

(04 Jan '13, 11:09) amritkarma

Source code available on GitHub .