Skip to content

Instantly share code, notes, and snippets.

@dschep
Created August 21, 2019 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dschep/92bc5f308b8506a774ecc9482795ccdf to your computer and use it in GitHub Desktop.
Save dschep/92bc5f308b8506a774ecc9482795ccdf to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
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]))
@AkshayGore
Copy link

please share your complete code. akshaygore.36@gmail.com

@dschep
Copy link
Author

dschep commented Aug 21, 2019

@AkshayGore this is the full code to reproduce the error. You'll see the console.log prints null rather than the overlapping area.

@plarner30
Copy link

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