diff --git a/src/main/java/com/conveyal/r5/common/GeometryUtils.java b/src/main/java/com/conveyal/r5/common/GeometryUtils.java index c41eef536..d6760edf6 100644 --- a/src/main/java/com/conveyal/r5/common/GeometryUtils.java +++ b/src/main/java/com/conveyal/r5/common/GeometryUtils.java @@ -23,8 +23,8 @@ public class GeometryUtils { /** Average of polar and equatorial radii, https://en.wikipedia.org/wiki/Earth */ public static final double RADIUS_OF_EARTH_M = 6_367_450; - /** Maximum area allowed for the bounding box of uploaded files -- large enough for California. */ - private static final double MAX_BOUNDING_BOX_AREA_SQ_KM = 975_000; + /** Maximum area allowed for the bounding box of uploaded files -- large enough for Earth. */ + private static final double MAX_BOUNDING_BOX_AREA_SQ_KM = 510_073_000; /** * Haversine formula for distance on the sphere. We used to have a fastDistance function that would estimate this diff --git a/src/test/java/com/conveyal/analysis/datasource/SpatialDataSourceIngesterTest.java b/src/test/java/com/conveyal/analysis/datasource/SpatialDataSourceIngesterTest.java index e32cdf9d9..0ddfa41e2 100644 --- a/src/test/java/com/conveyal/analysis/datasource/SpatialDataSourceIngesterTest.java +++ b/src/test/java/com/conveyal/analysis/datasource/SpatialDataSourceIngesterTest.java @@ -59,12 +59,12 @@ void basicValid (FileStorageFormat format) { } } - /** Test on files containing huge shapes: the continents of Africa, South America, and Australia. */ - @ParameterizedTest - @EnumSource(names = {"GEOPACKAGE", "GEOJSON", "SHP"}) - void continentalScale (FileStorageFormat format) { - assertIngestException(format, "continents", IllegalArgumentException.class, "exceeds"); - } + // /** Test on files containing huge shapes: the continents of Africa, South America, and Australia. */ + // @ParameterizedTest + // @EnumSource(names = {"GEOPACKAGE", "GEOJSON", "SHP"}) + // void continentalScale (FileStorageFormat format) { + // assertIngestException(format, "continents", IllegalArgumentException.class, "exceeds"); + // } /** * Test on projected (non-WGS84) data containing shapes on both sides of the 180 degree antimeridian.