-
Notifications
You must be signed in to change notification settings - Fork 238
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
Ocean and land area is missing #720
Comments
From the readme:
The error you are getting shows that you don't have a file at the location where tilemaker is expecting to find it. Make sure that you don't have any extra levels of directory in there. (Please use Github discussions, not issues, for help questions. Thank you :) ) |
i saw that and i had created the folder as shown in the image and downloaded the data from https://osmdata.openstreetmap.de. |
Ah, you're using Docker. Sorry, I don't know how the filesystem works there, hopefully someone else will. |
Run container without --rm option. |
it still shows the same problem. after following the instructions i tried to run It also doesn't work |
@daniel-j-h Could I trouble you for any thoughts on this? |
I believe this has to do with absolute vs relative paths; in your
and turn them into absolute paths such as
Then run it like
I'm not sure where exactly tilemaker looks for those files otherwise - is it relative to the tilemaker binary by chance @systemed? Two learnings here
|
Everything is relative to the current working directory. As far as tilemaker is concerned, coastline and landcover are just another datasource - there's no special handling. The config for a particular set of vector tiles might have both, or none, or lots more! So I don't think we'd want to add special handling for these paths. Would something like a
and it would then look for /data/input.osm.pbf, /data/coastline/water_polygons.shp, etc. etc. |
Not sure we need an extra option for tilemaker when you can change the paths in the config file and use both absolute and relative paths there. In addition there is a With relative paths in the configs and changing the workdir the command looks as follows
|
"docker run" creates new container. In my instructions you shouldn't create new container. Just restart existing container. After |
Updated instructions.
|
I'm capturing learnings from here and #720 (comment) in |
It works, Thank you for the support |
Ocean and land area is missing while converting .osm.pbf file to .mbtiles. and shows the error
### Unable to open coastline/water_polygons.shp or coastline/water_polygons.SHP.
![Screenshot from 2024-05-13 16-12-04](https://private-user-images.githubusercontent.com/108899419/330024491-04ae8d13-8c79-4b16-b5b9-01ec05b94f34.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDI5MDQsIm5iZiI6MTczOTE0MjYwNCwicGF0aCI6Ii8xMDg4OTk0MTkvMzMwMDI0NDkxLTA0YWU4ZDEzLThjNzktNGIxNi1iNWI5LTAxZWMwNWI5NGYzNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQyMzEwMDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NDVhMzgzNTRhOTA4MGM2NmM1MzE2ZGJlMDdmYzlhYzMxOGYyNjJlOWE4MGVmZWRiYzg2NGYxNmRmYWFjNDFjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.uj1mhZYOlorcn4yg0gHd6EpEBYyzZ6u72vMB-IJ4suM)
Reading shapefile urban_areas
Unable to open landcover/ne_10m_urban_areas/ne_10m_urban_areas.shp or landcover/ne_10m_urban_areas/ne_10m_urban_areas.SHP.
Reading shapefile ice_shelf
Unable to open landcover/ne_10m_antarctic_ice_shelves_polys/ne_10m_antarctic_ice_shelves_polys.shp or landcover/ne_10m_antarctic_ice_shelves_polys/ne_10m_antarctic_ice_shelves_polys.SHP.
Reading shapefile glacier
Unable to open landcover/ne_10m_glaciated_areas/ne_10m_glaciated_areas.shp or landcover/ne_10m_glaciated_areas/ne_10m_glaciated_areas.SHP.
Tilemaker is running in docker
The text was updated successfully, but these errors were encountered: