Does “Circle(px,py d=d)” syntax for geospatial data dropped in Solr6? Since when and why?

守給你的承諾、 提交于 2019-12-12 02:18:51

问题


we're using Solr in our service. Recently, we're working on upgrading Solr to Solr6 & spatial4j-v0.6. But we faced that geospatial data cannot be fed, it's rejected, that has syntax like Circle(lat, lon, d=d).

It seems the syntax is dropped from Solr, but is it really dropped? Since when and why?? I couldn't find official statement that they dropped this syntax.

As for now, I find an option format=LEGACY for the fieldType, then Solr accepting data. But, are there any recommended, proper way to do with Circle()? Should we move to WKT/GeoJSON?

<fieldType
 name="location_rpt" 
 class="solr.SpatialRecursivePrefixTreeFieldType"   
 spatialContextFactory="org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory"
 format="LEGACY"/>

来源:https://stackoverflow.com/questions/42429495/does-circlepx-py-d-d-syntax-for-geospatial-data-dropped-in-solr6-since-when

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!