Skip to content

Commit 3e9c995

Browse files
authored
Fix implicitNotFound error and rename implicit class (#3563)
1 parent 7960ea1 commit 3e9c995

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Fix reprojection with downsampling for GeotiffRasterSource and tile RDDs. Reprojection outside the valid projection bounds may now throw a GeoAttrsError. [#3541](https://github.com/locationtech/geotrellis/issues/3541)
1414
- ConstantTile with NoData: support idempotent CellType conversions [#3553](https://github.com/locationtech/geotrellis/pull/3553)
1515
- GeoTiffReader Unknown tags skip fix [#3557](https://github.com/locationtech/geotrellis/pull/3557)
16+
- Fix implicitNotFound error and rename RGBAMethods implicit class [#3563](https://github.com/locationtech/geotrellis/pull/3563)
1617

1718
## [3.7.1] - 2024-01-08
1819

raster/src/main/scala/geotrellis/raster/render/Implicits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import geotrellis.raster.{Tile, MultibandTile}
2222
object Implicits extends Implicits
2323

2424
trait Implicits {
25-
implicit class RGBA(val int: Int) {
25+
implicit class RGBAMethods(val int: Int) {
2626
def red = (int >> 24) & 0xff
2727
def green = (int >> 16) & 0xff
2828
def blue = (int >> 8) & 0xff

raster/src/test/scala/geotrellis/raster/io/geotiff/compression/JpegCompressionSpec.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ class JpegCompressionSpec extends AnyFunSpec
3737

3838
override def afterAll() = purge
3939

40+
// TODO: resurrect this test, TIFF is gone from S3
4041
describe("Reading GeoTiffs with JPEG compression") {
41-
it("Does not cause Too many open files exception") {
42+
ignore("Does not cause Too many open files exception") {
4243
/*
4344
* Tests a resource closing issue that appeared in the JPEGDecompression logic.
4445
* See https://github.com/locationtech/geotrellis/pull/3249 for details.

store/src/main/scala/geotrellis/store/avro/AvroRecordCodec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import org.apache.avro._
2121
import scala.annotation.implicitNotFound
2222
import scala.reflect.ClassTag
2323

24-
@implicitNotFound("Cannot find AvroRecordCodec for ${T}. Try to import geotrellis.spark.io.avro.codecs.Implicits._")
24+
@implicitNotFound("Cannot find AvroRecordCodec for ${T}. Try to import geotrellis.store.avro.codecs.Implicits._")
2525
abstract class AvroRecordCodec[T: ClassTag] extends AvroCodec[T, GenericRecord] {
2626
def schema: Schema
2727
def encode(thing: T, rec: GenericRecord): Unit

0 commit comments

Comments
 (0)