Skip to content

Commit c767424

Browse files
committed
Merge branch 'release/0.8.5'
2 parents 456b4ff + fc9d48d commit c767424

File tree

100 files changed

+4503
-1756
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+4503
-1756
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _defaults: &defaults
55
environment:
66
TERM: dumb
77
docker:
8-
- image: s22s/rasterframes-circleci:latest
8+
- image: s22s/rasterframes-circleci:9b7682ef
99

1010
_setenv: &setenv
1111
name: set CloudRepo credentials
@@ -195,6 +195,7 @@ workflows:
195195
branches:
196196
only:
197197
- /feature\/.*docs.*/
198+
- /fix\/.*docs.*/
198199
- /docs\/.*/
199200

200201
nightly:

RELEASE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# RasterFrames Release Process
2+
3+
1. Make sure `release-notes.md` is updated.
4+
2. Use `git flow release start x.y.z` to create release branch.
5+
3. Manually edit `version.sbt` and `version.py` to set value to `x.y.z` and commit changes.
6+
4. Do `docker login` if necessary.
7+
5. `sbt` shell commands:
8+
a. `clean`
9+
b. `test it:test`
10+
c. `makeSite`
11+
d. `publishSigned` (LocationTech credentials required)
12+
e. `sonatypeReleaseAll`. It can take a while, but should eventually show up [here](https://search.maven.org/search?q=g:org.locationtech.rasterframes).
13+
f. `docs/ghpagesPushSite`
14+
g. `rf-notebook/publish`
15+
6. `cd pyrasterframes/target/python/dist`
16+
7. `python3 -m twine upload pyrasterframes-x.y.z-py2.py3-none-any.whl`
17+
8. Commit any changes that were necessary.
18+
9. `git-flow finish release`. Make sure to push tags, develop and master
19+
branches.
20+
10. On `develop`, update `version.sbt` and `version.py` to next development
21+
version (`x.y.(z+1)-SNAPSHOT` and `x.y.(z+1).dev0`). Commit and push.
22+
11. In GitHub, create a new release with the created tag. Copy relevant
23+
section of release notes into the description.

build.sbt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ lazy val root = project
3434
.enablePlugins(RFReleasePlugin)
3535
.settings(
3636
publish / skip := true,
37-
clean := clean.dependsOn(`rf-notebook`/clean).value
37+
clean := clean.dependsOn(`rf-notebook`/clean, docs/clean).value
3838
)
3939

4040
lazy val `rf-notebook` = project
@@ -76,7 +76,6 @@ lazy val core = project
7676
buildInfoObject := "RFBuildInfo",
7777
buildInfoOptions := Seq(
7878
BuildInfoOption.ToMap,
79-
BuildInfoOption.BuildTime,
8079
BuildInfoOption.ToJson
8180
)
8281
)

build/circleci/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM circleci/openjdk:8-jdk
22

33
ENV OPENJPEG_VERSION 2.3.1
44
ENV GDAL_VERSION 2.4.1
5+
ENV SPATIALINDEX_VERSION 1.9.3
56
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
67

78
# most of these libraries required for
@@ -74,3 +75,15 @@ RUN \
7475
sudo make install && \
7576
sudo ldconfig && \
7677
cd /tmp && sudo rm -Rf gdal*
78+
79+
# Compile and install libspatialindex
80+
RUN \
81+
cd /tmp && \
82+
wget https://github.com/libspatialindex/libspatialindex/releases/download/${SPATIALINDEX_VERSION}/spatialindex-src-${SPATIALINDEX_VERSION}.tar.gz && \
83+
tar -xf spatialindex-src-${SPATIALINDEX_VERSION}.tar.gz && \
84+
cd spatialindex-src-${SPATIALINDEX_VERSION}/ && \
85+
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/ && \
86+
make && \
87+
sudo make install && \
88+
sudo ldconfig && \
89+
cd /tmp && sudo rm -Rf spatialindex*

