Skip to content

Added mapTile to ProjectedRaster. - #2830

Merged
pomadchin merged 1 commit into
locationtech:masterfrom
metasim:feature/mappable-projected-raster
Dec 5, 2018
Merged

pomadchin merged 1 commit into
locationtech:masterfrom
metasim:feature/mappable-projected-raster

Conversation

@metasim

@metasim metasim commented Nov 29, 2018

Copy link
Copy Markdown
Member

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]>

@pomadchin pomadchin left a comment

Copy link
Copy Markdown
Member

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