Skip to content

Commit

Permalink
Merge pull request #992 from ebocher/upgrade_deps
Browse files Browse the repository at this point in the history
Some fix due to rounding precision in JTS 1.20
  • Loading branch information
ebocher authored Sep 3, 2024
2 parents 5433258 + b4f231b commit b394b4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## Changelog for v1.0.1

- Upgrade dependencies H2, H2GIS, JTS and Groovy
- Fix some tests due to some rounding precision in JTS 1.20
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ class WorkflowGeoIndicatorsTest {
"", "", "", "", ["indicatorUse": indicatorUse, svfSimplified: false], prefixName)
assertNotNull(geoIndicatorsCompute_i)

datasource.save(geoIndicatorsCompute_i.rsu_indicators, "/tmp/test4.geojson", true)
checkRSUIndicators(datasource, geoIndicatorsCompute_i.rsu_indicators)

if (indicatorUse.contains("UTRF")) {
Expand Down Expand Up @@ -601,11 +602,11 @@ class WorkflowGeoIndicatorsTest {
countResult = datasource.firstRow("select count(*) as count from ${rsuIndicatorsTableName} WHERE water_fraction>0".toString())
assertEquals(2, countResult.count)

//Check low_vegetation_fraction > 0
countResult = datasource.firstRow("select count(*) as count from ${rsuIndicatorsTableName} WHERE low_vegetation_fraction>0".toString())
assertEquals(55, countResult.count)
//Check low_vegetation_fraction > 0.001
countResult = datasource.firstRow("select count(*) as count from ${rsuIndicatorsTableName} WHERE low_vegetation_fraction>0.001".toString())
assertEquals(49, countResult.count)

//Check low_vegetation_fraction > 0
//Check impervious_fraction > 0
countResult = datasource.firstRow("select count(*) as count from ${rsuIndicatorsTableName} WHERE impervious_fraction>0".toString())
assertEquals(0, countResult.count)
}
Expand Down

0 comments on commit b394b4f

Please sign in to comment.