turf-point-grid

WebJar for turf-point-grid

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

turf-point-grid
Last Version

Last Version

3.0.12
Release Date

Release Date

Type

Type

jar
Description

Description

turf-point-grid
WebJar for turf-point-grid
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Turfjs/turf-point-grid

Download turf-point-grid

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/turf-point-grid/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>turf-point-grid</artifactId>
    <version>3.0.12</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/turf-point-grid/
implementation 'org.webjars.npm:turf-point-grid:3.0.12'
// https://jarcasting.com/artifacts/org.webjars.npm/turf-point-grid/
implementation ("org.webjars.npm:turf-point-grid:3.0.12")
'org.webjars.npm:turf-point-grid:jar:3.0.12'
<dependency org="org.webjars.npm" name="turf-point-grid" rev="3.0.12">
  <artifact name="turf-point-grid" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='turf-point-grid', version='3.0.12')
)
libraryDependencies += "org.webjars.npm" % "turf-point-grid" % "3.0.12"
[org.webjars.npm/turf-point-grid "3.0.12"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : turf-distance jar [3.0.12,4)
org.webjars.npm : turf-helpers jar [3.0.12,4)

Project Modules

There are no modules declared in this project.

DEPRECATED - replaced with @turf/point-grid

turf-point-grid

build status

turf.point-grid(extent, cellWidth, units)

Takes a bounding box and a cell depth and returns a set of Point|points in a grid.

Parameters

parameter type description
extent Array.<number> extent in [minX, minY, maxX, maxY] order
cellWidth Number the distance across each cell
units String used in calculating cellWidth ('miles' or 'kilometers')

Example

var extent = [-70.823364, -33.553984, -70.473175, -33.302986];
var cellWidth = 3;
var units = 'miles';

var grid = turf.pointGrid(extent, cellWidth, units);

//=grid

Returns FeatureCollection.<Point>, grid of points

Installation

Requires nodejs.

$ npm install turf-point-grid

Tests

$ npm test
org.webjars.npm

turf

a fast and fully featured open gis engine written in javascript

Versions

Version
3.0.12