Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/58.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch Elasticsearch地理空间地图,无法渲染线字符串_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Maps_Geospatial - Fatal编程技术网 elasticsearch Elasticsearch地理空间地图,无法渲染线字符串,elasticsearch,maps,geospatial,elasticsearch,Maps,Geospatial" /> elasticsearch Elasticsearch地理空间地图,无法渲染线字符串,elasticsearch,maps,geospatial,elasticsearch,Maps,Geospatial" />

elasticsearch Elasticsearch地理空间地图,无法渲染线字符串

elasticsearch Elasticsearch地理空间地图,无法渲染线字符串,elasticsearch,maps,geospatial,elasticsearch,Maps,Geospatial,elasticsearch索引包含json,如下所示,仅显示相关元素 "geoLocation": { "coordinates": [ [ -90.66487121582031, 42.49201965332031 ], [ -90.66487884521484, 42.49202346801758 ], [ -90.6648941040039, 42.492034912109375 ], [ -90.66490936279297, 42.492038

elasticsearch索引包含json,如下所示,仅显示相关元素

"geoLocation": { 
"coordinates": [ [ -90.66487121582031, 42.49201965332031 ], [ -90.66487884521484, 42.49202346801758 ], [ -90.6648941040039, 42.492034912109375 ], [ -90.66490936279297, 42.49203872680664 ], [ -90.66492462158203, 42.492042541503906 ], [ -90.6649398803711, 42.49204635620117 ], [ -90.66495513916016, 42.49205017089844 ], [ -90.66497039794922, 42.4920539855957 ], [ -90.66498565673828, 42.492061614990234 ], [ -90.66500854492188, 42.492061614990234 ], [ -90.66502380371094, 42.49207305908203 ], [ -90.6650390625, 42.4920654296875 ] ], 
"type": "linestring" 
},

生成映射的模板如下所示

PUT _template/template_1?include_type_name=true
{
  "index_patterns": ["metromind-its-alerts-day2-*"],
  "settings": {
    "number_of_shards": 2
  },
 "mappings": {
        "logs": {
            "properties": {
                "geoLocation": {
                    "type": "geo_shape"
                }
            }
        }
  }
}

生成的映射如下所示

使用Kibana贴图时,它会检测geo_形状


请注意,尽管没有渲染线串,但请建议分辨率

线串在那里,在Dubuque IL,只是它在地球的尺度上非常小

只需单击以下图标,弹性贴图将聚焦于此,您将看到:


elastic和kiibana“版本”:{“编号”:“7.6.1”}感谢您的回复,行在那里,我必须手动对焦位置,因为版本7.6.1自动对焦图标没有显示哦,是的,这很有意义!