turf-combine

WebJar for turf-combine

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

turf-combine
Last Version

Last Version

3.0.12
Release Date

Release Date

Type

Type

jar
Description

Description

turf-combine
WebJar for turf-combine
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download turf-combine

How to add to project

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

Dependencies

compile (1)

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

Project Modules

There are no modules declared in this project.

turf-combine

build status

turf combine module

turf.combine(fc)

Combines a FeatureCollection of Point, LineString, or Polygon features into MultiPoint, MultiLineString, or MultiPolygon features.

Parameters

parameter type description
fc FeatureCollection.<Point LineString

Example

var fc = {
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "Point",
        "coordinates": [19.026432, 47.49134]
      }
    }, {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "Point",
        "coordinates": [19.074497, 47.509548]
      }
    }
  ]
};

var combined = turf.combine(fc);

//=combined

Returns FeatureCollection.<MultiPoint|MultiLineString|MultiPolygon>, a FeatureCollection of corresponding type to input

Installation

Requires nodejs.

$ npm install turf-combine

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