-
Notifications
You must be signed in to change notification settings - Fork 953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New minor release! Turf 5.1.0 🎉 #1162
Comments
Thanks particularly to @muziejus for getting involved in the past month, lots of really valuable contributions, code & thoughts & documentation, so thank you! |
Thanks. I've been using Turf on and off as a solution to put my various geospatial analysis on the web in presentations for about a year, but lately I've been getting more and more frustrated w/ ArcMap and QGIS and working between them and Leaflet. Turf takes up a great middle ground, and I'm glad that my solution to "I wish Turf did x" was "Let me try to do it; the worst that happens is the team tells me I was wrong and fixes it." Turf is also useful towards the curriculum (of sorts) of free, light, JavaScript solutions for scholars in the humanities that I'm designing. I've got high hopes for this little (huge) library, and I have to thank you all for putting it together in the first place! |
For any turf users out there also using webpack and babel to compile to ES5 for browsers, make sure your rules: [{
test: /\.m?jsx?$/,
include: /* ... */,
use: [{
loader: 'babel-loader',
// ... Otherwise, lines like this one will now creep into your bundle. That, or set |
@brianreavis What is creeping into your bundle? the Callback? For the |
Just the
I wouldn't worry about it. Just a growing pain! I wasn't familiar with the |
Actually |
Nevermind.. https://unpkg.com/@turf/meta@5.1.0/main.js main.js function flattenEach(geojson, callback) {
geomEach(geojson, function (geometry, featureIndex, properties, bbox, id) {
// Callback for single geometry
var type = (geometry === null) ? null : geometry.type;
switch (type) {
case null:
case 'Point':
case 'LineString':
case 'Polygon':
callback(helpers.feature(geometry, properties, {bbox: bbox, id: id}), featureIndex, 0);
return;
} |
Yep, that all is working fine! The main kicker is that webpack picks Edit: updated my original comment to note the |
@brianreavis Thanks for the heads up, moving forward more and more libraries will support Using
|
Seems like most |
New minor release! Turf 5.1.0 🎉
TurfJS releases are being tracked using Milestones.
Contributors
Crowdsourced Funding
Why we're looking for support
TurfJS is a community-driven project maintained by a small group of core contributors who work on the project in their spare time. Time is spent supporting users, improving documentation, fixing bugs as well as creating new modules. Your funding will directly go to development costs, marketing campaigns, promotional events & any other financial costs to operate & maintain TurfJS.
In particular, we're looking for corporate sponsors who use TurfJS in revenue-generating ways, either by creating applications for clients, or through use in an app used by customers. Of course individuals are welcome to support us as well if TurfJS has helped you :)
https://opencollective.com/turf
Help TurfJS by becoming a Backer for only 2$/mo.
🚀 New Modules
@turf/center-median
Takes a FeatureCollection of points and calculates the median center, algorithimically. The median center is understood as the point that is requires the least total travel from all other points.
(PR #1122 - Author @muziejus)
@turf/center-mean
Takes a Feature or FeatureCollection and returns the mean center. Can be weighted.
(PR #1089 - Author @muziejus)
@turf/standard-deviational-ellipse
Takes a FeatureCollection and returns a standard deviational ellipse, also known as a “directional distribution.” The standard deviational ellipse aims to show the direction and the distribution of a dataset by drawing an ellipse that contains about one standard deviation’s worth (~ 70%) of the data.
This module mirrors the functionality of Directional Distribution in ArcGIS and the QGIS Standard Deviational Ellipse Plugin
(PR #1120 - Author @muziejus)
@turf/ellipse
Takes a Point and calculates the ellipse polygon given two semi-axes expressed in variable units and steps for precision.
(PR #1087 - Author @muziejus)
📖 Documentation
🏅 New Features/Enhancements
@types/geojson
(Internalize @types/geojson #1138)🐛 Bug Fixes
Twitter: https://twitter.com/DenisCarriere/status/938895355541778432
CC: @Turfjs/ownership
The text was updated successfully, but these errors were encountered: