how to draw symmetrical line to the polygon?

Viewed 43

I have a road polygon that I need to divide in given lanes. So I get a JTS geometry of roads from shapefile and I need to create lines or basically create a geometry lines (lanes) within that polygon. Something like this

enter image description here

The more complex scenarios are when roads are not straight for e.g.

enter image description here

So I need to create lanes within that polygon as the polygon lines go. Is it possible to get those lane/line geometries using JTS geometry functions?

1 Answers
Related