Skip to content

Commit

Permalink
Merge branch 'emc-177-fix-spatialrepresentationtypes' into 'develop'
Browse files Browse the repository at this point in the history
GeminiMetadataQualityService: Fix spatial resolutions check

See merge request eip/catalogue!742
  • Loading branch information
joncooper65 committed Oct 15, 2024
2 parents 95fb505 + a8ae54e commit f71832d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ List<MetadataCheck> checkInspireThemes(DocumentContext parsed) {
}

List<MetadataCheck> checkSpatialResolutions(DocumentContext parsed) {
val spatialReferenceTypes = parsed.read("$.spatialReferenceTypes", new TypeRef<List<String>>() {});
if (spatialReferenceTypes != null && spatialReferenceTypes.stream().noneMatch(type -> type.equals("grid") || type.equals("vector"))) {
val spatialRepresentationTypes = parsed.read("$.spatialRepresentationTypes", new TypeRef<List<String>>() {});
if (spatialRepresentationTypes != null && spatialRepresentationTypes.stream().noneMatch(type -> type.equals("grid") || type.equals("vector"))) {
return Collections.emptyList();
}
val spatialResolutions = parsed.read("$.spatialResolutions[*]", typeRefStringString);
Expand Down

0 comments on commit f71832d

Please sign in to comment.