i'm trying to find the number of point in a polygon using turf.js but when i run the code below, i'm getting Uncaught TypeError: turf.featureCollection(...).toGeoJSON is not a function.
var healthCollection = turf.featureCollection(health)
var adminCollection = turf.featureCollection(admin)
console.log(healthCollection);
console.log(admin);
var points = turf.pointsWithinPolygon(healthCollection.toGeoJSON() , adminCollection.toGeoJSON());
console.log(points);
Via Active questions tagged javascript - Stack Overflow https://ift.tt/X5LfCGH
Comments
Post a Comment