turf-grid

WebJar for turf-grid

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

turf-grid
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

turf-grid
WebJar for turf-grid
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download turf-grid

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : turf-point jar [2.0.0,3)

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
1.0.1