supermap iobject报错

0 投票
代码:        

         Feature pFeatute = recordset.getFeature();
        //获取Geometry对象
        Geometry pGeometry = pFeatute.getGeometry();
        GeoLine pLine = (GeoLine)pGeometry;

报错:

JRE version: Java(TM) SE Runtime Environment (8.0_281-b09) (build 1.8.0_281-b09)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.281-b09 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [SuGeometry.dll+0x4fc96]
#
# Core dump written. Default location: E:\Projects\hs_err_pid20100.mdmp
#
3月 22 分类:  136次浏览 | 用户: pon (8 分)

1个回答

0 投票
您可以直接对对recotdset使用相应的get方法获得获得GeoMetry,而不需要通过Feature转写。
3月 23 用户: 执笔画月 名扬四海 (1,747 分)
...