Skip to content

Instantly share code, notes, and snippets.

@dschep
Created August 21, 2019 01:12
Show Gist options
  • Select an option

  • Save dschep/92bc5f308b8506a774ecc9482795ccdf to your computer and use it in GitHub Desktop.

Select an option

Save dschep/92bc5f308b8506a774ecc9482795ccdf to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const turf = require('@turf/turf');
const data = require('./data.json');
console.log(turf.intersect(data.features[0], data.features[1]))
@plarner30

Copy link
Copy Markdown

Can replicate starting with version 5.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment