Closed JosiahParry closed 10 months ago
The almighty clippy should be satisfied now.
Looks like Clippy still isn't happy. Do you see those failures when you run it locally?
@urschrei I do not get them locally, I get different ones! These ones seem simple enough that I should be able to handle them. I just don't want to consume all of the GHA hours
I pulled the most recent changes from main and CI is failing unrelated to my changes.
failed to query replaced source registry `crates-io`
A couple lines further up in the failed action output shows:
Updating crates.io index
warning: spurious network error (3 tries remaining): [28] Timeout was reached (Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds)
warning: spurious network error (2 tries remaining): [28] Timeout was reached (Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds)
warning: spurious network error (1 tries remaining): [28] Timeout was reached (Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds)
So, presumably this is some kind of transient network failure. I've restarted the jobs. 🤞
thanks @michaelkirk! Looks good now.
BTW have you seen https://github.com/georust/geo/pull/1050?
It's not quite the same thing, but it seems like maybe you could leverage the functionality within. Though, I'm not sure if you'd want to, I haven't thought about it very hard.
Recent commits allow for n
to be greater than the number of Line
s that compose a LineString
which is done using the Densify
trait to ensure that the distance between Coord
s is x.euclidean_length() / n
.
I've updated the branch with main. Please let me know what more is needed for this PR. Thanks!
Just following up here. Please let me know what more is needed on this PR. Thanks!
@michaelkirk / @urschrei, please let me know what tasks are remaining for this PR. Thanks! R bindings to geo are based on my fork with this functionality so a downstream package can improve their peformance by 4 orders of magnitude. I'd love to be able to point to main and keep up with new PRs :)
All comments are resolved. Praying to the CI overlords 🙏🏼
Guessing that was an inadvertent close.
oops! Correct. Thank you @urschrei. CI caught an example issue.
Changes should be resolved and CI is satisfied. @urschrei when you get a chance, let me know if I've missed anything! Thanks again for the feedback
Sounds good! Enjoy you're weekend
[tolling bell] Last call!
[x] I added an entry to
CHANGES.md
if knowledge of this change could be valuable to users.This PR adds a new trait
LineStringSegmentize
which provides a methodline_segmentize(n: usize)
to splitLineString
s inton
equal length LineStrings which are returned as anOption<MultiLineString>
. This is inspired by the lwgeom R package which wraps liblwgeom from PostGIS.