turf-square-grid

WebJar for turf-square-grid

License

License

MIT
Categories

Categories

Square Business Logic Libraries Financial
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

turf-square-grid
Last Version

Last Version

3.0.12
Release Date

Release Date

Type

Type

jar
Description

Description

turf-square-grid
WebJar for turf-square-grid
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/turf-junkyard/turf-square-grid

Download turf-square-grid

How to add to project

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

turf-square-grid

build status

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

Takes a bounding box and a cell depth and returns a FeatureCollection of Polygon features in a grid.

Parameters

parameter type description
extent Array. extent in [minX, minY, maxX, maxY] order
cellWidth Number width of each cell
units String units to use for cellWidth

Example

var extent = [-77.3876953125,38.71980474264239,-76.9482421875,39.027718840211605];
var cellWidth = 10;
var units = 'miles';

var squareGrid = turf.squareGrid(extent, cellWidth, units);

//=squareGrid

Installation

Requires nodejs.

$ npm install turf-square-grid

Tests

$ npm test
org.webjars.npm

deprecated turf modules: do not use or reference, for redirects only

turf is now a monorepo: all turf modules are in Turfjs/turf

Versions

Version
3.0.12