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.

4
  • How are you saving the shapefile to GeoJSON?
    – user3461
    Apr 9 '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 9 '13 at 11:47
  • 1
    shapefiles truncate field names (legacy) - use another format to eliminate this issue.
    – Mapperz
    Apr 9 '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 9 '13 at 15:34
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.

1
  • Going to try follow you suggestion, will get back with result.
    – andriyr
    Apr 13 '13 at 22:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.