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

Added `mapTile` to `ProjectedRaster`. #2830

Merged

Conversation

@metasim
Copy link
Member

commented Nov 29, 2018

Signed-off-by: Simeon H.K. Fitch fitch@astraea.io

Overview

Want to say no more to this:

val pr = someGeotiff.projectedRaster
val tile = pr.tile.interpretAs(UShortConstantNoDataCellType)
val fixedpr = ProjectedRaster(tile, pr.extent, pr.crs)

and instead

val pr = someGeotiff.projectedRaster
val fixedpr = pr.mapTile(_.interpretAs(UShortConstantNoDataCellType))

Checklist

  • [NO] docs/CHANGELOG.rst updated, if necessary
  • [NO] docs guides update, if necessary
  • [NO] New user API has useful Scaladoc strings
  • [NO] Unit tests added for bug-fix or new feature
Added `mapTile` to `ProjectedRaster`.
Signed-off-by: Simeon H.K. Fitch <fitch@astraea.io>
@pomadchin
Copy link
Member

left a comment

LGTM

@pomadchin pomadchin merged commit bdbfbdb into locationtech:master Dec 5, 2018

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
ip-validation
Details

@metasim metasim deleted the metasim:feature/mappable-projected-raster branch Dec 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.