diff --git a/java/src/main/java/uk/ac/ceh/gateway/catalogue/quality/GeminiMetadataQualityService.java b/java/src/main/java/uk/ac/ceh/gateway/catalogue/quality/GeminiMetadataQualityService.java index e39f538d5..c383ef1d5 100644 --- a/java/src/main/java/uk/ac/ceh/gateway/catalogue/quality/GeminiMetadataQualityService.java +++ b/java/src/main/java/uk/ac/ceh/gateway/catalogue/quality/GeminiMetadataQualityService.java @@ -486,8 +486,8 @@ List checkInspireThemes(DocumentContext parsed) { } List checkSpatialResolutions(DocumentContext parsed) { - val spatialReferenceTypes = parsed.read("$.spatialReferenceTypes", new TypeRef>() {}); - if (spatialReferenceTypes != null && spatialReferenceTypes.stream().noneMatch(type -> type.equals("grid") || type.equals("vector"))) { + val spatialRepresentationTypes = parsed.read("$.spatialRepresentationTypes", new TypeRef>() {}); + if (spatialRepresentationTypes != null && spatialRepresentationTypes.stream().noneMatch(type -> type.equals("grid") || type.equals("vector"))) { return Collections.emptyList(); } val spatialResolutions = parsed.read("$.spatialResolutions[*]", typeRefStringString);