Merge pull request '# Bugfix parcel updating' (#79) from master into Docker

Reviewed-on: SGD-Nord/konova#79
This commit is contained in:
Michel Peltriaux 2022-01-19 17:20:53 +01:00
commit f54ddeabfa

View File

@ -180,12 +180,15 @@ class ParcelWFSFetcher(AbstractWFSFetcher):
members = collection.get(
"wfs:member",
[],
None,
)
if len(members) > 1:
features += members
else:
features += [members]
if members is not None:
if len(members) > 1:
# extend feature list with found list of new feature members
features += members
else:
# convert single found feature member into list and extent feature list
features += [members]
if collection.get("@next", None) is not None:
start_index += self.count