Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I want to copy part of OSM data in ESRI Shapefile (downloaded from ) 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 was marked as an exact duplicate of an existing 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
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

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.