turf-invariant

WebJar for turf-invariant

License

License

ISC
Categories

Categories

Ant Build Tools
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

turf-invariant
Last Version

Last Version

3.0.12
Release Date

Release Date

Type

Type

jar
Description

Description

turf-invariant
WebJar for turf-invariant
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download turf-invariant

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

turf-invariant

build status

enforce expectations about inputs to turf

geojsonType(value, type, name)

Enforce expectations about types of GeoJSON objects for Turf.

Parameters

parameter type description
value GeoJSON any GeoJSON object
type string expected GeoJSON type
name String name of calling function

featureOf(feature, types, name)

Enforce expectations about types of Feature inputs for Turf. Internally this uses geojsonType to judge geometry types.

Parameters

parameter type description
feature Feature a feature with an expected geometry type
types string expected GeoJSON type
name String name of calling function

collectionOf(featurecollection, type, name)

Enforce expectations about types of FeatureCollection inputs for Turf. Internally this uses geojsonType to judge geometry types.

Parameters

parameter type description
featurecollection FeatureCollection a featurecollection for which features will be judged
type string expected GeoJSON type
name String name of calling function

Installation

Requires nodejs.

$ npm install turf-invariant

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