Turfjs / turf

A modular geospatial engine written in JavaScript and TypeScript
https://turfjs.org/
MIT License
9.19k stars 934 forks source link

dotDensity module #275

Closed jseppi closed 8 years ago

jseppi commented 9 years ago

Hey @morganherlocker - I made a module for creating the points for dot density maps: https://github.com/jseppi/turf-dot-density Would you be interested in having this in Turf?

morganherlocker commented 9 years ago

@jseppi I'm a bit on the fence with this one. It seems like more of a visualization technique than a typical geospatial processing function. @vtcraghead proposed something similar recently though, so maybe its something many people need. My other concern is that there are more scalable ways to accomplish this effect without actually encoding all the point geometries. ie: pattern fills, shaders, etc. It might cause a lot of headaches if people are guided down paths that hurt their performance.

jseppi commented 9 years ago

Yeah, I'm with you on those points. The functionality of generating a number of random points within a polygon could potentially be brought into turf-random, perhaps when options.feature is specified instead of options.bbox.

jseppi commented 8 years ago

Maybe stuff like this could go on turfjs.org in a Recipes section on the Learn page.