Gathering detailed insights and metrics for turf-pointgriddensity
Gathering detailed insights and metrics for turf-pointgriddensity
npm install turf-pointgriddensity
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
1,344
Last Day
1
Last Week
2
Last Month
12
Last Year
84
1 Stars
16 Commits
1 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.1.1
Package Id
turf-pointgriddensity@1.1.1
Unpacked Size
12.42 kB
Size
4.66 kB
File Count
8
NPM Version
5.6.0
Node Version
8.11.2
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-66.7%
2
Compared to previous week
Last month
1,100%
12
Compared to previous month
Last year
-1.2%
84
Compared to previous year
Creates a Point grid from a bounding box, FeatureCollection or Feature.
Parameters
bbox
Array<number> extent in [minX, minY, maxX, maxY] ordercellSide
number the distance between points, in unitsoptions
Object Optional parameters (optional, default {}
)
options.units
string used in calculating cellSide, can be degrees, radians, miles, or kilometers (optional, default 'kilometers'
)options.mask
Feature<(Polygon | MultiPolygon)>? if passed a Polygon or MultiPolygon, the grid Points will be created only inside itoptions.properties
Object passed to each point of the grid (optional, default {}
)options.spacings
Object Object of {latSpacing, lngSpacing} indicating width and height between cells (optional, default {}
)options.rotation
Object The Decimal Degree Value to rotate the resulting features in counter-clockwise. (optional, default 0
)Examples
1var extent = [-70.823364, -33.553984, -70.473175, -33.302986]; 2var cellSide = 3; 3var options = {units: 'miles'}; 4 5var grid = turf.pointGrid(extent, cellSide, options); 6 7//addToMap 8var addToMap = [grid];
Returns FeatureCollection<Point> grid of points
This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.
Install this module individually:
1 2$ npm install turf-pointgriddensity 3
1 npm install --dev jest 2 npm install babel-preset-env 3 npm test
note: the example is passing a polygon mask.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More