locationtech/jts

Create center-line for polygon

Opened this issue · 3 comments

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

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

Well, any other java library can implement this?

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.