Just wondering if there is a way to easily convert the output of turf.lineChunk to turf.points?
testLineString = {
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
155.9668,
-2.9402
],
[
162.959225,
-2.94504
],
]
}
};
var chunk = turf.lineChunk(testLineString, 25, { units: "kilometers" });
var points = turf.points([ [], [], [], ]);
Hoping for something simple like this (but this doesn’t work)
var points = turf.points(chunk.features);
I would like the points to be able to be used in turf.pointsWithinPolygon()
var inside = turf.pointsWithinPolygon(points ,turfpolygon);
Thank you.