We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 491e71f + c2f4468 commit 2bee4feCopy full SHA for 2bee4fe
src/main/java/mil/nga/geopackage/tiles/TileBoundingBoxUtils.java
@@ -443,6 +443,18 @@ public static int tilesPerSide(int zoom) {
443
return (int) Math.pow(2, zoom);
444
}
445
446
+ /**
447
+ * Get the standard y tile location as TMS
448
+ * @param zoom
449
+ * @param y
450
+ * @return
451
+ */
452
+ public static int getYAsTMS(int zoom, int y){
453
+ int tilesPerSide = tilesPerSide(zoom);
454
+ int tmsY = tilesPerSide - y - 1;
455
+ return tmsY;
456
+ }
457
+
458
/**
459
* Get the zoom level from the tiles per side
460
*
0 commit comments