Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 16 18:56
    nzjony commented #2096
  • May 16 17:59
    erikhansenmujica opened #2291
  • May 16 10:16
    sroettering opened #2290
  • May 15 18:49
    twelch review_requested #2289
  • May 15 18:42
    twelch synchronize #2289
  • May 15 18:42

    twelch on type-cleanup-1

    prettier (compare)

  • May 15 18:30
    twelch opened #2289
  • May 15 18:27

    twelch on type-cleanup-1

    featureEach: add properties gen… (compare)

  • May 15 04:06
    pbelbin commented #410
  • May 13 01:27
    am2222 commented #2288
  • May 13 01:15
    am2222 commented #2288
  • May 13 00:57
    am2222 commented #2288
  • May 12 13:31
    JamesLMilner labeled #2288
  • May 11 20:58
    ianstormtaylor opened #2288
  • May 09 08:02
    vahid18u opened #2287
  • May 04 03:30
    PTParta commented #2283
  • May 03 07:42
    PTParta commented #2283
  • May 03 07:42
    PTParta commented #2283
  • May 03 05:10
    PTParta commented #2283
  • May 02 07:16
    lukas-h edited #2286
bloigge
@bloigge
hi. I created a Turf - node for node-red. It's my first project in this field and I just wanted to be sure if thats permitted.
Stefano Borghi
@stebogit
hello everybody, I have some issue to figure out how to create a contour map with turf, could anybody help?
Stefano Borghi
@stebogit
I can create isolines but how do I create actual polygons to be filled with color in a (google) map?
Lucien Knechtli
@Lknechtli
Hi, I'm trying to use turf.js with my application, but I'm getting an error when the code is evaluated: Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'unsafe-inline'
The referenced lines are lines 5625-5628 in the un-minified turf.js I got off github for v2.0.0
for reference / context, this is the function:
function orientation(n) { var pos = [] var neg = [] var m = matrix(n) var args = [] for(var i=0; i<n; ++i) { if((i&1)===0) { pos.push.apply(pos, determinant(cofactor(m, i))) } else { neg.push.apply(neg, determinant(cofactor(m, i))) } args.push("m" + i) } var posExpr = generateSum(pos) var negExpr = generateSum(neg) var funcName = "orientation" + n + "Exact" var code = ["function ", funcName, "(", args.join(), "){var p=", posExpr, ",n=", negExpr, ",d=sub(p,n);\ return d[d.length-1];};return ", funcName].join("") var proc = new Function("sum", "prod", "scale", "sub", code) return proc(robustSum, twoProduct, robustScale, robustSubtract) }
is there any way around this without modifying the CSP?
RYeah Sh
@pantchox
is there a showcase of turf?
Naveen Dandiprolu
@naveen26246

Hi. I am trying to use the median / aggregate functions in my node application. I get an error : turf.aggregate is not a function. Looks like these functions are not installed through npm.. Is there a way around ?

Thanks,

