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

Make JTSConfig load lazy #3369

Merged
merged 3 commits into from
Apr 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Deprecate method SpatialIndex#traversePointsInExtent [#3349](https://github.com/locationtech/geotrellis/issues/3349)
- GDALRasterSource gives segmentation fault when reading rasters with NBITS=1 [#3300](https://github.com/locationtech/geotrellis/issues/3300)
- Make JTSConfig load lazy [#3369](https://github.com/locationtech/geotrellis/pull/3369)

## [3.5.2] - 2021-02-01

Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.4.7
sbt.version=1.4.9
6 changes: 3 additions & 3 deletions sbt
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

set -o pipefail

declare -r sbt_release_version="1.4.7"
declare -r sbt_unreleased_version="1.5.0-M2"
declare -r sbt_release_version="1.4.9"
declare -r sbt_unreleased_version="1.5.0-RC2"

declare -r latest_213="2.13.5"
declare -r latest_212="2.12.12"
declare -r latest_212="2.12.13"
declare -r latest_211="2.11.12"
declare -r latest_210="2.10.7"
declare -r latest_29="2.9.3"
Expand Down
6 changes: 3 additions & 3 deletions vector/src/main/scala/geotrellis/vector/GeomFactory.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import org.locationtech.jts.geom.{GeometryFactory, PrecisionModel}
import org.locationtech.jts.precision.GeometryPrecisionReducer

object GeomFactory {
val precisionType: String = JtsConfig.precisionType
val precisionModel: PrecisionModel = JtsConfig.precisionModel
lazy val precisionType: String = JtsConfig.precisionType
lazy val precisionModel: PrecisionModel = JtsConfig.precisionModel
lazy val simplifier: GeometryPrecisionReducer = JtsConfig.simplifier

val factory: GeometryFactory = new geom.GeometryFactory(precisionModel)
lazy val factory: GeometryFactory = new geom.GeometryFactory(precisionModel)
}