• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

georust / geo / 1786
86%

Build:
DEFAULT BRANCH: master
Ran 27 Dec 2019 08:19PM UTC
Jobs 3
Files 110
Run time 55s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1786

push

travis-ci

web-flow
Merge #402

402: Simplify indices r=urschrei a=urschrei

This PR adds a new trait to the `simplify` and `simplifyVW` modules: `SimplifyIdx` and `SimplifyVwIdx`.
Both traits do the same thing: they run the respective simplification algorithm, but return the _indices_ of the simplified `LineString`, instead of the simplified geometry. This is mostly in response to ongoing requests from FFI consumers: because their use-cases don't necessarily map onto the Simple Features geometry model, returning geometries is less useful than returning indices, which can be used as mask values / input into native filter functions.

The only current drawback to these new traits is that because they return `Vec<usize>`, they're only implemented for `LineString`. If there's a more flexible way to do it, I'd love to extend it to some other geometries.

This change introduces some additional indirection for the RDP implementation, but `cargo bench` hasn't shown a perf hit…

Co-authored-by: Stephan Hügel <shugel@tcd.ie>
Co-authored-by: Stephan Hügel <urschrei@gmail.com>

26 of 26 new or added lines in 2 files covered. (100.0%)

9462 of 10596 relevant lines covered (89.3%)

3.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1786.1 (GEO_TYPES_FEATURES="") 27 Dec 2019 08:20PM UTC 0
89.3
Travis Job 1786.1
2 1786.2 (GEO_TYPES_FEATURES="--features serde") 27 Dec 2019 08:19PM UTC 0
89.3
Travis Job 1786.2
3 1786.3 (GEO_TYPES_FEATURES="--features rstar") 27 Dec 2019 08:20PM UTC 0
89.3
Travis Job 1786.3
Source Files on build 1786
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1786
  • de873f9e on github
  • Prev Build on master (#1781)
  • Next Build on master (#1792)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc