Skip to content

Instantly share code, notes, and snippets.

@hallahan
Created November 22, 2013 17:53
Show Gist options
  • Save hallahan/7604087 to your computer and use it in GitHub Desktop.
Save hallahan/7604087 to your computer and use it in GitHub Desktop.
Putting the ! there actually makes sense with the wording in the logic, because the else statement has the var googleRowNumber, and the row number is indeed a google row, not a TMS row.
if (!isTMSstructure) {
imgName = imageFile.getName();
} else {
int zoom = Integer.parseInt(resultZoomDirectory.getName());
int googleRowNumber = Integer.parseInt(FileUtils.getFileNameWithoutExtension(imageFile.getName()));
imgName = String.valueOf(
(int) (Math.pow(2, zoom) - 1 - googleRowNumber)) + "." + FileUtils.getFileExtension(imageFile.getName());
}
@hallahan
Copy link
Author

TiledRaster.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment