From 991f99e6c7f98d7febc94f3a9d38065cfb146d17 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 27 Sep 2023 18:34:45 +0200 Subject: =?UTF-8?q?Search=20filter:=20skip=20=E2=80=98not=20rediscovered?= =?UTF-8?q?=20observations=E2=80=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “Indicates if this observation is a not rediscovered observation. "Not rediscovered observation" is an observation that says that the specified species was not found in a location where it has previously been observed.” — https://github.com/biodiversitydata-se/SOS/blob/master/Docs/SearchFilter.md#notrecovered-filter --- gis-observation-map | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gis-observation-map') diff --git a/gis-observation-map b/gis-observation-map index 1693ed4..19dabd3 100755 --- a/gis-observation-map +++ b/gis-observation-map @@ -386,7 +386,7 @@ def getObservations(taxonLists, taxonRedlistCategories, data): json.dump(obs, fp, indent=2, ensure_ascii=False) if projectInstance is not None: - layer = QgsVectorLayer(path.as_posix() + '''|subset="Kingdom" IN ('Fungi', 'Plantae') AND "IsPositiveObservation" AND "IsNaturalOccurrence" AND "CoordinateUncertaintyInMeters" <= 250''', path.stem, 'ogr') + layer = QgsVectorLayer(path.as_posix() + '''|subset="Kingdom" IN ('Fungi', 'Plantae') AND "IsPositiveObservation" AND "IsNaturalOccurrence" AND NOT "IsNotRediscoveredObservation" AND "CoordinateUncertaintyInMeters" <= 250''', path.stem, 'ogr') if not layer.isValid(): raise Exception(f'ERROR: {path}: failed to load in QGIS') if 'QGIS' in config.keys() and 'style' in config['QGIS']: @@ -522,7 +522,7 @@ taxonLists, taxonRedlistCategories = getTaxonLists() searchFilter = { 'geographics': geograficsFilter, 'determinationFilter': 'NoFilter', - 'notRecoveredFilter': 'NoFilter', + 'notRecoveredFilter': 'DontIncludeNotRecovered', 'occurrenceStatus': 'Present', 'verificationStatus': 'BothVerifiedAndNotVerified', 'output': { -- cgit v1.2.3