20200922, 09:35–09:55, Room 1
To show how TurfPy can be used to perform various geospatial functionality on geojson data.
Recently a few months back I had started to work with TurfPy. This is a Python library for performing geospatial data analysis. Actually it is a python alternative for turf.js. It is a new package so currently, it supports the MEASUREMENT and TRANSFORMATION functionalists of turf.js. The operation supported by Turfpy can be applied to any geometry type or on Feature objects which are basically standard geojson Features.
Turfpy: https://pypi.org/project/turfpy/
Turfpy Github: https://github.com/omanges/turfpy
The following are the functionalities for each section.
MEASUREMENT

Bearing: Takes two Point Features and finds the geographic bearing between them.

Distance: Calculates the distance between two Point Features. A point is containing latitude and longitude in decimal degrees and unit is optional.

Area: This function calculates the area of the Geojson object given as input.

Bounding box: This function is used to generate bounding box coordinates for given geojson, the input can be a geometry type or it can be a Feature or it can be a FeatureCollection.

Bounding box Polygon: To generate a Polygon Feature for the bounding box generated using the bounding box functionality above.

Center: Takes a Feature or FeatureCollection and returns the absolute center point of all features.

Envelope: Takes any number of features and returns a rectangular Polygon that encompasses all vertices.

Length: Takes a geojson and measures its length in the specified units.

Destination: Takes a Point and calculates the location of a destination point given a distance in degrees, radians, miles, or kilometers and bearing in degrees.

Centroid: Takes one or more features and calculates the centroid using the mean of all vertices.

Along: This function is used to identify a Point Feature at a specified distance along a LineString.

Midpoint: This function is used to get midpoint between any two points.

Nearest Point: Takes a reference Point Feature and FeatureCollection of point features and returns the point from the FeatureCollection closest to the reference Point Feature.

Point On Feature: Takes a Feature or FeatureCollection and returns a Point guaranteed to be on the surface of the feature.

Point In Polygon: Takes a Point or a Point Feature and Polygon or Polygon Feature as input and returns True if Point is in given Feature.

Point To Line Distance: Returns the minimum distance between a Point and any segment of the LineString.

Rhumb Bearing: Takes two points and finds the bearing angle between them along a Rhumb line i.e. the angle measured in degrees start the north line (0 degrees).

Rhumb Destination: Returns the destination Point having traveled the given distance along a Rhumb line

Rhumb Distance: Calculates the distance along a rhumb line between two points in degrees, radians, miles, or kilometers.

Square: Takes a bounding box and calculates the minimum square bounding box that would contain the input.
TRANSFORMATION

Circle: Takes a Point and calculates the circle polygon given a radius in degrees, radians, miles, or kilometers; and steps for precision.

Bounding box clip: Takes a Feature or geometry and a bounding box and clips the feature to the bounding box.

Bezier spline: Takes a line and returns a curved version by applying a Bezier spline algorithm.

Concave Hull: Generate a concave hull for the given feature or Feature Collection.

Convex Hull: Generate convex hull for the given feature or Feature Collection.

Intersect: Takes polygons and finds their intersection.

Union: Given a list of features or FeatureCollection return union of those.

Dissolve: Take FeatureCollection or a list of features to dissolve based on property_name provided.

Difference: Find the difference between the given two features.