Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to jts 1.16.0 and protobuf-java 3.6.1 #44

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: java
jdk:
- oraclejdk8
- openjdk8
install: true
script: mvn clean test
cache:
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.5.1</version>
<version>3.6.1</version>
</dependency>

<!-- Geometry model -->
<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
<version>1.15.1</version>
<version>1.16.0</version>
</dependency>

<!-- Testing -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
public final class MvtReaderTest {

private static final double DOUBLE_DELTA = 1e-10;

private static final int NUMBER_OF_DIMENSIONS = 2;

private static final int SRID = 0;

@Test
public void testLayers() {
try {
Expand Down Expand Up @@ -147,11 +146,10 @@ private static JtsMvt loadMvt(String file,
new TagKeyValueMapConverter(),
ringClassifier);
}

private static GeometryFactory createGeometryFactory() {
final PrecisionModel precisionModel = new PrecisionModel();
final PackedCoordinateSequenceFactory coordinateSequenceFactory =
new PackedCoordinateSequenceFactory(PackedCoordinateSequenceFactory.DOUBLE, NUMBER_OF_DIMENSIONS);
final PackedCoordinateSequenceFactory coordinateSequenceFactory = new PackedCoordinateSequenceFactory();
return new GeometryFactory(precisionModel, SRID, coordinateSequenceFactory);
}
}