question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breaking change in buffer between 4.7.3 and 4.7.4

See original GitHub issue

Please provide the following when reporting an issue:

There was a breaking change to @turf/buffer in a patch release:

Major version X (X.y.z | X > 0) MUST be incremented if any backwards incompatible changes are introduced to the public API.

The schema is the same, but I strongly disagree with the proposition that a result change this big is backwards compatible.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
cHewNcommented, Mar 2, 2020

We’ve also come across this problem and have implemented the PostGIS solution @jgwconsulting has posted before. We would prefer using Turf.js though 😃

I don’t see a clear example in any of the open issues, so I’ve created a CodeSandbox that displays the problem clearly: https://codesandbox.io/s/multiple-buffers-in-react-leaflet-qc722

You can use the measure tool in the top right corner to see that PostGIS buffer is 100m, where Turf.js is ~89m.

EDIT: I forgot to mention, this is also on the v4.7.3 branch of Turf.js. My best guess is the issue described at the start is for buffers based on a Point, not a Polygon.

@rowanwins the above sandbox also shows another bug when using turf with a FeatureCollection with multiple Features > Polygons. Turf will add a buffer to each Feature, instead of one buffer for the entire Collection. A workaround could be to merge all the Polygons before using turf to find a buffer but maybe this should be an option in the future? Would you like for me to move/add this to a separate issue?

2reactions
rowanwinscommented, Feb 14, 2019

Hi @jgwconsulting

Unfortunately there won’t be anything ready in the next fortnight. I’m waiting on a final upstream change to another module that we’ll be using for unions/difference/clipping before I push another release of the alpha. In the meantime I’m working on a standalone buffer module over here which I hope to eventually incorporate here in Turf.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RMR Release Notes — ric-plt-lib-rmr master documentation
This is considered a breaking change as NNG will not be supported by default. It is still possible to build with RMR-NNG libraries,...
Read more >
RFC 3611 - RTP Control Protocol Extended Reports (RTCP XR)
Reports in the second category convey reference time information between RTP ... The introduction of XR packets into a session in no way...
Read more >
Openfire Changelog - Ignite Realtime Downloads
[OF-2460] - Bumps mysql-connector-java from 8.0.27 to 8.0.28. ... [OF-2300] - Clustered caches can loose 'local' data upon cluster breakage.
Read more >
Subdivision_and_Site_Plan_Re...
3.5 LOT LINE CHANGE COMPLETION OF FINAL REQUIREMENTS . ... 4.7.3 AUTHORITY . ... Edges shall be smooth and true and free from...
Read more >
Harford County Forest Cover Conservation And Replacement ...
Figure 4.7.3 Filter Cloth on Mesh Wire with Flags . ... new areas in trees and forests, the effect of change to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found