Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/main/java/com/conveyal/r5/common/GeometryUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down