Skip to content

Commit a9e2a4c

Browse files
committed
Upgraded to GeoTrellis 3.2.
Regressions.
1 parent d567689 commit a9e2a4c

File tree

5 files changed

+12
-18
lines changed

5 files changed

+12
-18
lines changed

core/src/test/scala/org/locationtech/rasterframes/TestEnvironment.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import org.apache.spark.sql.functions.col
3232
import org.apache.spark.sql.types.StructType
3333
import org.apache.spark.{SparkConf, SparkContext}
3434
import org.locationtech.jts.geom.Geometry
35+
import org.locationtech.rasterframes.ref.RasterRef
3536
import org.locationtech.rasterframes.tiles.ProjectedRasterTile
3637
import org.locationtech.rasterframes.util._
3738
import org.scalactic.Tolerance
@@ -131,6 +132,8 @@ trait TestEnvironment extends FunSpec
131132
docs shouldNot include("N/A")
132133
}
133134

134-
implicit def pairEnc: Encoder[(ProjectedRasterTile, ProjectedRasterTile)] = Encoders.tuple(ProjectedRasterTile.prtEncoder, ProjectedRasterTile.prtEncoder)
135-
implicit def tripEnc: Encoder[(ProjectedRasterTile, ProjectedRasterTile, ProjectedRasterTile)] = Encoders.tuple(ProjectedRasterTile.prtEncoder, ProjectedRasterTile.prtEncoder, ProjectedRasterTile.prtEncoder)
135+
implicit def prt2Enc: Encoder[(ProjectedRasterTile, ProjectedRasterTile)] = Encoders.tuple(ProjectedRasterTile.prtEncoder, ProjectedRasterTile.prtEncoder)
136+
implicit def prt3Enc: Encoder[(ProjectedRasterTile, ProjectedRasterTile, ProjectedRasterTile)] = Encoders.tuple(ProjectedRasterTile.prtEncoder, ProjectedRasterTile.prtEncoder, ProjectedRasterTile.prtEncoder)
137+
implicit def rr2Enc: Encoder[(RasterRef, RasterRef)] = Encoders.tuple(RasterRef.rrEncoder, RasterRef.rrEncoder)
138+
implicit def rr3Enc: Encoder[(RasterRef, RasterRef, RasterRef)] = Encoders.tuple(RasterRef.rrEncoder, RasterRef.rrEncoder, RasterRef.rrEncoder)
136139
}

docs/src/main/paradox/release-notes.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### 0.9.0
66

7-
* Upgraded to GeoTrellis 3.1.0. This includes a number of _breaking_ changes enumerated as a part of the [PR's](https://github.com/locationtech/rasterframes/pull/398) change log. These include:
7+
* Upgraded to GeoTrellis 3.2.0. This includes a number of _breaking_ changes enumerated as a part of the [PR's](https://github.com/locationtech/rasterframes/pull/398) change log. These include:
88
- Add `Int` type parameter to `Grid`
99
- Add `Int` type parameter to `CellGrid`
1010
- Add `Int` type parameter to `GridBounds`... or `TileBounds`
@@ -22,7 +22,8 @@
2222
- Revisit use of `Tile` equality since [it's more strict](https://github.com/locationtech/geotrellis/pull/2991)
2323
- Update `reference.conf` to use `geotrellis.raster.gdal` namespace.
2424
- Replace all uses of `TileDimensions` with `geotrellis.raster.Dimensions[Int]`.
25-
* Formally abandon support for Python 2. Python 2 is dead. Long live Python 2.
25+
* Formally abandoned support for Python 2. Python 2 is dead. Long live Python 2.
26+
* Introduction of type hints in Python API.
2627

2728
## 0.8.x
2829

project/RFDependenciesPlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ object RFDependenciesPlugin extends AutoPlugin {
7272
},
7373
// NB: Make sure to update the Spark version in pyrasterframes/python/setup.py
7474
rfSparkVersion := "2.4.4",
75-
rfGeoTrellisVersion := "3.1.0",
75+
rfGeoTrellisVersion := "3.2.0",
7676
rfGeoMesaVersion := "2.2.1"
7777
)
7878
}

pyrasterframes/src/main/python/docs/sjoin.pymd

Lines changed: 0 additions & 11 deletions
This file was deleted.

pyrasterframes/src/main/python/pyrasterframes/rf_ipython.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import pyrasterframes.rf_types
2222
from pyrasterframes.rf_types import Tile
2323
from shapely.geometry.base import BaseGeometry
24-
import matplotlib.axes.Axes
24+
from matplotlib.axes import Axes
2525
import numpy as np
2626
from pandas import DataFrame
2727
from typing import Optional, Tuple
@@ -30,12 +30,13 @@
3030

3131

3232
def plot_tile(tile: Tile, normalize: bool = True, lower_percentile: float = 1., upper_percentile: float = 99.,
33-
axis: Optional[matplotlib.axis.Axes] = None, **imshow_args):
33+
axis: Optional[Axes] = None, **imshow_args):
3434
"""
3535
Display an image of the tile
3636
3737
Parameters
3838
----------
39+
tile: item to plot
3940
normalize: if True, will normalize the data between using
4041
lower_percentile and upper_percentile as bounds
4142
lower_percentile: between 0 and 100 inclusive.

0 commit comments

Comments
 (0)