private static TileCoord getResultCoord(ResultSet rs) throws SQLException {
    int z = rs.getInt(TILES_COL_Z);
    int rawy = rs.getInt(TILES_COL_Y);
    int x = rs.getInt(TILES_COL_X);
    return TileCoord.ofXYZ(x, (1 << z) - 1 - rawy, z);
  }
Returns a new connection to an mbtiles file optimized for reads with extra mbtiles and pragma options set from
{@code options}.
planetiler-core/src/main/java/com/onthegomap/planetiler/mbtiles/Mbtiles.java