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

Create center-line for polygon #1095

Open
exotfboy opened this issue Nov 1, 2024 · 3 comments
Open

Create center-line for polygon #1095

exotfboy opened this issue Nov 1, 2024 · 3 comments

Comments

@exotfboy
Copy link

exotfboy commented Nov 1, 2024

Hi:
Is it possible to create center-line(mediaaxis) for polygon using JTS ? Like this.

@dr-jts
Copy link
Contributor

dr-jts commented Nov 1, 2024

Not in the current version. It's hoped to provide an Approximate Medial Axis algorithm at some point.

@exotfboy
Copy link
Author

exotfboy commented Nov 1, 2024

Well, any other java library can implement this?

@micycle1
Copy link

Well, any other java library can implement this?

I have a library that finds center lines (medial, chordal and straight skeletons) here:

https://github.com/micycle1/PGS?tab=readme-ov-file#contour

It operates on Processing's PShape types, but there are methods to convert between JTS Geoms and PShapes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants