Geometry转Json时出现Cannot convert polylines or polygons with curves to json format错误,该如何解决?


 请问各位老师 我在arcSOE中 使用Convert.toJsonObject(geometry)时出现错误
Cannot convert polylines or polygons with curves to json format
geometry是一个buffer  应该buffer是有曲线不能转 ,但是这种曲线使用什么方法可以转成Json?  
已邀请:

朱新颖

赞同来自: 泡馍是甜的

json确实不支持真曲线类型的弧段,需要将曲线转换成折线。 转换方式1是可以将数据先导入shapefile,由于shapefile格式也不支持弧段,会自动转换为折线;2通过ao接口在弧段上增密点再转换成线段 3 用gp工具feature to json工具进行转换

曹琪

赞同来自:

好像用GP工具转也会有错误哦

要回复问题请先登录注册