Comments (9)
Interesting question. I doubt that natural=coastline will be realistic to process on its own. The best approach might be for Tilemaker to support shapefiles, so that you can import (say) openstreetmapdata.com's water polygons. But that'll require both shapefile support and the ability to supply a bounding box to Tilemaker (so that it doesn't render the whole world by accident :) ).
from tilemaker.
I doubt that natural=coastline will be realistic to process on its own
Provided there is at least some coastline in the extract, it's technically possible, relying on the orientation of the coastline. But this would be difficult, and it would be good to have shapefile support for Natural Earth and other sources
from tilemaker.
I've now added shapefile support in a branch: https://github.com/systemed/tilemaker/tree/shapefiles
The configuration docs are updated to explain how it works, but in brief, you import shapefiles directly into a layer by specifying them in the JSON file. Shapefiles must be WGS84 (pure lat/long) and are clipped to the bounding box of the .pbf, unless you specify another bounding box.
Have a play and let me know how you get on. I'm hoping this will land in Tilemaker 1.2 so all feedback is very welcome.
from tilemaker.
Tried making the branch but I can't link libshp apparently (misses the inclusion of shapefil.h) although I've installed it.
# ldconfig -p | grep libshp
libshp.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libshp.so.1
from tilemaker.
It looks like it needs libshp-dev
on Ubuntu. I've added that to the docs - try again?
from tilemaker.
Ok, compiled.
I went to add in the default config.json
"coastlines": {
"minzoom": 11, "maxzoom": 14,
"source": "/root/coast/water-polygons-generalized-3857/water_polygons_z7.shp",
"simplify_below": 13, "simplify_level": 0.0003
}
},
It goes in segfault, the core (gdb tilemaker core) has
Core was generated by `tilemaker Arenzano---43144.pbf --output=arenzano.mbtiles'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f86cdd3294b in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
File is http://osm-toolserver-italia.wmflabs.org/estratti/comuni/pbf/Arenzano---43144.pbf
from tilemaker.
Hm. That works fine for me using the water_polygons_z7.shp
file from openstreetmapdata.com and your .pbf. The error reported is a Lua one - are you using the default Lua script?
from tilemaker.
I've added brief error-trapping to pick up any Lua syntax errors.
from tilemaker.
Recompiled, now exits at the lua errors trap.
Error found in Lua script when reading node_keys - check your script for syntax errors.
I found my problem in the conversion, I'm a fool and deleted the process.lua, so it wasn't there... :-D
Edit: the conversion ends smoothly, I have yet to check if the tile is ok
from tilemaker.
Related Issues (20)
- can't make & sudo make install HOT 7
- Point of interest not inside the tile. HOT 1
- Issue running premade server HOT 2
- mbtiles from tilemaker not working in Opencpn HOT 2
- v2.4.0:tilemaker-ubuntu-22.04.zip:Could not find node with id HOT 2
- config-example.json - ERROR: LayerAsCentroid(): a layer named as "poi_detail" doesn't exist HOT 1
- Couldn't make .mbtiles output file in Docker HOT 7
- terminate called after throwing an instance of 'kaguya::LuaRuntimeError' HOT 12
- Update Mac OS build instructions HOT 12
- Idea for more flexible access to relations HOT 2
- state boundaries have gaps HOT 6
- Could not find node with id HOT 2
- segmentation fault with large file ( > 4gb ) HOT 13
- Failed to solve process cmake HOT 2
- Generating MBTILE with info over 17z HOT 4
- Docker build broken HOT 1
- Weekly update world osm mbtiles HOT 2
- Unable to open landcover SHP HOT 6
- Vector tile generation faulty in edge cases ? HOT 4
- stylesheet HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tilemaker.