Breaking change in buffer between 4.7.3 and 4.7.4
See original GitHub issuePlease provide the following when reporting an issue:
- GeoJSON data: https://gist.github.com/garthk/888c7a0b8a464ec02a3bd1c4d08f8882
- Snippet of source code: https://github.com/garthk/turf-buffer-change
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:
- Created 5 years ago
- Reactions:1
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
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.