-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for od_strategy_snap_all_side to exclude non-logical parts
fix for od_strategy_snap_all_side to exclude non-logical parts
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from brdr.aligner import Aligner | ||
from brdr.utils import get_oe_dict_by_ids | ||
from examples import show_map | ||
|
||
if __name__ == "__main__": | ||
# EXAMPLE to test the algorithm for erfgoedobject with relevant distance 0.2m and od_strategy SNAP_ALL_SIDE | ||
|
||
# Initiate brdr | ||
aligner = Aligner() | ||
# Load thematic data & reference data | ||
dict_theme = get_oe_dict_by_ids([206363], oetype='erfgoedobjecten') | ||
aligner.load_thematic_data_dict(dict_theme) | ||
aligner.load_reference_data_grb_actual(grb_type="adp", partition=1000) | ||
|
||
#RESULTS | ||
rel_dist = 0.2 | ||
dict_results_by_distance = {} | ||
#put resulting tuple in a dictionary | ||
dict_results_by_distance[rel_dist] = aligner.process_dict_thematic(rel_dist,2) | ||
aligner.export_results("output/") | ||
show_map(dict_results_by_distance, aligner.dict_thematic, aligner.dict_reference) |