turfpy.meta module

turfpy.meta.geom_reduce(geojson, initial_value_param)[source]
turfpy.meta.geom_each(geojson, callback)[source]

Iterate over each geometry in any GeoJSON object, similar to Array.forEach().

Parameters
  • geojson – Point|Polygon|MultiPolygon|MultiPoint|LineString|MultiLineString| FeatureCollection|Feature geojson any GeoJSON object

  • callback

Returns

turfpy.meta.calculate_area(geom)[source]
Return type

float

turfpy.meta.polygon_area(coords)[source]
Parameters

coords (list) –

Return type

float

turfpy.meta.ring_area(coords)[source]
Parameters

coords (list) –

turfpy.meta.rad(num)[source]
Parameters

num (float) –

turfpy.meta.coord_each(geojson, callback, excludeWrapCoord=None)[source]

Iterate over coordinates in any GeoJSON object, similar to Array.forEach() :return:

turfpy.meta.segment_reduce(geojson, callback, initial_value=None)[source]
turfpy.meta.segment_each(geojson, callback)[source]
turfpy.meta.flatten_each(geojson, callback)[source]
turfpy.meta.feature_each(geojson, callback)[source]