Skip to content

Remove Raster[T] to T implicit conversion - #2771

Merged
echeipesh merged 5 commits into
locationtech:masterfrom
echeipesh:fix/remove-raster-to-tile
Jul 31, 2018
Merged

echeipesh merged 5 commits into
locationtech:masterfrom
echeipesh:fix/remove-raster-to-tile

Conversation

@echeipesh

@echeipesh echeipesh commented Jul 27, 2018 •

Copy link
Copy Markdown
Contributor

In particular this conversion results in data loss and surprising behavior.

Other remaining implicit conversion, from Raster[T] to PolygonFeature[T] at least preserve the extent information.

Checklist

  • docs/CHANGELOG.rst updated, if necessary
  • [-] docs guides update, if necessary
  • [-] New user API has useful Scaladoc strings
  • Unit tests added for bug-fix or new feature

Demo

Optional. Screenshots/REPL

Notes

Optional. Ancillary topics, caveats, alternative strategies that didn't work out, anything else.

Resolves #2768

@echeipesh

Copy link
Copy Markdown
Contributor Author

HA, this change actually revealed a bug in GeoTiff.crop that was being ignored in the unit tests ^.

@echeipesh
echeipesh merged commit f092b7d into locationtech:master Jul 31, 2018
@echeipesh echeipesh added this to the 2.0 milestone Aug 3, 2018
echeipesh added a commit that referenced this pull request Aug 5, 2018
Remove Raster[T] to T implicit conversion

In particular this conversion results in data loss and surprising behavior (+2 squashed commits)
Squashed commits:
[da63873] Update tests where Raster[T] is used as T
[750f159] fix: return grid aligned Extent on GeoTiff crop
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.

Implicit conversions from Raster to Tile create confusing semantics

1 participant