turf-flip

WebJar for turf-flip

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

turf-flip
Last Version

Last Version

3.0.12
Release Date

Release Date

Type

Type

jar
Description

Description

turf-flip
WebJar for turf-flip
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download turf-flip

How to add to project

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

build status

turf flip module

turf.flip(input)

Takes input features and flips all of their coordinates from [x, y] to [y, x].

Parameters

parameter type description
input Feature,FeatureCollection input features

Example

var serbia = {
  "type": "Feature",
  "properties": {},
  "geometry": {
    "type": "Point",
    "coordinates": [20.566406, 43.421008]
  }
};

//=serbia

var saudiArabia = turf.flip(serbia);

//=saudiArabia

Returns Feature,FeatureCollection, a feature or set of features of the same type as input with flipped coordinates

Installation

Requires nodejs.

$ npm install turf-flip

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