gpt4 book ai didi

python - geojson 到 Elasticsearch : Unable to Tessellate shape

转载 作者:行者123 更新时间:2023-12-02 23:09:01 24 4
gpt4 key购买 nike

我正在将一些 geojson 文件(大约 4000 ~ 5000 个多面特征)索引到 Elasticsearch 中。

这是映射

"mappings": {
"properties": {
"type": {
"type": "keyword"
},
"properties": {
"type": "object"
},
"geometry": {
"type": "geo_shape"
}
}
}

我的索引代码如下所示:

helpers.bulk(es, k, chunk_size=500, request_timeout=1000)

索引操作(在 block 中)被此错误消息停止:

{'type': 'mapper_parsing_exception', 'reason': 'failed to parse field [geometry] of type [geo_shape]', 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'Unable to Tessellate shape

这个错误的原因是什么?
我可以在索引 geojson 文件时忽略这个错误吗?

最佳答案

我查看了这个问题,发现多边形是有效的,并发现了 Lucene tessellator 中的一个错误。我打开了一个问题:

https://issues.apache.org/jira/browse/LUCENE-9417

修复就在这里:

https://github.com/apache/lucene-solr/pull/1614

关于python - geojson 到 Elasticsearch : Unable to Tessellate shape,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62256277/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com