Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MosaicRasterSource, GDALRasterSource and GeoTiffResampleRasterSource behavior #3252

Merged
merged 8 commits into from
Jun 11, 2020

Conversation

pomadchin
Copy link
Member

@pomadchin pomadchin commented Jun 9, 2020

Overview

This PR fixes:

  • MosaicRasterSources reprojection and resample logic
  • GDALRasterSource chained reprojection
  • GDALWarpOptions reprojection
  • GeoTiffRasterSource resample methods

Checklist

@pomadchin pomadchin changed the title Fix MosaicRasterSource reprojection [WIP] Fix MosaicRasterSource reprojection Jun 9, 2020
@pomadchin pomadchin changed the title [WIP] Fix MosaicRasterSource reprojection Fix MosaicRasterSource reprojection Jun 9, 2020
@pomadchin pomadchin changed the title Fix MosaicRasterSource reprojection Fix MosaicRasterSource and RasterSource reprojection behavior Jun 9, 2020
@pomadchin pomadchin force-pushed the fix/mosaic-rs branch 2 times, most recently from 3855874 to 60b9945 Compare June 9, 2020 10:51
MosaicRasterSource(
sources map { _.reproject(targetCRS, resampleTarget, method, strategy) },
crs,
gridExtent.reproject(this.crs, targetCRS, Reproject.Options.DEFAULT.copy(method = method)),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gives an incorrect CellSize

@pomadchin pomadchin changed the title Fix MosaicRasterSource and RasterSource reprojection behavior Fix MosaicRasterSource and GDALRasterSource reprojection behavior Jun 9, 2020
@pomadchin pomadchin force-pushed the fix/mosaic-rs branch 2 times, most recently from 89daec1 to d841cb5 Compare June 10, 2020 02:30
@pomadchin pomadchin changed the title Fix MosaicRasterSource and GDALRasterSource reprojection behavior Fix MosaicRasterSource, GDALRasterSource, GeoTiffResample raster sources behavior Jun 10, 2020
Copy link
Contributor

@CloudNiner CloudNiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, although it appears there's a failing GDAL test on Scala 2.11 in CI that I couldn't reproduce locally.

Also good to add some docs before merging to MosaicRasterSource instance and apply methods that describe how and why you'd want to use each, e.g. needing to conform all rasters to a target grid extent.

@pomadchin pomadchin force-pushed the fix/mosaic-rs branch 2 times, most recently from 7fe3249 to cc1d1f4 Compare June 10, 2020 22:50
@pomadchin pomadchin changed the title Fix MosaicRasterSource, GDALRasterSource, GeoTiffResample raster sources behavior Fix MosaicRasterSource, GDALRasterSource and GeoTiffResampleRasterSource behavior Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants