turf_dart
turf_dart copied to clipboard
line intersection polygon gives center for an irregular polygon
finding intersection points for an irregular polygon gives center point as intersection point
Hi @surapallikarthik, thanks for submitting this bug report. Do you have any data to reproduce this?
Polygon Points: [LatLng(latitude:45.526625, longitude:-122.679157), LatLng(latitude:45.526819, longitude:-122.672673), LatLng(latitude:45.521169, longitude:-122.679971), LatLng(latitude:45.521344, longitude:-122.673694),LatLng(latitude:45.526625, longitude:-122.679157),]
Line Points :line: [LatLng(latitude:45.519416, longitude:-122.674283), LatLng(latitude:45.52658, longitude:-122.670574)]
Got intersectionpoiints :[LatLng(latitude:45.521337, longitude:-122.67397), LatLng(latitude:45.521519, longitude:-122.673875), LatLng(latitude:45.523945, longitude:-122.676384)]