Skip to content

Commit

Permalink
fix docstring so that edgeratio=0 is not boundingbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Sparing committed Jan 13, 2024
1 parent 8fa5d6a commit 4b4ec85
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions python/mosaic/api/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ def st_concavehull(geom: ColumnOrName, concavity: ColumnOrName, has_holes: Any =
"""
Compute the concave hull of a geometry or multi-geometry object.
It uses lengthRatio and
allowHoles to determine the concave hull. lengthRatio is the ratio of the
length of the concave hull to the length of the convex hull. If set to 1,
this is the same as the convex hull. If set to 0, this is the same as the
bounding box. AllowHoles is a boolean that determines whether the concave
hull can have holes. If set to true, the concave hull can have holes. If set
to false, the concave hull will not have holes. (For PostGIS, the default is
false.)
allowHoles to determine the concave hull. lengthRatio is the fraction of the
difference between the longest and shortest edge lengths in the Delaunay
Triangulation. If set to 1, this is the same as the convex hull. If set to
0, it produces produces maximum concaveness. AllowHoles is a boolean that
determines whether the concave hull can have holes. If set to true, the
concave hull can have holes. If set to false, the concave hull will not have
holes. (For PostGIS, the default is false.)
Parameters
----------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import org.apache.spark.sql.types.DataType

/**
* Returns the concave hull for a given geometry. It uses lengthRatio and
* allowHoles to determine the concave hull. lengthRatio is the ratio of the
* length of the concave hull to the length of the convex hull. If set to 1,
* this is the same as the convex hull. If set to 0, this is the same as the
* bounding box. AllowHoles is a boolean that determines whether the concave
* hull can have holes. If set to true, the concave hull can have holes. If set
* to false, the concave hull will not have holes. (For PostGIS, the default is
* false.)
* allowHoles to determine the concave hull. lengthRatio is the fraction of the
* difference between the longest and shortest edge lengths in the Delaunay
* Triangulation. If set to 1, this is the same as the convex hull. If set to
* 0, it produces produces maximum concaveness. AllowHoles is a boolean that
* determines whether the concave hull can have holes. If set to true, the
* concave hull can have holes. If set to false, the concave hull will not have
* holes. (For PostGIS, the default is false.)
* @param inputGeom
* The input geometry.
* @param expressionConfig
Expand Down

0 comments on commit 4b4ec85

Please sign in to comment.