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

georust / geo / 1784 / 1
86%
master: 86%

Build:
Build:
LAST BUILD BRANCH: staging
DEFAULT BRANCH: master
Ran 27 Dec 2019 07:32PM UTC
Files 55
Run time 5s
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

27 Dec 2019 06:58PM UTC coverage: 89.298% (-0.2%) from 89.472%
GEO_TYPES_FEATURES=""

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>

4731 of 5298 relevant lines covered (89.3%)

1.26 hits per line

Source Files on job 1784.1 (GEO_TYPES_FEATURES="")
  • Tree
  • List 0
  • Changed 20
  • Source Changed 3
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 29
  • Travis Job 1784.1
  • de873f9e on github
  • Prev Job for GEO_TYPES_FEATURES="" on staging (#1780.1)
  • Next Job for GEO_TYPES_FEATURES="" on staging (#1790.1)
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