@@ -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