-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
[FEATURE] Other input formats #46
Comments
do you envision that planetiler might pick up where tippecanoe left off? i regularly use tippecanoe with newline separated geojson, and it's a great piece of software, but it doesn't seem like it's getting much maintenance/development these days. |
Interesting, I didn't realize the last commit to tippecanoe was almost a year ago. My guess is it's deprecated in favor of their new proprietary tiling service. I think there are some jobs people use tippecanoe for that planetiler could handle, but not sure about all of the density-based geometry filtering. Planetiler actually looks more like an alternative to the tiling service. The initial motivation was talking with someone trying to generate contour lines from DEM data. They used gdal contour to generate 1x1 degree contour flatgeobuf tiles then they tried to use tippecanoe but it fell over trying to hold the planet in memory. Planetiler should be able to fill that gap since it does the same job but only holds a single input and output tile in memory at a time. Supporting more input formats, and exposing more through config (#18) so you can do more without writing Java code would open up handling more use-cases from tippecanoe. |
What do you think about supporting GeoPackage as an input format too? It's essentially a standardised SQLite database format — a bit like MBTiles — and it's supposed to be a replacement for the venerable shapefile. I've seen it used quite a bit for government data. |
Makes sense! As long as you can read shapes with key/value tags from it then we should be able to use it as an input source. |
Can planetiler handle shapefiles (https://en.wikipedia.org/wiki/Shapefile)? The Swiss government distributes shapefiles (https://data.geo.admin.ch/) for example for natural protected areas. In the past, I converted shapefiles to GeoJSON and then to mbtiles with |
Yes, in fact planetiler currently can only handle shapefiles, natural earth sqlite file, and .osm.pbf files. The openmaptiles profile uses shapfiles for water polygons and lakelines: planetiler/planetiler-basemap/src/main/java/com/onthegomap/planetiler/basemap/BasemapMain.java Lines 28 to 50 in 4ad4d95
|
I'm looking into adding geojson support, I'll look at @erik's PR to better understand where I need to change the code. Not sure which is the preferred one, geotools seems like the one with the highest stars... |
cc @bdon since you have been looking into a geojson parser for the clipping branch https://github.com/protomaps/basemaps/pull/351/files#diff-f325f761549c50b4e2b6f1cb1e77dd8232d99a9f5d4abedc934cabdc3260a6aa |
Add support for other geographic encoding formats, for example:
The text was updated successfully, but these errors were encountered: