kopia lustrzana https://github.com/onthegomap/planetiler
fix center coordinates of pmtiles writer (#769)
rodzic
3dea746ff0
commit
a233e683bd
|
@ -199,8 +199,8 @@ public final class WriteablePmtiles implements WriteableTileArchive {
|
||||||
(int) (bounds.getMaxX() * 10_000_000),
|
(int) (bounds.getMaxX() * 10_000_000),
|
||||||
(int) (bounds.getMaxY() * 10_000_000),
|
(int) (bounds.getMaxY() * 10_000_000),
|
||||||
(byte) zoom,
|
(byte) zoom,
|
||||||
(int) center.x * 10_000_000,
|
(int) (center.x * 10_000_000),
|
||||||
(int) center.y * 10_000_000
|
(int) (center.y * 10_000_000)
|
||||||
);
|
);
|
||||||
|
|
||||||
LOGGER.info("Writing metadata and leaf directories...");
|
LOGGER.info("Writing metadata and leaf directories...");
|
||||||
|
|
|
@ -54,13 +54,13 @@ class PmtilesTest {
|
||||||
Pmtiles.TileType tileType = Pmtiles.TileType.MVT;
|
Pmtiles.TileType tileType = Pmtiles.TileType.MVT;
|
||||||
byte minZoom = 1;
|
byte minZoom = 1;
|
||||||
byte maxZoom = 3;
|
byte maxZoom = 3;
|
||||||
int minLonE7 = -10_000_000;
|
int minLonE7 = -10_100_000;
|
||||||
int minLatE7 = -20_000_000;
|
int minLatE7 = -20_200_000;
|
||||||
int maxLonE7 = 10_000_000;
|
int maxLonE7 = 10_100_000;
|
||||||
int maxLatE7 = 20_000_000;
|
int maxLatE7 = 20_200_000;
|
||||||
byte centerZoom = 2;
|
byte centerZoom = 2;
|
||||||
int centerLonE7 = -5_000_000;
|
int centerLonE7 = -5_500_000;
|
||||||
int centerLatE7 = -6_000_000;
|
int centerLatE7 = -6_600_000;
|
||||||
|
|
||||||
Pmtiles.Header in = new Pmtiles.Header(
|
Pmtiles.Header in = new Pmtiles.Header(
|
||||||
specVersion,
|
specVersion,
|
||||||
|
@ -220,8 +220,8 @@ class PmtilesTest {
|
||||||
"MyVersion",
|
"MyVersion",
|
||||||
"baselayer",
|
"baselayer",
|
||||||
TileArchiveMetadata.MVT_FORMAT,
|
TileArchiveMetadata.MVT_FORMAT,
|
||||||
new Envelope(1, 2, 3, 4),
|
new Envelope(1.1, 2.2, 3.3, 4.4),
|
||||||
new CoordinateXY(5, 6),
|
new CoordinateXY(5.5, 6.6),
|
||||||
7d,
|
7d,
|
||||||
8,
|
8,
|
||||||
9,
|
9,
|
||||||
|
|
Ładowanie…
Reference in New Issue