Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 18 14:40
    mschilde commented #2157
  • Jan 18 10:14
    rowanwins synchronize #2033
  • Jan 18 10:14

    rowanwins on line-intersect-update

    FeatureCollection args for @tur… Update boolean-point-in-polygon… Merge branch 'master' into line… (compare)

  • Jan 18 09:48
    rowanwins synchronize #2033
  • Jan 18 09:48

    rowanwins on line-intersect-update

    update yarn lock (compare)

  • Jan 18 09:25
    rowanwins synchronize #2033
  • Jan 18 09:25

    rowanwins on line-intersect-update

    rejig ts config (compare)

  • Jan 17 22:01

    mfedderly on update-pip

    (compare)

  • Jan 17 22:01

    mfedderly on master

    Update boolean-point-in-polygon… (compare)

  • Jan 17 22:01
    mfedderly closed #1893
  • Jan 17 21:41
    mfedderly synchronize #1893
  • Jan 17 21:41

    mfedderly on update-pip

    transform-scale factor should b… Bump path-parse from 1.0.6 to 1… fixed voronoi types (#2195) op… and 15 more (compare)

  • Jan 17 21:41
    mfedderly commented #1893
  • Jan 17 21:37

    mfedderly on union-difference-intersect-args

    (compare)

  • Jan 17 21:37

    mfedderly on master

    FeatureCollection args for @tur… (compare)

  • Jan 17 21:37
    mfedderly closed #2247
  • Jan 17 21:37
    mfedderly closed #2162
  • Jan 17 21:36
    mfedderly commented #1896
  • Jan 17 21:35
    mfedderly edited #2247
  • Jan 17 21:28
    mfedderly commented #2033
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
Andy Prasetya
@YggdrasilX_twitter

Hi all. I need to count how many occurences (point) in a set of polygons by remarking the each occurences property in polygon.
The polygon is:

{
    "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "id": 0,
            "properties": {
                "id": 1,
        "occurences": 0
            },
            "geometry": {
                "type": "Polygon",
                "coordinates": [
                    [
                        [
                            109.914952,
                            -7.19584
                        ],
                        [... about 50.000 nodes ...] 
                    ]
                ]
            }
        },
                [... less than 100 polygons ...]
        ]
}

and the points:

{
    "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "id": 0,
            "properties": {
                "id": 1
            },
            "geometry": {
                "type": "Point",
                "coordinates": [
                    109.912194,
                    -7.711743
                ]
            }
        },
                [... about 20.000 points ...]
        ]
}

In Turf.js, I believe I can do it with pointsWithinPolygon or booleanPointInPolygon. My questions are: which is faster/efficient? How to do it?
Much obliged for your attention.

Arsen Stahanov
@ArStah
Hey guys
Can someone tell me is it possible to do with turf something like turf.along but opposite, i mean, i have a line, and 2 points on it, i need to get the distance between these points?
almandarin
@almandarin

Hi there, thanks for the great work, though I don't get the squareGrid:
var squarebin = squareGrid([0,0,2,2], 1, {units: 'degrees'});
Gives me {"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[0.49941580254182905,0.49941580254182905],[0.49941580254182905,1.500584197458171],[1.500584197458171,1.500584197458171],[1.500584197458171,0.49941580254182905],[0.49941580254182905,0.49941580254182905]]]}}]}

Why it does not give me four Features starting from 0,0? Am I missing something?

Kevin Yanuk
@fugwenna
has anyone here attempted to find a destination point with a back bearing using: https://www.movable-type.co.uk/scripts/latlong.html
Rusty Green
@rustygreen
tuf-example.png
Can anyone suggest a turf function (or series of operations) to accomplish the image above?
Alex
@apgeo
one (generic) option is to test for each point in the linestring if it is contained in one of the polygons, then to construct the ouput multilinestring from the positive ones (points)
Rusty Green
@rustygreen
Currently I'm using lineIntersect and then splitting the line based on the intersecting points - but it seems like a lot of extra overhead - figured this was a common scenario
16AGR-Durham
@16AGR-Durham
I don't know how to look at forum history, so will ask a question that I am sure has been asked many times (a) does turf.bearing(point1, point2); return true or magnetic and if true (b) is there a function to convert true to magnetic based on declination in the long/lat input?
I think it returns true
Kevin Yanuk
@fugwenna
@16AGR-Durham i believe the bearing code was derived from this: https://www.movable-type.co.uk/scripts/latlong.html
Matthias Tylkowski
@tylkomat
All the maps on the turf page are broken. Seems someone messed up the css.
Per Liedman
@perliedman
@tylkomat they look ok here. do you have a URL that is not working for you?
Matthias Tylkowski
@tylkomat
@perliedman That's funny, now they are fine. Maybe mapbox messed up their own css
Matthias Tylkowski
@tylkomat
What can I use to reverse the result of difference? union?