Skip to content

Commit 81d2ea9

Browse files
author
Nicholas A. Hunter
committed
Make default ring classifier RING_CLASSIFIER_V1
1 parent b800143 commit 81d2ea9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/java/com/wdtinc/mapbox_vector_tile/adapt/jts/MvtReader.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public final class MvtReader {
4747
public static JtsMvt loadMvt(File file,
4848
GeometryFactory geomFactory,
4949
ITagConverter tagConverter) throws IOException {
50-
return loadMvt(file, geomFactory, tagConverter, RING_CLASSIFIER_V2_1);
50+
return loadMvt(file, geomFactory, tagConverter, RING_CLASSIFIER_DEFAULT);
5151
}
5252

5353
/**
@@ -94,7 +94,7 @@ public static JtsMvt loadMvt(File file,
9494
public static JtsMvt loadMvt(InputStream is,
9595
GeometryFactory geomFactory,
9696
ITagConverter tagConverter) throws IOException {
97-
return loadMvt(is, geomFactory, tagConverter, RING_CLASSIFIER_V2_1);
97+
return loadMvt(is, geomFactory, tagConverter, RING_CLASSIFIER_DEFAULT);
9898
}
9999

100100
/**
@@ -477,6 +477,11 @@ public interface RingClassifier {
477477
*/
478478
public static final RingClassifier RING_CLASSIFIER_V2_1 = new PolyRingClassifierV2_1();
479479

480+
/**
481+
* Default ring classifier when it is not specified.
482+
*/
483+
private static final RingClassifier RING_CLASSIFIER_DEFAULT = RING_CLASSIFIER_V1;
484+
480485

481486
/**
482487
* Area from surveyor formula must be positive for exterior rings (but area check is flipped because MVT is Y-DOWN).

0 commit comments

Comments
 (0)