Skip to content

Bug in GeoCodingFactory:estimateGroundResolutionInKm - #632

Open
knowles wants to merge 1 commit into
masterfrom
SEADAS-SNAP-Bug-Pixel-Height-14.0.0-2026-06-24
Open

Bug in GeoCodingFactory:estimateGroundResolutionInKm#632
knowles wants to merge 1 commit into
masterfrom
SEADAS-SNAP-Bug-Pixel-Height-14.0.0-2026-06-24

Conversation

@knowles

@knowles knowles commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

I found a bug in the estimateGroundResolutionInKm method of "snap-engine/snap-core/src/main/java/org/esa/snap/core/dataio/geocoding/GeoCodingFactory.java” at line 153:

Currently it is:
        measures[0] = distance.distance(longitudes[width], latitudes[width]);

But it should be:
        measures[0] = distance.distance(longitudes[width], latitudes[height]);

This bug causes potential array out of bounds errors, as well as it returns the wrong pixel height.

…utionInKm which would result in possible incorrect ground resolution in the latitude dimension due to using wrong pixel.
@knowles knowles added the bug label Jul 10, 2026
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@knowles
knowles requested a review from TomBlock July 10, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants