Skip to content

Commit

Permalink
Merge pull request #30 from PermafrostDiscoveryGateway/merge-neighbor…
Browse files Browse the repository at this point in the history
…-dedup

Merge neighbor dedup method
  • Loading branch information
julietcohen authored Sep 26, 2023
2 parents 7966fad + fb81322 commit 38c2c39
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions pdgstaging/ConfigManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,7 @@ class ConfigManager():
option. If 'neighbor', then the input data will be
deduplicated by removing nearby or overlapping polygons,
as determined by the 'deduplicate_centroid_tolerance' and
'deduplicate_overlap_tolerance' options. Note that with
release 0.9.0, the 'neighbor' method has been not been
thoroughly tested. Only the 'footprints' method has been
thoroughly tested and should be applied to input data,
as this release is tailored to a dataset that requires
this deduplication method.
'deduplicate_overlap_tolerance' options.
- deduplicate_keep_rules : list of tuple: []
Required for both deduplication methods. Rules that define
which of the polygons to keep when two or more are
Expand Down Expand Up @@ -300,9 +295,7 @@ class ConfigManager():
before calculating the distance between them.
centroid_tolerance will use the units of this CRS. Set to
None to skip the re-projection and use the CRS of the
GeoDataFrame. Note that with release 0.9.0,
the 'neighbor' method has been not been thoroughly tested
and should not be applied to input data.
GeoDataFrame.
- deduplicate_clip_to_footprint : bool, optional
For the 'footprints' deduplication method only. If True,
then polygons that fall outside the bounds of the
Expand Down Expand Up @@ -1324,9 +1317,6 @@ def get_deduplication_method(self):
"""
method = self.get('deduplicate_method')
if(method == 'neighbor'):
logger.warning(f"Deduplication method 'neighbors' has not been"
f"tested for release 0.9.0. Please use deduplication"
f"method 'footprints' or None for this release.")
return deduplicate_neighbors
if(method == 'footprints'):
return deduplicate_by_footprint
Expand Down

0 comments on commit 38c2c39

Please sign in to comment.