将(空间)数据添加到 GeoMesa/Accumulo 堆栈的最佳方法是什么?
(1) 如果我理解正确,应该创建一个 SimpleFeature 创建文件和转换器文件以添加数据。数据本身存储为 CSV。我是否正确,我们必须为我们希望添加的每个 CSV 构建这些文件?
(2) 下面的例子正确吗?例如,CSV 文件中的几何图形存储如下。“多行字符串((2.0116069 48.9172785,2.0116474 48.9172131,2.0117161 48.917135,2.011814 48.9170714,2.0118996 48.9170489))”
(3)我们如何将这些转换器文件添加到将数据添加到GeoMesa/Accumulo堆栈的过程中?
最后的目标是有一个(简单的)过程来将数据添加到堆栈中,并在下一步中通过地理服务器打开数据。
欢迎任何形式的帮助。提前致谢。
简单的特征创建文件:
geomesa.sfts.links_geom = {
attributes = [
{ name = "id", type = "Long" }
{ name = "length", type = "Float" }
{ name = "number", type = "Integer" }
...
{ name = "geom", type = "MultiLineString", srid = 4326 }
]
} ```
Converter file:
geomesa.converters.links_geom = {
type = "delimited-text",
format = "CSV",
id-field = "toString($id)",
fields = [
{ name = "id", transform = "$1::long" }
{ name = "length", transform = "$2::float" }
{ name = "number", transform = "$3::int" }
...
{ name = "geom", transform = "multilinestring($11)" }
]
}