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 halestudio#1084
  • Loading branch information
emanuelaepure10 committed May 29, 2024
1 parent 03b2bf5 commit 8822bbc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ 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) {

if (ignoreNumberMatched || primordialQueryParams.containsKey("RESOLVEDEPTH")) {
hits = UNKNOWN_SIZE;
}
else {
Expand Down Expand Up @@ -635,4 +636,4 @@ public void skip() {

}

}
}

0 comments on commit 8822bbc

Please sign in to comment.