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

@metasim metasim commented Nov 29, 2018

Signed-off-by: Simeon H.K. Fitch [email protected]

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

Signed-off-by: Simeon H.K. Fitch <[email protected]>
Copy link
Member

@pomadchin pomadchin left a comment

Choose a reason for hiding this comment

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

LGTM

@pomadchin pomadchin merged commit bdbfbdb into locationtech:master Dec 5, 2018
@metasim metasim deleted the feature/mappable-projected-raster branch December 5, 2018 15:32
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