Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix docstring so that edgeratio=0 is not boundingbox #504

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading