0

I want to copy part of OSM data in ESRI Shapefile (downloaded from http://download.geofabrik.de/europe/ukraine.html ) and save in in GeoJSON to style later in Tilemill.

After saving, I see that string values in 'name' column get truncated to be 25 letters long. Any ideas how to overcome mentioned problem?

Thanks in advance!

P.S. I've seen answers related to letters truncation (like here: How to overcome field truncation when converting OSM to shapefile with QGIS?), but I am not sure if I can use that advice.

andriyr
  • 101
  • 1
  • How are you saving the shapefile to GeoJSON? –  Apr 09 '13 at 11:42
  • First, I add osm shapefile as layer into qgis, then select part of rendered map, right click on layer and select "save selected as", then choose geojson. – andriyr Apr 09 '13 at 11:47
  • 1
    shapefiles truncate field names (legacy) - use another format to eliminate this issue. – Mapperz Apr 09 '13 at 14:11
  • What would you suggest in my situation? Can I use raw OSM data and somehow prepare them for TileMill? – andriyr Apr 09 '13 at 15:34

1 Answers1

0

Looking at the files and databases types you can use in Tilemill, the best seems to be to import your OSM data in a PostGis database and connect this database directly to Tilemill.

On Geofabrik, download the *.osm.pbf file for your area of interest. Then use osm2pgsql to import this data in the PostGis database.

FredB
  • 741
  • 7
  • 23