使用产品:iobjectspy11.1.1 操作系统:win11 x64
问题详细描述:想知道iobjectspy.data.DatasetVector类中get_field_values(fields)如何调用,iobjectspy 的API文档上没有详细说明,我调用的估计与预期用法不一致。
1、API文档中给出的说明
2、在代码中尝试调用
from iobjectspy import *
dv = DatasetVector.open("D:\SuperMap\datasource\监控点.udb")
fields_name = ["IndexCode", "POINT_X"]
array = dv.get_field_values(fields_name)
print(array)
报错内容:
Traceback (most recent call last):
File "C:\Python36\test\get_data.py", line 3, in <module>
dv = DatasetVector.open("D:\SuperMap\datasource\监控点.udb")
File "I:\teamctiy\BuildAgent\work\test_111x/iobjectspy/_jsuperpy\data\dt.py", line 184, in open
AttributeError: 'str' object has no attribute '_jobject'