[GIS] Adding turf.js polygons from shapefiles

geojsonshapefileturf

I'd like to know if there is any tool I can use to import polygons from a shapefile.

Is there any way to import a feature class in turf format or I should use GeoJSON?

Best Answer

You can convert shapfiles to geojson using shapefile-js library or other similar libraries, in the browser without making any server calls.

then use that geojson data with Turf.js