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)
- Buildings and piers missing at zoom level 13 HOT 3
- Trying to install on Mac HOT 2
- Zoom level simplification HOT 1
- lua error: table is not a function HOT 1
- lua missing, ubuntu 23.04 HOT 1
- STL Vector assertion failed when running maptiles HOT 9
- Assertion failed: (has_wire_type(pbf_wire_type::varint) && "not a varint"), function get_sint64, file pbf_reader.hpp, line 570 HOT 2
- Invalid polygons after clipping at tile boundaries HOT 15
- terminate called after throwing an instance of 'std::out_of_range' HOT 1
- tilemaker-server terminated by signal SIGKILL (Forced quit) HOT 9
- build problems HOT 1
- Planet generation issues on hardware-constrained machine HOT 5
- Tilemaker does not support maritime boundaries HOT 2
- Huge file for simple map. HOT 1
- Roundabouts missing if the first node reference is the same as the last one HOT 2
- Making Tiles With Zoom 15 Removes Place Names HOT 4
- terminate called after throwing an instance of 'boost::interprocess::interprocess_exception'
- CI is broken
- Support writing MultiPoint into vector tiles HOT 1
- Ocean and land area is missing HOT 13
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.