core/src/it/scala/org/locationtech/rasterframes/ref/RasterRefIT.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import org.locationtech.rasterframes.expressions.aggregates.TileRasterizerAggreg
3030

3131
class RasterRefIT extends TestEnvironment {
3232
describe("practical subregion reads") {
33-
ignore("should construct a natural color composite") {
33+
it("should construct a natural color composite") {
3434
import spark.implicits._
3535
def scene(idx: Int) = URI.create(s"https://landsat-pds.s3.us-west-2.amazonaws.com" +
3636
s"/c1/L8/176/039/LC08_L1TP_176039_20190703_20190718_01_T1/LC08_L1TP_176039_20190703_20190718_01_T1_B$idx.TIF")
@@ -55,11 +55,11 @@ class RasterRefIT extends TestEnvironment {
5555
stats.get.dataCells shouldBe > (1000L)
5656
}
5757

58-
//import geotrellis.raster.io.geotiff.{GeoTiffOptions, MultibandGeoTiff, Tiled}
59-
//import geotrellis.raster.io.geotiff.compression.{DeflateCompression, NoCompression}
60-
//import geotrellis.raster.io.geotiff.tags.codes.ColorSpace
61-
//val tiffOptions = GeoTiffOptions(Tiled, DeflateCompression, ColorSpace.RGB)
62-
//MultibandGeoTiff(raster, raster.crs, tiffOptions).write("target/composite.tif")
58+
import geotrellis.raster.io.geotiff.compression.DeflateCompression
59+
import geotrellis.raster.io.geotiff.tags.codes.ColorSpace
60+
import geotrellis.raster.io.geotiff.{GeoTiffOptions, MultibandGeoTiff, Tiled}
61+
val tiffOptions = GeoTiffOptions(Tiled, DeflateCompression, ColorSpace.RGB)
62+
MultibandGeoTiff(raster.raster, raster.crs, tiffOptions).write("target/composite.tif")
6363
}
6464
}
6565
}

core/src/main/resources/reference.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ vlm.gdal {
1717
GDAL_CACHEMAX = 512
1818
GDAL_PAM_ENABLED = "NO"
1919
CPL_VSIL_CURL_CHUNK_SIZE = 1000000
20+
GDAL_HTTP_MAX_RETRY=4
21+
GDAL_HTTP_RETRY_DELAY=1
2022
}
2123
// set this to `false` if CPL_DEBUG is `ON`
2224
useExceptions = true

core/src/main/scala/org/apache/spark/sql/rf/RasterSourceUDT.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import org.locationtech.rasterframes.util.KryoSupport
3838
@SQLUserDefinedType(udt = classOf[RasterSourceUDT])
3939
class RasterSourceUDT extends UserDefinedType[RasterSource] {
4040
import RasterSourceUDT._
41-
override def typeName = "rf_rastersource"
41+
override def typeName = "rastersource"
4242

4343
override def pyUDT: String = "pyrasterframes.rf_types.RasterSourceUDT"
4444

@@ -58,7 +58,6 @@ class RasterSourceUDT extends UserDefinedType[RasterSource] {
5858
}
5959
.orNull
6060

61-
6261
private[sql] override def acceptsType(dataType: DataType) = dataType match {
6362
case _: RasterSourceUDT true
6463
case _ super.acceptsType(dataType)

core/src/main/scala/org/apache/spark/sql/rf/TileUDT.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ case object TileUDT {
7373

7474
final val typeName: String = "tile"
7575

76-
implicit def tileSerializer: CatalystSerializer[Tile] = new CatalystSerializer[Tile] {
76+
implicit val tileSerializer: CatalystSerializer[Tile] = new CatalystSerializer[Tile] {
7777

7878
override val schema: StructType = StructType(Seq(
7979
StructField("cell_context", schemaOf[TileDataContext], true),

0 commit comments

Comments
 (0)