Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tommypeps opened this issue Dec 16, 2014 · 5 comments
Open

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

tommypeps opened this issue Dec 16, 2014 · 5 comments

Comments

@tommypeps
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

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
Copy link

sheecegardezi commented May 13, 2018

For me config["ne_places"] 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
Copy link

sheecegardezi commented May 13, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants