Created
November 22, 2013 17:53
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TiledRaster.java