Skip to content

Commit

Permalink
fix: download linked objects in a WFS using "resolvedepth"
Browse files Browse the repository at this point in the history
Using "resolvedepth" when trying to download data via WFS is now downloading the linked objects.
As the requested hits to a WFS is better to be setup to UNKNOWN_SIZE if the WFS contains a "resolvedepth" parameter.

ING-4128
Closes #1084
  • Loading branch information
emanuelaepure10 committed May 28, 2024
1 parent 6b96ff9 commit 91bac9e
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,15 @@ public WfsBackedGmlInstanceCollection(LocatableInputSupplier<? extends InputStre
// Use primordial URI and issue "hits" request to check if the WFS will
// return anything at all
int hits;
if (ignoreNumberMatched) {
boolean isUsedresolvedepth = false;
for (NameValuePair nameValuePair : params) {
if ("resolvedepth".equalsIgnoreCase(nameValuePair.getName())) {
isUsedresolvedepth = true;
break;
}
}

if (ignoreNumberMatched || isUsedresolvedepth) {
hits = UNKNOWN_SIZE;
}
else {
Expand Down Expand Up @@ -635,4 +643,4 @@ public void skip() {

}

}
}

0 comments on commit 91bac9e

Please sign in to comment.