-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Massive polygon throws an error from turf #14
Comments
same problem ( |
@phatal This repo hasn't been updated in a while, but you might try changing the dependency for turf to some of the more recent versions to see if they've corrected what might have caused the issues. |
@derrickpelletier Actually I found solution :) stringify coordinates array before sending them from parsed *.geojson. That helped me. |
Oh interesting, so the coordinates array is actually a string? When i try that with the |
@derrickpelletier Code that almost worked for me. At least it's accept my coordinates array. Look strange why we need stringify and then parse it again, but it work )) var currDir = process.cwd(); var worldData = JSON.parse(fs.readFileSync(inputFilePath)); var n = worldData.features.length; function convertMe(polygonArray){
}; worldData.features.forEach(function(feature){ But I have problem with asynchronous call in foreach =/ convertMe(dataToConvert) always return undefined, i know that asynchronous call, but dunno how to fix it to get it work. |
I used multiPolygon and my polygon worked as expected. |
Error: Each LinearRing of a Polygon must have 4 or more Positions.
When attempting to run the streaming example on the massive polygon.
The text was updated successfully, but these errors were encountered: