arcgis api 3.20如何向geometry中添加Z值
我想利用arcgis api向在arcgis server中发布的FeatureLayer中添加一个要素,就像这样
[{"geometry":{"rings":[[[113.38523742675781,36.71796569824219],[113.46351501464844,36.749551391601564],[113.49098083496094,36.584756469726564],[113.34815856933594,36.576516723632814],[113.38523742675781,36.71796569824219]]],"spatialReference":{"wkid":4326}},"attributes":{}}]
然而添加失败 返回了一个错误:Geometry does not have z-values or has null values.
我上网找了一下,发现是因为图层含有Z值而添加的Geometry不包含Z值
我试过向每个点坐标中加一个0值,但是还是添加不上,依然返回上面的错误
虽然可以通过arcmap将图层的Z值去掉
但是想问一下有没有办法利用arcgis api 3 向geometry中添加Z值 或者说 怎样添加要素到含有Z值的图层中?
[{"geometry":{"rings":[[[113.38523742675781,36.71796569824219],[113.46351501464844,36.749551391601564],[113.49098083496094,36.584756469726564],[113.34815856933594,36.576516723632814],[113.38523742675781,36.71796569824219]]],"spatialReference":{"wkid":4326}},"attributes":{}}]
然而添加失败 返回了一个错误:Geometry does not have z-values or has null values.
我上网找了一下,发现是因为图层含有Z值而添加的Geometry不包含Z值
我试过向每个点坐标中加一个0值,但是还是添加不上,依然返回上面的错误
虽然可以通过arcmap将图层的Z值去掉
但是想问一下有没有办法利用arcgis api 3 向geometry中添加Z值 或者说 怎样添加要素到含有Z值的图层中?
1 个回复
goldenlimit - Major in MIS and minor in GIS, graduated from University of Alabama. GIS is not a simply tool but a way of exploring the unknow
赞同来自:
要回复问题请先登录或注册