Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 26 22:47
    rbrtmrtn commented #1741
  • Nov 26 22:46
    rbrtmrtn commented #1741
  • Nov 26 22:40
    rbrtmrtn commented #1741
  • Nov 26 22:37
    rbrtmrtn commented #1741
  • Nov 26 22:37
    rbrtmrtn commented #1741
  • Nov 24 21:35
    antonmelbardis commented #2338
  • Nov 24 21:31
    rowanwins commented #2338
  • Nov 24 12:27
    antonmelbardis commented #2338
  • Nov 24 02:51
    Randysheng opened #2372
  • Nov 23 13:49

    dependabot[bot] on master

    Bump loader-utils from 1.4.0 to… (compare)

  • Nov 23 13:49

    dependabot[bot] on npm_and_yarn

    (compare)

  • Nov 23 13:49
    dependabot[bot] closed #2371
  • Nov 23 13:49
    mfedderly commented #2371
  • Nov 23 03:58

    dependabot[bot] on npm_and_yarn

    (compare)

  • Nov 23 03:58
    dependabot[bot] closed #2366
  • Nov 23 03:58
    dependabot[bot] commented #2366
  • Nov 23 03:58
    dependabot[bot] review_requested #2371
  • Nov 23 03:58

    dependabot[bot] on npm_and_yarn

    Bump loader-utils from 1.4.0 to… (compare)

  • Nov 23 03:58
    dependabot[bot] labeled #2371
  • Nov 23 03:58
    dependabot[bot] opened #2371
