tippecanoe icon indicating copy to clipboard operation
tippecanoe copied to clipboard

Support for other sources ?

Open flemmens opened this issue 9 years ago • 7 comments

This program is very useful and works great. Would it be possible to add support for other data sources like Shapefile or PostGIS ?

flemmens avatar Sep 18 '15 00:09 flemmens

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.

e-n-f avatar Sep 18 '15 00:09 e-n-f

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.

flemmens avatar Sep 18 '15 02:09 flemmens

@flp-gpc do you have any ideas of linking this tool directly to a PostGIS database.

lihuadong1988 avatar Jan 11 '17 09:01 lihuadong1988

Any further thoughts about directly supporting shapefile?

stevage avatar Jan 14 '20 19:01 stevage

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.

e-n-f avatar Jan 18 '20 01:01 e-n-f

The MVP is "no support for anything but EPSG:4326". Can always revisit that later. :)

stevage avatar Jan 18 '20 01:01 stevage

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.

bdon avatar Mar 27 '22 12:03 bdon