Skip to content

Instantly share code, notes, and snippets.

View SaraSampaio's full-sized avatar

Sara Sampaio Gomes do Nascimento SaraSampaio

  • Espírito Santo - Brasil
View GitHub Profile
@HTenkanen
HTenkanen / concave_hull.md
Created January 20, 2021 12:53
Concave Hull with geopandas, scipy and numpy

Concave Hull in Python

A modified version for calculating concave hull (see source) based on GeoDataFrame of points

from scipy.spatial import Delaunay
import numpy as np
from shapely.ops import polygonize, cascaded_union
from shapely.geometry import MultiLineString