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 14c42217c2

View File

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