Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 17 22:01
    Pitouli synchronize #2324
  • Aug 17 21:56
    Pitouli synchronize #2324
  • Aug 17 20:57
    Pitouli synchronize #2324
  • Aug 17 17:24
    mickeyjohn commented #918
  • Aug 16 22:34
    Pitouli opened #2324
  • Aug 16 22:28
    Pitouli opened #2323
  • Aug 15 01:40
    yukha-dw commented #2307
  • Aug 14 22:41
    jfoclpf commented #1743
  • Aug 14 22:40
    jfoclpf commented #1743
  • Aug 14 10:01
    alirezaalavi87 opened #2322
  • Aug 08 21:43
    smdjeff commented #1679
  • Aug 08 20:22
    Stophface opened #2321
  • Aug 07 06:20
    stebogit closed #2320
  • Aug 07 06:20
    stebogit commented #2320
  • Aug 06 06:53
    ontheway16 opened #2320
  • Aug 05 16:28
    stebogit commented #2258
  • Aug 05 10:30
    btisdall commented #2258
  • Aug 05 08:01
    turbolego opened #2319
  • Aug 05 07:34
    stebogit labeled #2318
  • Aug 05 07:33
    stebogit commented #2318
mrmanhluc
@mrmanhluc
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
Robert Laverty
@roblav96
does anyone know how to produce a 16 verticy polygon from a circle? so I provide one point and the radius and i need to return a polygon from that. possible?
and it turns out you cant simplify a feature collection of points :X
Tom MacWright
@tmcw
@roblav96 at a low level, i'd do it by using https://github.com/mapbox/spherical, with each angle differing by 360/16 degrees, and then using all of the points as coordinates in the coordinate array of a geojson polygon
Robert Laverty
@roblav96
@tmcw well it turns out my rethinkdb driver has this out of the box :D
Tom MacWright
@tmcw
cool!
Nikhil Murarka
@Nikhil14
hi any plan on added network analysis/topology checks to turf ? like if we want to find conflicting one ways in current extent ?
Taylor Mansfield
@lavahot
Hi guys, I need some help converting mapbox vector tiles to GeoJSON in the browser so I can run turf operations on that layer. Any ideas? I know there are some Node libraries out there that can do this, but I really need to do it in the browser.
Robert Laverty
@roblav96
@lavahot i dont quite understand what youre asking, i use turf with mapbox-gl-js in the browser no problem
Taylor Mansfield
@lavahot
@roblav96 I'm using leaflet, not mapbox directly.
turf only takes GeoJSON arguments, not vector tiles, so I need some way to convert the data in that layer to GeoJSON just to use it with turf.
Erinç Fırtına
@EricMcRay
@lavahot as I know, leaflet has toGeoJson method for that.
Taylor Mansfield
@lavahot
@EricMcRay leaflet does not natively read MVTs. I had to use a plugin for it, which AFAIK does not have a toGeoJson method.
Richard Astbury
@richorama
Hi All. I'm having some trouble trying to get buffer to work.
when I attempt to create a buffer from this polygon, it seems to miss the last point off : https://gist.github.com/richorama/0dd4a2ce32d357279623
blob
so my buffer looks like this ^
with 3 coords, rather than 4
Per Liedman
@perliedman
@richorama in GeoJSON, the last coordinate in a polygon's ring should be equal to the first
so you should duplicates the first coordinate to get correct results
Richard Astbury
@richorama
ah ha!
thanks
Per Liedman
@perliedman
leaflet will let you get away with not duplicating it, however, so that's why it look correct anyway.
Giulio Ungaretti
@giulioungaretti
0/wc
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