Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnhancedPrecisionOp #431

Merged
merged 10 commits into from
May 31, 2021
Merged

Conversation

iGureEV
Copy link
Contributor

@iGureEV iGureEV commented May 30, 2021

I actively work with these classes, especially when using JSTS as a single-file library. And I would really appreciate adding these classes to the build library. If one previous test is not enough to accept a given pull request, then I can add additional ones.

iGureEV added 2 commits May 30, 2021 23:32
For use as a single-file library, the following classes are added to the assembly: CommonBits, CommonBitsOp, CommonBitsRemover, and EnhancedPrecisionOp
Restored the test from JSTS version 0.17.0
@codecov
Copy link

codecov bot commented May 30, 2021

Codecov Report

Merging #431 (f95a167) into master (4b77e67) will increase coverage by 0.98%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #431      +/-   ##
==========================================
+ Coverage   63.96%   64.94%   +0.98%     
==========================================
  Files         262      268       +6     
  Lines       13886    14259     +373     
==========================================
+ Hits         8882     9261     +379     
+ Misses       5004     4998       -6     
Impacted Files Coverage Δ
src/java/lang/Double.js 16.05% <100.00%> (+1.24%) ⬆️
src/org/locationtech/jts/precision/CommonBitsOp.js 60.00% <0.00%> (ø)
...cationtech/jts/precision/SimpleMinimumClearance.js 85.96% <0.00%> (ø)
...jts/operation/distance/FacetSequenceTreeBuilder.js 100.00% <0.00%> (ø)
.../locationtech/jts/precision/EnhancedPrecisionOp.js 26.66% <0.00%> (ø)
...cationtech/jts/operation/distance/FacetSequence.js 18.44% <0.00%> (ø)
...org/locationtech/jts/precision/MinimumClearance.js 91.78% <0.00%> (ø)
src/org/locationtech/jts/geom/Envelope.js 71.13% <0.00%> (+0.40%) ⬆️
...org/locationtech/jts/geomgraph/DirectedEdgeStar.js 83.64% <0.00%> (+0.62%) ⬆️
.../locationtech/jts/index/strtree/AbstractSTRtree.js 42.85% <0.00%> (+1.09%) ⬆️
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b77e67...f95a167. Read the comment docs.

iGureEV added 8 commits May 31, 2021 00:30
Added tests for all the functions of the EnhancedPrecisionOp module: union, intersection, buffer, symDifference, difference
Test for CommonBitsOp
Tests for computes the Minimum Clearance of a Geometry.
Added a missing constant declaration (see the MinimumClearance test)
Added the MinimumClearance class to the build
Test for computes the minimum clearance of a geometry or set of geometries
Added the SimpleMinimumClearance class to the build
Extending the test coverage of the GeometryPrecisionReducer module
@bjornharrtell
Copy link
Owner

@iGureEV thanks this looks good.

@bjornharrtell bjornharrtell merged commit 96e78e4 into bjornharrtell:master May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants