The turf.centriod module works great, but it did not take my geojson as in input when it contained Geometry Collections.
I got around this by re-creating my geojson to have FeatureCollections that contain one or more features inside. Then I loop through each FeatureCollection feeding it into the turf.centriod module.
The turf.centriod module works great, but it did not take my geojson as in input when it contained Geometry Collections.
I got around this by re-creating my geojson to have FeatureCollections that contain one or more features inside. Then I loop through each FeatureCollection feeding it into the turf.centriod module.