Typo in Point object under __geo_interface__ property for MultiPoint Geometries in "\\arcpy\arcpy\arcobjectsGeometries.py"
上次发布: August 25, 2014ArcGIS for Desktop
漏洞 ID 编号
NIM068898
已提交
June 2, 2011
上次修改时间
June 5, 2024
适用范围
ArcGIS for Desktop
找到的版本
10.0
操作系统
Windows OS
操作系统版本
XP 64 Bit
修正版本
10.1
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Change the __geo_interface__ property for the Multipoint class to the following: def __geo_interface__(self): return {'type': 'Multipoint', 'coordinates': [(pt.X, pt.Y) for pt in self]}