所以我有地理坐标,我想创建多边形字符串,我可以将其作为几何类型插入到Postgres中.我正在使用apache Nifi.
输入:
[
[
13,
52
],
[
13,
55
],
[
14,
15
]
]
预期输出:
POLYGON((13 52, 13 55, 14 15))
我try 了下面的颠簸,但没有成功:
[
{
"operation": "shift",
"spec": {
"*": {
"*": "[&1].[&0]"
}
}
},
{
"operation": "shift",
"spec": {
"*": {
"*": "&"
}
}
},
{
"operation": "modify-overwrite-beta",
"spec": {
"*": {
"*": "=join(' ',@(1,&))"
}
}
},
{
"operation": "modify-overwrite-beta",
"spec": {
"*": "=concat('POLYGON((',@(1,2),'))')"
}
}
]