You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rowanwins
The same bug also exists in turf-interpolate.
var pointList = [];
for(let i=0;i<180;i++){
for(let j=0;j<360;j++){
let point = turf.point([-180+j1,90-i1]);
point.properties.solRad = Math.random() * 10;
pointList.push(point)
}}
console.log(turf.featureCollection(pointList))
var options = {gridType: 'points', property: 'solRad', units: 'degrees'};
var grid = turf.interpolate(turf.featureCollection(pointList), 1, options);
console.log(grid)
Such code result is: {type: 'FeatureCollection', features: Array(64800)} {type: 'FeatureCollection', features: Array(179)}
It only interpolate -0.5 longitude.
However, if the longitude and latitude are set as -180-0 and 90-0 (1/4 size of global), it works: {type: 'FeatureCollection', features: Array(16200)} {type: 'FeatureCollection', features: Array(15842)}
Hi, I found a problem when building a grid for a big box.
Sample this prolem:
GeoJSON: https://gist.github.com/entagir/8a2f8e003731ce52ab87fe230dc2ab7f
or: https://jsonkeeper.com/b/GHL4
Code: https://jsfiddle.net/entagir/dsahcfej/11/
Thank!
The text was updated successfully, but these errors were encountered: