Arcgis+c#开发中,异常信息为:The operation cannot be performed on a non-simple geometry,请问下怎么解决呢?

执行到报异常的语句为:byte[] geoBytes = factory.CreateWkbVariantFromGeometry((IGeometry)polyline) as byte[];
已邀请:

朱新颖

赞同来自:

应该是Polyline有几何错误,建议将该线添加到ArcMap中看下是否可以正常显示,用Check Geometry工具检查下是否有错误。

要回复问题请先登录注册