Support more region utils, such as convex hull

This commit is contained in:
WQY\qiong
2023-04-29 19:15:34 +08:00
parent 538284f502
commit 04a3d0057e
7 changed files with 126 additions and 29 deletions

View File

@@ -939,6 +939,15 @@ def clean_scada_element(name: str) -> ChangeSet:
# region_util 32
############################################################
def get_nodes_in_boundary(name: str, boundary: list[tuple[float, float]]) -> list[str]:
return api.get_nodes_in_boundary(name, boundary)
def get_nodes_in_region(name: str, id: str) -> list[str]:
return api.get_nodes_in_region(name, id)
def calculate_convex_hull(name: str, nodes: list[str]) -> list[tuple[float, float]]:
return api.calculate_convex_hull(name, nodes)
############################################################
# general_region 33