The JSON To Features tool fails and returns the error message, "Expected to find comma, colon or start of array; state : Empty; buffer : ��{" when run against a specific JSON file.
上次发布: September 22, 2021ArcGIS Pro
漏洞 ID 编号
BUG-000140402
已提交
June 2, 2021
上次修改时间
June 5, 2024
适用范围
ArcGIS Pro
找到的版本
2.8
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
These characters are not supported when the GeoJSON text is saved with the current encoding. Change the file encoding using a text editor like Notepad, select the Unicode encoding, and the operation can run successfully.
解决办法
Load the data into a FeatureSet, and export the data as an SDF file. Refer to https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html?highlight=from%20geojson#arcgis.features.FeatureSet.from_geojson for more information.
Export the SDF file to a feature class using the to_featureclass property. Refer to https://developers.arcgis.com/python/guide/introduction-to-the-spatially-enabled-dataframe/ for more information.