tippecanoe
tippecanoe copied to clipboard
Support for other sources ?
This program is very useful and works great. Would it be possible to add support for other data sources like Shapefile or PostGIS ?
Thanks. Shapefile would be useful and will be practical once I factor out GeoJSON parsing from the rest of the code. PostGIS seems like it would be more difficult to support.
Ok thanks for your reply. It is not a big deal as it is easy to use ogr2ogr to convert any source into GeoJSON but it is an extra step which can take time for big files, it would be great to be able to link this tool directly to a PostGIS database.
@flp-gpc do you have any ideas of linking this tool directly to a PostGIS database.
Any further thoughts about directly supporting shapefile?
https://github.com/mapbox/tippecanoe/pull/468 is a partial implementation of shapefile support, but I got stuck trying to figure out how much support I should have for different projections.
The MVP is "no support for anything but EPSG:4326". Can always revisit that later. :)
I've implemented https://github.com/mapbox/tippecanoe/issues/777 in my fork at https://github.com/protomaps/tippecanoe
Once streaming in https://github.com/protomaps/tippecanoe/issues/9 is supported, GDAL should be able to act as glue for any vector format when using /vsistdout/
to pipe in to tippecanoe, so I suggest that as a solution to Shapefiles, barring conversion quirks like -nlt PROMOTE_TO_MULTI
.