mapbox / osm-bright

A Carto template for OpenStreetMap data
BSD 3-Clause "New" or "Revised" License
697 stars 225 forks source link

ENOENT, readdir '.../shp/land-polygons-split-3857' #93

Open tommypeps opened 9 years ago

tommypeps commented 9 years ago

I am follow this tutorial https://www.mapbox.com/tilemill/docs/guides/osm-bright-mac-quickstart/ I am block on final step 3.

captura de pantalla 2014-12-16 a las 11 50 45

the content of folder is captura de pantalla 2014-12-16 a las 11 54 01

and the permissions are ...

captura de pantalla 2014-12-16 a las 11 56 17

The version of tile Mill is https://github.com/mapbox/tilemill#installation there is problem with tile mill in Yosemite.

can someone help?

Svantulden commented 9 years ago

I had this problem too previously. Try to edit the configure.py and correct the config["land-high"] and config["land-low"] paths (all the way to the bottom of the config).

For me, the paths were by default osm-bright/shp/land_polygons.shp, while the guide said I had to have it in another directory within /shp/. I would suggest to double-check if the path in the config and the path of the shp matches.

You can also instantly change the path if you go to the land-low and land-high layer in Tilemill. Go to the layers (bottomleft) and edit the layer properties to change the path.

tommypeps commented 9 years ago

captura de pantalla 2014-12-17 a las 18 40 56

captura de pantalla 2014-12-17 a las 18 41 28 trying into and out of the folder, I execute ./make.py and lunch tilemill and there is the same problem. I have to rerun the step 2?

Svantulden commented 9 years ago

Yeah that configure.py just sets the path in the layer. So you have to rerun step 2 or manually modify the layer path

sheecegardezi commented 6 years ago

For me config["neplaces"] was pointing to an empty directory so I followed the step to download 10m-populated-places-simple.zip and replace all the '-' with ''

Places shapefile required for the osm2pgsql style http://mapbox-geodata.s3.amazonaws.com/natural-earth-1.4.0/cultural/10m-populated-places-simple.zip or http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip

config["ne_places"] = path.join(getcwd(),"shp/10m_populated_places_simple/10m_populated_places_simple.shp")

Dont know if the following had any contribution but I made the following changes too:

I removed all the numbers in the paths: config["land-high"] = path.join(getcwd(),"shp/land_polygons_split/land_polygons.shp") config["land-low"] = path.join(getcwd(),"shp/simplified_land_polygons_complete/simplified_land_polygons.shp")

Rename the name folder to: mapbox_osm

sheecegardezi commented 6 years ago

Following pages needs to be updated: https://tilemill-project.github.io/tilemill/docs/guides/osm-bright-mac-quickstart/ Additions this file has to be unzipped in shp and paths have to be updated.