Socket
Socket
Sign inDemoInstall

turf-flip

Package Overview
Dependencies
0
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    turf-flip

turf flip module


Version published
Weekly downloads
13K
increased by13.02%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

turf-flip

Build Status

Takes a point, linestring, polygon, or featurecollection, and flips all of its coordinates from [x, y] to [y, x].

###Install

npm install turf-flip

###Parameters

namedescription
fca geojson feature or featurecollection

###Usage

flip(fc)

###Example

var flip = require('turf-flip')
var polygon = require('turf-polygon')

var poly = polygon([[[1,0], [1,0], [1,2]], [[.2,.2], [.3,.3],[.1,.2]]])

var flipped = flip(poly)

console.log(flipped)

Keywords

FAQs

Last updated on 12 Dec 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc