-
Notifications
You must be signed in to change notification settings - Fork 443
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
ConcaveHull for Points #823
Conversation
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Handle degenerate cases Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
*/ | ||
public Geometry getHull() { | ||
if (inputGeometry.isEmpty()) { | ||
return geomFactory.createPolygon(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the input geometry is a POLYGON Z, the output should respect the dimensionality. (Yeah.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I realize this is something that needs work. Will do that soon.
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
add function for length factor with holes Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Port locationtech/jts#823, closes GH-549. Adds in CAPI function, ``` extern GEOSGeometry GEOS_DLL *GEOSConcaveHull( const GEOSGeometry* g, double ratio, unsigned int allowHoles); ``` At ratio 1.0, the concave hull == convex hull. Lower numbers promote more concavity.
Just worked for me... ? |
Adds a
ConcaveHull
class to compute concave hulls of point sets.The shape of the computed hull can be specified by one of the following criteria:
Concave hulls are single connected polygons . Optionally they may be allowed to contain holes.
Examples
Concave Hull
Reconstruction of a "C" glyph from random points
Reconstruction of an "A" glyph from random points
The famous Flickr example:
The almost-famous S example
Concaveman test fixture
Signed-off-by: Martin Davis mtnclimb@gmail.com