Skip to content

Commit

Permalink
Move pmtiles classes in dedicated module
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed May 15, 2024
1 parent 54a48e2 commit 1b3930c
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 9 deletions.
4 changes: 4 additions & 0 deletions baremaps-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ limitations under the License.
<groupId>org.apache.baremaps</groupId>
<artifactId>baremaps-openstreetmap</artifactId>
</dependency>
<dependency>
<groupId>org.apache.baremaps</groupId>
<artifactId>baremaps-pmtiles</artifactId>
</dependency>
<dependency>
<groupId>org.apache.baremaps</groupId>
<artifactId>baremaps-testing</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.List;
import java.util.Optional;
import org.apache.baremaps.maplibre.tileset.Tileset;
import org.apache.baremaps.pmtiles.PMTilesWriter;
import org.apache.baremaps.tilestore.TileCoord;
import org.apache.baremaps.tilestore.TileStore;
import org.apache.baremaps.tilestore.TileStoreException;
Expand Down
20 changes: 20 additions & 0 deletions baremaps-pmtiles/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.baremaps</groupId>
<artifactId>baremaps</artifactId>
<version>0.7.4-SNAPSHOT</version>
</parent>
<artifactId>baremaps-pmtiles</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.baremaps</groupId>
<artifactId>baremaps-testing</artifactId>
</dependency>
<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.baremaps.tilestore.pmtiles;
package org.apache.baremaps.pmtiles;

import java.io.*;
import java.util.zip.GZIPInputStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.baremaps.tilestore.pmtiles;
package org.apache.baremaps.pmtiles;

class Directories {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.baremaps.tilestore.pmtiles;
package org.apache.baremaps.pmtiles;

class Entry {
private long tileId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.baremaps.tilestore.pmtiles;
package org.apache.baremaps.pmtiles;

import java.util.Objects;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.baremaps.tilestore.pmtiles;
package org.apache.baremaps.pmtiles;

import com.google.common.math.LongMath;
import java.io.ByteArrayOutputStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.baremaps.tilestore.pmtiles;
package org.apache.baremaps.pmtiles;

import com.google.common.io.LittleEndianDataInputStream;
import java.io.ByteArrayInputStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.baremaps.tilestore.pmtiles;
package org.apache.baremaps.pmtiles;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.hash.Hashing;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.baremaps.tilestore.pmtiles;
package org.apache.baremaps.pmtiles;

enum TileType {
unknown,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.baremaps.tilestore.pmtiles;
package org.apache.baremaps.pmtiles;

import static org.junit.jupiter.api.Assertions.*;

Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ limitations under the License.
<module>baremaps-data</module>
<module>baremaps-maplibre</module>
<module>baremaps-openstreetmap</module>
<module>baremaps-pmtiles</module>
<module>baremaps-server</module>
<module>baremaps-testing</module>
</modules>
Expand Down Expand Up @@ -242,6 +243,11 @@ limitations under the License.
<artifactId>baremaps-openstreetmap</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.apache.baremaps</groupId>
<artifactId>baremaps-pmtiles</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.apache.baremaps</groupId>
<artifactId>baremaps-server</artifactId>
Expand Down

0 comments on commit 1b3930c

Please sign in to comment.