Pete
@petermanger
Any ideas on looking for polygons in polygons? Both total enclosure and also partial. Points inside is easy enough, but keen to see if there are some clever ways of shapes in shapes.
Stefano Borghi
@stebogit
hello, I implemented a new version of contour module using marchingsquare.js and I thought it could be useful to somebody else
I created a PR some time ago (Turfjs/turf-isobands#7) on the turf-isobands moduel/package, but I haven;t received any feedback yet
is anybody going to resume the isobands module? in my understanding the module was set aside for it was not working properly
Peter Kupietz
@kuuup
Hi! I made a small helper to filter polygon rings. When you union simplified polygons you can filter out slivers from your resulting polygon. See https://github.com/kuuup/turf-filter-rings
David Das Kell
@daviddaskell
Hi all- does turf-intersect work for polygons with holes? Have a use case where everything works fine until a polygon with holes turns up!
stollc
@stollc
Will idw work with evenly spaced points? The z value is the same for all polygons when i run it.
Mapamatician
@Mapamatician
hi guys, how can I get turf hex grids to auto update without getting user to hover over each polygon
Denis
@meliborn
What's wrong with turf-ui-builder? I don't see point, featureCollection, etc.
Thomas Grice
@z0d14c
any reason turf.intersect(poly1, poly1) would return undefined?
shylent
@shylent
Because there is no intersection?
I wanted to ask if there is some simple way to construct a "sector"-like polygon given point, radius, bearing and angle. Right now I construct a circle (of given radius) and subtract from it two rectangles so that the sector is formed. Maybe there's an easier way like some built-in functionality, that I've overlooked?
Karine Hubner
@ArtCodeKarine
buffer1.PNG
buffer2.PNG
Hello, i have a problem with buffer zone,
When she touches herself, she makes only one area instead of making a "hole" in the middle. Do you have a solution for it to overlap but it does not merge?
Peter Kupietz
@kuuup-at-work
image.png
@ArtCodeKarine I couldn't reproduce this problem with a simple donut.
Maybe you should open a ticket on github
Peter Kupietz
@kuuup-at-work
image.png
Alex
@awulkan
Hey, does anyone know if there's an ETA on the next version of Turf.js?
DevNamedZed
@DevNamedZed

Hi, hoping for some help with insersect package. Getting the 'found non-noded intersection between LINESTRING' error. If you look at one of the polygons with issue, there is a dangling line that I think is causing.

http://bl.ocks.org/d/c0acf61cb3fcbe542759773fd47b86b1

I picked up latest to get this fix Turfjs/turf#1004. It fixes some of the issues but not all. Is there something I can do to detect and clean up the polygon?
DevNamedZed
@DevNamedZed
seems like rounding issue inside intersect. can detect if run kink or truncated polygon. now just need to figure out hwo to remove
Alex
@awulkan
Does anyone know if there's any new replacement for this?
https://github.com/turf-junkyard/turf-within
Or why was it deprecated?
?
moved into a boolean package
@AWulkan - in case you hadn't found it
Alex
@awulkan

@fugwenna I think I tried that without success.
I need to check if points and linestrings are within a polygon.

I ended up using this: http://turfjs.org/docs#booleanPointInPolygon
And a hack to make each end of a linestring become a point.
The draback is that I need to check thousands of points, one at a time, with a loop.

Mila Frerichs
@milafrerichs
hi, again thanks for the awesome turf.js lib. I love it. use it as much as I can. I have a question though regarding 6.0. especially this one Turfjs/turf#1307
I have trouble using the new square-grid 6.x version since it depends on a few other 6.x version. especially helper, invariant, distance and boolean-intersect. It seems that my web pack config does picked up boolean-intersect and distance correctly but tries to load the mjs file for helper and invariant.
can this be related to both of them having the mjs file in the files of the package.json (https://github.com/Turfjs/turf/blob/master/packages/turf-helpers/package.json#L10) or is this something completely different.
any help is very much appreciated and if I can help get some stuff done please let me know.
nathan brigmon
@NateATXCode
Turf.area question:
How does it reconcile differences with various projections? For example, if I draw a circle at the equator and draw that same circle in Antarctica... the area will be different because of the projection of the web map, no?
nathan brigmon
@NateATXCode
what is the suggestion for converting them to a standard area?
nathan brigmon
@NateATXCode
FYI- found this library: https://www.npmjs.com/package/geodesy
Bexanderthebex
@Bexanderthebex
hi guys, is there anybody online?
I'm planning to use turf but can't decide which side should I use it, front-end or back-end
nathan brigmon
@NateATXCode
i keep it to the back-end
Deleema Fernando
@delleemarf_twitter

Hey all, Im looking for answer for this question https://stackoverflow.com/questions/49645333/turfjs-linesplit-not-working-properly-when-splitter-is-near-vertex-point
I really need a help at the moment.

Thanks in advanced

Ohad
@osadan
anyone now's when turf plans to release 6.0