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

Incorrect Pyramid levels when using LocalLayoutScheme #3414

Open
jdries opened this issue Sep 15, 2021 · 0 comments
Open

Incorrect Pyramid levels when using LocalLayoutScheme #3414

jdries opened this issue Sep 15, 2021 · 0 comments
Labels
bug question Further information is requested

Comments

@jdries
Copy link
Contributor

jdries commented Sep 15, 2021

Describe the bug

When creating a Pyramid that uses 'LocalLayoutScheme', for an RDD where the extent is not nicely aligned to the LayoutDefinition, lower zoom levels are corrupt.

Example screenshot

(Those white vertical strips are not supposed to be there)

image

To Reproduce

I experienced this with this code:
https://github.com/Open-EO/openeo-geotrellis-extensions/blob/b38029ac83e671e70ff85b15e055d6f696c11641/openeo-geotrellis/src/main/scala/org/openeo/geotrellis/geotiff/package.scala#L179
Reproducing it in a unit test was more difficult, because the RDDs in my tests are too well aligned.

I personally solved it by using a custom layout scheme, which simply multiplies the cellsize with a factor 2, which aligns better with halving tile sizes:
https://github.com/Open-EO/openeo-geotrellis-extensions/blob/f3fcb0ec13aa6048773aea283aa1eb14c8a0791e/openeo-geotrellis/src/main/scala/org/openeo/geotrellis/geotiff/package.scala#L174

This may also be better behavior for the LocalLayoutScheme included in Geotrellis?

Expected behavior

Correct overviews

Environment

  • Java version: 1.8
  • Scala version: 2.11
  • GeoTrellis version: 3.6
@pomadchin pomadchin added bug question Further information is requested labels Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants