aboutsummaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-09-19 18:36:04 +0200
committerGuilhem Moulin <guilhem@fripost.org>2024-09-19 18:39:35 +0200
commit287ee168d9879433e356acada20400e63cd9683c (patch)
treede24108a21c7183ec5189f22dff9475524979c9f /.gitignore
parente487f029eb68f7b48de19c82fe0f7ccf5e512a81 (diff)
MRR: Relax triangulation() to avoid failing in some degenerate cases.
In some degenerate cases DelaunayTriangulation() returns a GEOMETRYCOLLECTION where no triangle is fully contained in the input geometry, which causes getRandomPoint() to fail as the list of cumulative weights is an empty list. We “overshoot” in that case and return the non-curated triangulation. getRandomPoint(…, max_tries=1024) should be enough to eventually hit a point in the input geometry.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions