Skip to content

Documentation for bulk_inference_old_model

Path: boundary_segmentation/bulk_inference_old_model.py

Functions

predictions_to_shapes

No description provided.

extract_site_shape

Extracts shape using model, converts it to GeoJSON and does a best effort attempt to match a shape to the original point.

buffer_point_to_bbox

Buffers a point in meters using Web Mercator projection (EPSG:3857).

Args: point: A shapely Point in WGS84 coordinates (longitude, latitude) distance_m: Buffer distance in meters

Returns: A Polygon representing the buffered area

main

No description provided.