Skip to content
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

isobands returns the wrong data #2546

Open
caelantop opened this issue Nov 30, 2023 · 2 comments
Open

isobands returns the wrong data #2546

caelantop opened this issue Nov 30, 2023 · 2 comments

Comments

@caelantop
Copy link

@turf/isobands

  • [6.5.0 ] The version of Turf you are using, and any other relevant versions.
  • [point1701347986301.json ] GeoJSON data as a gist file or geojson.io (filename extension must be .geojson).

the origin data:

point1701347986301.json

this result screenshot:

微信截图_20231130204750

the params of isobands:

  • breaks: [-12, -8, -4, 0, 4, 8, 12, 16, 20, 24, 28, 32, 35, 37, 40]
  • zProperty: 'value'
  • breaksProperties: [{"sort":0},{"sort":1},{"sort":2},{"sort":3},{"sort":4},{"sort":5},{"sort":6},{"sort":7},{"sort":8},{"sort":9},{"sort":10},{"sort":11},{"sort":12},{"sort":13}]

execute:

isobands(point1701347986301.json, breaks, {
zProperty: "value",
breaksProperties,
})

It's missing some data, this is not what I want.

the breaks or breaksProperties is not important, but the points and it's value property in not work

@stebogit
Copy link
Collaborator

@caelantop maybe you could set up a quick sandbox that reproduces the issue and maybe better pointing out what is the missing data you expect?
It's hard to quickly understand what's the issue with just what you submitted here.

@caelantop
Copy link
Author

@caelantop maybe you could set up a quick sandbox that reproduces the issue and maybe better pointing out what is the missing data you expect? It's hard to quickly understand what's the issue with just what you submitted here.

the sandbox url: https://jsfiddle.net/caelan/t1ok65L8/3/
my breaks value range [-12, 40], but the point data [max, min] is [24.595, 4.604], the results should cover all areas of points

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants