Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

This question already has an answer here:

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.

share|improve this question

marked as duplicate by underdark Jun 10 '13 at 15:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
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

1 Answer 1

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.

share|improve this answer
    
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.