{"id":19721896,"url":"https://github.com/turfjs/turf-isobands","last_synced_at":"2025-04-29T21:31:30.223Z","repository":{"id":16989375,"uuid":"19752364","full_name":"Turfjs/turf-isobands","owner":"Turfjs","description":"Takes a FeatureCollection of points with z values and an array of value breaks and generates filled contour isobands.","archived":false,"fork":false,"pushed_at":"2017-06-06T13:38:30.000Z","size":91,"stargazers_count":12,"open_issues_count":1,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-23T06:50:00.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Turfjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-13T19:15:45.000Z","updated_at":"2022-08-11T03:06:12.000Z","dependencies_parsed_at":"2022-09-26T21:12:11.428Z","dependency_job_id":null,"html_url":"https://github.com/Turfjs/turf-isobands","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-isobands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-isobands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-isobands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-isobands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turfjs","download_url":"https://codeload.github.com/Turfjs/turf-isobands/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251585865,"owners_count":21613287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T23:15:52.380Z","updated_at":"2025-04-29T21:31:29.906Z","avatar_url":"https://github.com/Turfjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATED - replaced with [`@turf/isobands`](https://github.com/Turfjs/turf/tree/master/packages/turf-isobands)\n# turf-isobands\n\n[![build status](https://secure.travis-ci.org/Turfjs/turf-isobands.png)](http://travis-ci.org/Turfjs/turf-isobands)\n\nturf isobands module\n\n\n### `turf.isobands(points, z, breaks)`\n\nTakes a `pointGrid` FeatureCollection of points with z values and an array of\nvalue breaks and generates filled contour isobands. These are commonly\nused to create elevation maps, but can be used for general data\ninterpolation as well.\n\n\n### Parameters\n\n| parameter    | type              | description                                          |\n| ------------ | ----------------- | ---------------------------------------------------- |\n| `points`     | FeatureCollection | - grid of points                                     |\n| `z`          | string            | - a property name from which z values will be pulled |\n| `breaks`     | Array.\u003cnumber\u003e    | - where to draw contours                             |\n\n\n### Example\n\n```js\n// create a grid of points with random z-values in their properties\nvar bbox = [-70.823, -33.553, -69.823, -32.553];\nvar cellWidth = 5;\nvar pointGrid = turf.pointGrid(bbox, cellWidth);\nfor (var i = 0; i \u003c pointGrid.features.length; i++) {\n    pointGrid.features[i].properties.elevation = Math.random() * 10;\n}\nvar breaks = [0, 2.8, 5, 8.5];\nvar isolined = turf.isobands(pointGrid, 'z', breaks);\n//=isolined\n\n```\n\n\n**Returns** `FeatureCollection`, isolines (`MultiPolygons`)\n\n## Installation\n\nRequires [nodejs](http://nodejs.org/).\n\n```sh\n$ npm install turf-isobands\n```\n\n## Tests\n\n```sh\n$ npm test\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturfjs%2Fturf-isobands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturfjs%2Fturf-isobands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturfjs%2Fturf-isobands/lists"}