1

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?

user1298426
  • 3,467
  • 15
  • 50
  • 96

1 Answers1

1

TL;DR; no.

I wrote a blog entry a while ago about how to add "CenterLines" to polygons and it was not nearly as easy as I expected. That code may be enough to get you started. Feel free to ask for advice on the GeoTools users list.

Ian Turton
  • 10,018
  • 1
  • 28
  • 47