【发布时间】:2019-03-29 09:07:56
【问题描述】:
将(空间)数据添加到 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)" }
]
}
【问题讨论】: