Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:46
    davidcalhoun edited #2293
  • 15:46
    davidcalhoun edited #2293
  • 15:45
    davidcalhoun edited #2293
  • 15:45
    davidcalhoun edited #2293
  • 15:45
    davidcalhoun edited #2293
  • 15:45
    davidcalhoun opened #2293
  • May 25 18:04
    YousefED opened #2292
  • May 25 07:31
    hussi-azam commented #1218
  • 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
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
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)