Patch FPs for origin in desc
This commit is contained in:
parent
78b01a5751
commit
480c5b1c5f
@ -20,6 +20,16 @@ def _feature_profiles(**kwargs):
|
|||||||
return sap.feature_profiles(**kwargs)
|
return sap.feature_profiles(**kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
def _origin_profile(image, name):
|
||||||
|
return sap.Profiles([image], [{
|
||||||
|
'attribute': 'Origin',
|
||||||
|
'filtering rule': None,
|
||||||
|
'name': 'copy',
|
||||||
|
'out feature': 'altitude',
|
||||||
|
'profiles': [{'operation': 'copy feature altitude'}],
|
||||||
|
'tree': {'adjacency': None, 'image_hash': None, 'image_name': name}}])
|
||||||
|
|
||||||
|
|
||||||
def run(gt, rasters, coords, remove, attributes, adjacency=4,
|
def run(gt, rasters, coords, remove, attributes, adjacency=4,
|
||||||
feature='same', filtering='direct'):
|
feature='same', filtering='direct'):
|
||||||
X = []
|
X = []
|
||||||
@ -31,6 +41,7 @@ def run(gt, rasters, coords, remove, attributes, adjacency=4,
|
|||||||
# Compute EAP
|
# Compute EAP
|
||||||
eap = []
|
eap = []
|
||||||
for name, raster in rastersi.items():
|
for name, raster in rastersi.items():
|
||||||
|
eap += [_origin_profile(raster, name)]
|
||||||
eap += [_feature_profiles(image=raster,
|
eap += [_feature_profiles(image=raster,
|
||||||
attribute=attributes,
|
attribute=attributes,
|
||||||
adjacency=adjacency,
|
adjacency=adjacency,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user