2. # 计算几何¶
## 参数
名称 |
类型 |
是否必传 |
备注 |
host |
string |
Y |
postgre的ip路径 |
database |
string |
Y |
数据库名称 |
user |
string |
Y |
用户名 |
password |
string |
Y |
密码 |
port |
string |
Y |
端口 |
fieldName |
string |
Y |
字段名称 |
fieldType |
string |
Y |
字段类型 |
dataTable01 |
string |
Y |
输入表一的名称 |
property |
string |
Y |
所求的几何属性,目前只做了计算面积功能,后续补充其他几何属性;并且前端需要判断数据源的坐标为投影坐标才能进行面积计算 |
outputTable |
string |
Y |
输出结果的表名 |
unit |
string |
Y |
计算单位 |
defRunner |
string |
Y |
执行引擎 |
## 返回
名称 |
类型 |
是否必传 |
备注 |
result |
Row |
Y |
所有相交要素的连接字段、要素WKT以及相关的要素长度、面积 |
## 算法入口及参数
名称 |
示例 |
备注 |
args[0] |
localhost |
postgre的ip路径 |
args[1] |
5432 |
端口 |
args[2] |
postgis_25_sample |
数据库名称 |
args[3] |
postgres |
用户名 |
args[4] |
kiwi |
密码 |
args[5] |
area |
字段名称 |
args[6] |
double |
字段类型 |
args[7] |
land2018 |
输入表一的名称 |
args[8] |
area |
所求的几何属性 |
args[9] |
test |
输出结果的表名 |
args[10] |
Square Kilometer |
计算单位 |
args[11] |
SparkRunner |
执行引擎 |