RK Aranas
@rukku
@parkeragee Did you find it already? Found this http://bl.ocks.org/jefffriesen/6892860
Tim Channell
@tcql
just FYI, I'm going to work on closing out some issues on Turfjs/turf this weekend. Feel free to reopen anything that's been closed prematurely. I'm attempting to clean up the issues list so it's easier for us to see new & outstanding issues / feature requests
Abel Vázquez Montoro
@AbelVM
Hi everybody!
Abel Vázquez Montoro
@AbelVM
I have just commited four modules: turf-cut, turf-tesselate, turf-tin-constrained and turf-voronoi-constrained
I'm not much of a node guy (most of my suff must works offline too), so I'm sure I miss lots of node related stuff in my commits. Sorry in advance!
Abel Vázquez Montoro
@AbelVM
Ooops... I forgot to commit turf-polygon-reduce
Tim Channell
@tcql
Thanks @AbelVM! you're doing awesome work. maybe this weekend I'll get a chance to look at some of your stuff in depth more, see if I find any issues
Abel Vázquez Montoro
@AbelVM
I had a lot of 128 Git errors yesterday, so maybe the uploaded code is not my last version. I am using turf-polygon-reduce and turf-cut in production environment, so I can assure their reliability (turf-cut tolerance: 10^-9 meters, turf-buffer issue 23). Regarding node stuff... sorry. And documentation... I know, I know... I will expand and update these days.
Tim Channell
@tcql
hey @/all, just another heads up, I'll be doing more issue squashing this weekend. I'll be sure to CC anybody that's relevant on outstanding issues. If there's anything in particular anybody is waiting for feedback on, be sure to let me know
Abel Vázquez Montoro
@AbelVM
Hi. What about a feature-feature (haversine) distance module? I have some atomic functions that could result in a pretty interesting module if I find enough spare time to mix them up.
Giulio Ungaretti
@giulioungaretti
total general/random question.. what about performances ? Anybody Using turf with millions of points and zip code level geojson of say whole us/europe?
Abel Vázquez Montoro
@AbelVM
My tasks queue has something like that: crossing two data sets with zillions of (complex) polygons each, to find overlappings and make some spatial operations using those overlappings. Searching the way that best fits our needs (not only peformance), we have already achieved this using DotSpatial and using a custom-made QGIS plugin, next try is TURF, just for the joy of it. Once done, will post performace results.
Morgan Herlocker
@morganherlocker
@giulioungaretti most of the processing I do is with large datasets. Turf does well provided you think about optimizations where necessary. For example, indexing data is going to have a dramatic increase in algorithm performance, just like it would in PostGIS or other GIS engines.
Morgan Herlocker
@morganherlocker
@giulioungaretti also, forgot to mention that you can also test the performance of any turf module. clone the module repo and run node bench.js to see the number of operations per second for any function. https://dl.dropbox.com/s/16v5j5y5dpubzyv/Screenshot%202015-05-05%2012.09.55.png?dl=0
Scott Chamberlain
@sckott
I'm working on an R client for turf.js https://github.com/ropensci/lawn http://cran.rstudio.com/web/packages/lawn/ - Is there a place in turf docs to list this so others know its available?
Giulio Ungaretti
@giulioungaretti
@morganherlocker thanks a bunch!
James Seppi
@jseppi
Hey @morganherlocker and @tmcw - I'm going to give a short intro to Turf talk at a small conference this Friday. Do you guys mind if I pull stuff from previous presentations you've given (with credit, of course)?
stollc
@stollc
Is isobands removed from turf? I get an "turf.isobands is not a function" error. But it works if i use v1.3
Tim Channell
@tcql
@stollc yea, it got removed awhile back. I think it just wasn't doing what it was intended to do. AFAIK the plan is to fix it up and bring it back at some point
stollc
@stollc
@tchannel too bad :) i got the v1.3 to work , but with 20k points it took too long. I guess i need to do it server side.
Tim Wisniewski
@timwis
Hey guys, I have a bunch of points (available from the api as JSON or GeoJSON) and I'd like to gradient a polygon map based on how many points reside in each polygon, similar to what happens here: https://data.phila.gov/view/hc2b-xbvz -- would turf be able to help with that?
Paul
@paulJordaan
Hey guys, I have a map where I subtract existing polygons from a newly drawn polygon using turfjs. The result polygon seems to have the wrong projection. I have explained the issue here http://stackoverflow.com/questions/32192699/turf-js-erase-produces-polygon-with-wrong-projection. Any help would be much appreciated!
James Seppi
@jseppi
@timwis - I think you could use turf-count (https://github.com/Turfjs/turf-count) to assign a count of points in each polygon, and then something like @morganherlocker's geocolor (https://github.com/morganherlocker/geocolor) to assist with the coloring
Tim Wisniewski
@timwis
Thanks!
mrmanhluc
@mrmanhluc
why can't I use function turf.union(polygon1, polygon2)in IE9
Per Liedman
@perliedman
@mrmanhluc can't say I know, but what error are you seeing?
mrmanhluc
@mrmanhluc
@perliedman The map just doesn't load at all, just a blank page. It's like turf isn't compatible with IE9, can you give me a working example of turf in IE9 ? Or the required browser list for turf
This message was deleted
Per Liedman
@perliedman
@mrmanhluc what if you check IE's debugger? It's infuriating to work with, but should at least give you an error message.
@mrmanhluc no idea about turf's browser compatibility, but just guessing, I don't think IE9 compatibility is a top priority, but at the same time I'd be surprised if not most things would work.
Stepan Kuzmin
@stepankuzmin
Hey guys! I've recently wrote a simple turf module that wraps the world around 180 meridian. It's analogue of PostGIS ST_Shift_Longitude. Maybe it can be included in turf. See https://github.com/stepankuzmin/turf-shift-longitude
arkhemlol
@arkhemlol
This message was deleted
Stepan Kuzmin
@stepankuzmin
Hey guys! Is there any way to create clusters from points using Turf?
Mike Atlas
@mikeatlas
This message was deleted
https://github.com/Leaflet/Leaflet.markercluster is the #1 leaflet plugin i think they could borrow/implement the concept https://github.com/Leaflet/Leaflet.markercluster/blob/master/src/DistanceGrid.js @StepanKuzmin
Tom MacWright
@tmcw
@morganherlocker is there a proj4js library wrapper that does geojson?
Per Liedman
@perliedman
@tmcw depending on what you mean by wrapper, this might be what you want: https://github.com/perliedman/reproject
@tmcw Calvin Metcalf has also written something similar: https://github.com/calvinmetcalf/proj4geojson
Tom MacWright
@tmcw
@perliedman great, reproject looks like it
Erinç Fırtına
@EricMcRay
Robert Laverty
@roblav96
im really bumbed i dont see much turf activity :/ i check this gitter everyday hoping for some activity
Nabil Servais
@blackrez
Hello, I have made a module similar as ST_IsValid function of postgis : https://github.com/blackrez/turf-isvalid. How I can add it in turf?
Stepan Kuzmin
@stepankuzmin
Hi @blackrez! I’ve also made turf module and want to add it in turf (https://github.com/stepankuzmin/turf-shift-longitude). Can you ping me, if you find out how to do it?
Maybe we can make PR to https://github.com/Turfjs/turf
Or transfer repo’s ownership to Turfjs organization on GitHub
Robert Laverty
@roblav96
@stepankuzmin great module man!
Stepan Kuzmin
@stepankuzmin
Thanks @roblav96. It’s pretty simple, though
Robert Laverty
@roblav96
does anyone know how to go about simplifying a feature collection of points? i have a point on a line every meter for 1000 meters or so. i want to simplify it to about 250 points or so. i tried using turf.simplify but it didnt like my feature collection:
var fc = turf.featurecollection( features )
console.log( 'fc >', fc )

if ( fc.features.length > 0 ) {
    var simplified = turf.simplify( fc, 0.01, false )
    console.log( 'simplified >', simplified )
}
Uncaught TypeError: Cannot read property 'type' of undefined