Use fnv1a64 for tile hash (#253)

This commit is contained in:
Michael Barry
2022-06-04 02:44:49 +02:00
committed by lazaa32
parent 0c3176ded3
commit a421027ef6

View File

@@ -11,7 +11,7 @@ import com.onthegomap.planetiler.mbtiles.TileEncodingResult;
import java.io.IOException; import java.io.IOException;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.OptionalInt; import java.util.OptionalLong;
import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@@ -53,7 +53,7 @@ class VerifyMonacoTest {
VectorTile.encodeGeometry(point(0, 0)), VectorTile.encodeGeometry(point(0, 0)),
Map.of() Map.of()
))); )));
writer.write(new TileEncodingResult(TileCoord.ofXYZ(0, 0, 0), gzip(tile.encode()), OptionalInt.empty())); writer.write(new TileEncodingResult(TileCoord.ofXYZ(0, 0, 0), gzip(tile.encode()), OptionalLong.empty()));
} }
assertInvalid(mbtiles); assertInvalid(mbtiles);
} }