Repository navigation
Add RasterSources API - #3053
Conversation
695a824 to
777c869
Compare
91c9556 to
296ac03
Compare
| .settings(commonSettings) | ||
| .settings(Settings.gdal) | ||
|
|
||
| lazy val `gdal-spark` = project |
There was a problem hiding this comment.
what is the better name / project structure for tests that include tiling, spark and GDAL?
|
|
||
| import java.io.File | ||
|
|
||
| object GDALTestUtils { |
There was a problem hiding this comment.
Mb the better place for it in a raster-testkit?
|
|
||
| expected.dimensions shouldBe actual.dimensions | ||
|
|
||
| assertEqual(expected.crop(gridBounds), actual.tile.crop(gridBounds)) |
There was a problem hiding this comment.
Full rasters comparison is too slow, since it is ~1500x1500 n bands comparison, so I decided to generate a tiny (~250x250) random grid bounds to test it; it added an x10 boost to theese tests (less than 10 seconds instead of more than a minute)
6b627fc to
bfb71ad
Compare
405a58f to
8e2a0df
Compare
…external overviews support
6471123 to
a6dda44
Compare
a6dda44 to
b32fb40
Compare
Its used exclusivly there and avoids introducing another top level class. Potentially it could even be flatterend if not for somewhat confusing prefexing.
The list of Some/None from the case class is otherwise unreadable
We want to allow extending this method for some ill begotten reason, its too restrictive not to do that.
Warning on CellSize downsing are not good enough reason to have a logger in Tile class. This is just too low level and being away of this case is basically expected as baseline knowladge from the users of the library
| case class GDALRasterSource( | ||
| dataPath: GDALPath, | ||
| options: GDALWarpOptions = GDALWarpOptions.EMPTY, | ||
| class GDALRasterSource( |
There was a problem hiding this comment.
I was using GDALRasterSources without a new keyword. I find it very convinient, mb istead of adding new keyword in tests you can add an overload for convenience? So from the one hand users would be allowed to extend classes, from the other - they will have a handy overload.
| def convert(targetCellType: CellType): ArrayTile = { | ||
| val tile = ArrayTile.alloc(targetCellType, cols, rows) | ||
|
|
||
| if(targetCellType.isFloatingPoint != cellType.isFloatingPoint) |
There was a problem hiding this comment.
Why have you removed it? I thought that sometimes it is a useful warn O:
9b30f69 to
17ab6f3
Compare
c82f011 to
9863b22
Compare
Overview
This PR moves the code from the https://github.com/geotrellis/geotrellis-contrib repository.
Adds:
All the effects functionality still remains in the contrib repo.
Checklist
docs/CHANGELOG.rstupdated, if necessaryCQs
Closes #2941
Closes #3051
Closes #3054
Closes geotrellis/geotrellis-contrib#233
Closes https://github.com/azavea/geotrellis/issues/160