turf-explode

WebJar for turf-explode

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

turf-explode
Last Version

Last Version

3.0.12
Release Date

Release Date

Type

Type

jar
Description

Description

turf-explode
WebJar for turf-explode
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/turf-junkyard/turf-explode

Download turf-explode

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : turf-meta 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-explode

build status

turf explode module

turf.explode(input)

Takes a feature or set of features and returns all positions as Point|points.

Parameters

parameter type description
input Feature,FeatureCollection input features

Example

var poly = {
  "type": "Feature",
  "properties": {},
  "geometry": {
    "type": "Polygon",
    "coordinates": [[
      [177.434692, -17.77517],
      [177.402076, -17.779093],
      [177.38079, -17.803937],
      [177.40242, -17.826164],
      [177.438468, -17.824857],
      [177.454948, -17.796746],
      [177.434692, -17.77517]
    ]]
  }
};

var points = turf.explode(poly);

//=poly

//=points

Returns FeatureCollection.<point>, points representing the exploded input features

Installation

Requires nodejs.

$ npm install turf-explode

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