16

I am trying to convert an OpenStreetMap file into a shapefile, but I am having problems with the "tags" field being cut-off after 80 characters. With QGIS 1.4, I use the OpenStreetMap plugin to 'Load OSM from file'. The file loads in QGIS. If I right-click on the 'lines' layer and select 'Save as shapefile', I end up with a shapefile but one that has an 80 char limit on "tags". How can I increase this 80 character limit?

whuber
  • 69,783
  • 15
  • 186
  • 281
Joshua Galecki
  • 375
  • 1
  • 9
  • 5
    The issue is with the field limitation with Shapefiles not QGIS. You can create a code (.txt) list and join that to the shapefile to get the full tag. – Mapperz May 18 '11 at 18:19
  • The issue is not an 80 character limit in shapefiles, as @John correctly points out. The truncation is likely the fault of the conversion process. – whuber Aug 11 '11 at 14:35

2 Answers2

6

You can also import the data into a PostgreSQL/Postgis database and you will not have that limit. Use the osm2pgsql utility

http://wiki.openstreetmap.org/wiki/Osm2pgsql

Giovanni Manghi
  • 3,907
  • 16
  • 24
6

Unless you have a specific need to use the shapefile format, Spatialite is a good option: its built-in to QGIS, has no limits on the length of fields and is supported by most of the open source tools.

scw
  • 16,391
  • 6
  • 64
  • 101