Turf: Inconsistent turf.inside results when point is on edge of polygon

Created on 31 Aug 2017  路  4Comments  路  Source: Turfjs/turf

Subject. You can check it in my simple example:
https://runkit.com/psi-gh/turf.inside-test
GeoJson from example: https://gist.github.com/psi-gh/710d21d98dc50bae57d3306b5bc863b9

Most helpful comment

Good pickup @stebogit

See this alternate notebook. @psi-gh you should be requiring either @turf/turf (for everything) or @turf/inside (for just the inside function). turf is legacy, all the turf modules now use @turf

I wonder if we could unpublish turf from npm to reduce the confusion, it's still getting 500 downloads a day, I think either @morganherlocker or @tmcw could possibly help with that?

All 4 comments

@psi-gh just a note, does this mean you are loading Turf v3.0.14?
screen shot 2017-08-31 at 12 42 09 pm

If so could you please test it with the latest v4.6.1?

Good pickup @stebogit

See this alternate notebook. @psi-gh you should be requiring either @turf/turf (for everything) or @turf/inside (for just the inside function). turf is legacy, all the turf modules now use @turf

I wonder if we could unpublish turf from npm to reduce the confusion, it's still getting 500 downloads a day, I think either @morganherlocker or @tmcw could possibly help with that?

Thanks guys, it is working now!
I'm curious, which algorithm is used in inside function and how is "boundary case" achieved?

@psi-gh you can take a look here 馃槂

Was this page helpful?
0 / 5 - 0 ratings