In my program I am looking for a best place for a golf course. Three of the conditions are:
- The course must be on a hill,
- it must be at least 100 meters away from roads and
- must not be larger than x.
Some of the generated courses are divided into two pieces by a road in the middle.
My question is:
How do I get those pieces as separate features or geometries to check their area? Is that even possible? Can I check if a certain geometry is whole, not split?
Edit: I am using geotools platform. (Feeling stupid that I forgot to mention)