Skip to content

Commit e633d50

Browse files
authored
Merge pull request #3088 from pomadchin/fix/tifftags-reader
Fix TIFFTagsReader to skip unsupported tags
2 parents c5094d0 + cd73b4c commit e633d50

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

docs/CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ Fixes & Updates
132132
- Update dependencies (`#3053 <https://github.com/locationtech/geotrellis/pull/3053>`_).
133133
- Fix HttpRangeReader swallows 404 error (`#3073 https://github.com/locationtech/geotrellis/pull/3073`_)
134134
- Add a ToSpatial function for the collections API (`#3082 https://github.com/locationtech/geotrellis/pull/3082`_)
135+
- Fix TIFFTagsReader to skip unsupported tags (`#3088 https://github.com/locationtech/geotrellis/pull/3088`_)
135136

136137
2.3.0
137138
-----

raster/src/main/scala/geotrellis/raster/io/geotiff/reader/TiffTagsReader.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ object TiffTagsReader extends LazyLogging {
159159
byteReader.readLongsTag(tiffTags, tagMetadata)
160160
case (_, IFDOffset) =>
161161
byteReader.readLongsTag(tiffTags, tagMetadata)
162+
case _ => TiffTags() // skip unsupported tags
162163
}
163164

164165
implicit class ByteReaderTagReaderWrapper(val byteReader: ByteReader) extends AnyVal {

0 commit comments

Comments
 (0)