Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ private static Map<String, Geometry> loadStaticMap(String path, String keyField)

static Geometry getGeoJsonFromMap(String mapName, String key) {
return switch (mapName) {
case "CORAL_ATLAS" -> CORAL_ATLAS.get(key);
case "AUSTRALIAN_MARINE_PARKS" -> AUZ_MARINE_PARK.get(key);
case "ACA" -> CORAL_ATLAS.get(key);
case "AMP" -> AUZ_MARINE_PARK.get(key);
case "MEOW" -> MEOW.get(key);
default -> null;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ public void verifyIBoundaryFunctionWorks() throws IOException {
"ae86e2f5-eaaf-459e-a405-e654d85adb9c.json"
);
ResponseEntity<Collections> collections = testRestTemplate.exchange(
getBasePath() + "/collections?filter=INTERSECTS(geometry,IBOUNDARY('AUSTRALIAN_MARINE_PARKS','12'))",
getBasePath() + "/collections?filter=INTERSECTS(geometry,IBOUNDARY('AMP','12'))",
HttpMethod.GET,
null,
new ParameterizedTypeReference<>() {});
Expand All @@ -796,7 +796,7 @@ public void verifyIBoundaryFunctionWorks() throws IOException {
assertEquals("ae86e2f5-eaaf-459e-a405-e654d85adb9c", Objects.requireNonNull(collections.getBody()).getCollections().get(0).getId(), "id correct");

collections = testRestTemplate.exchange(
getBasePath() + "/collections?filter=INTERSECTS(geometry,IBOUNDARY('AUSTRALIAN_MARINE_PARKS','15'))",
getBasePath() + "/collections?filter=INTERSECTS(geometry,IBOUNDARY('AMP','15'))",
HttpMethod.GET,
null,
new ParameterizedTypeReference<>() {});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void testIBoundaryFunction() {
FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();

Expression func = ff.function("IBOUNDARY",
ff.literal("CORAL_ATLAS"),
ff.literal("ACA"),
ff.literal("1"));

Object geom = func.evaluate(null);
Expand All @@ -34,7 +34,7 @@ public void testIBoundaryFunction() {
@Test
public void testIBoundaryWithCQL() throws Exception {
// Parse full CQL2 string
String cql = "INTERSECTS(geometry, IBOUNDARY('CORAL_ATLAS', '1'))";
String cql = "INTERSECTS(geometry, IBOUNDARY('ACA', '1'))";
CQLToElasticFilterFactory<CQLFields> factory = new CQLToElasticFilterFactory<>(CQLCrsType.EPSG4326, CQLFields.class);
Filter filter = CompilerUtil.parseFilter(Language.ECQL, cql, factory);

Expand Down
Loading