【转】Geometry cannot have Z values

http://blog.csdn.net/tweeenty/article/details/44246407

在对矢量要素类添加要素,进行赋几何信息时(FeatureBuffer.Shape = IGeometry)可能会报Geometry cannot have Z values 的错误,原因是赋值的IGeometry的属性值 IZAware.ZAware=true的,所以在进行赋值导致信息的不匹配,出现错误;

在赋值时进行修正:

IGeometry ipGeometry = ipFeature.ShapeCopy;
IZAware ipZAware = ipGeometry as IZAware;
if (ipZAware.ZAware == true)
{
    ipZAware.ZAware = false;
}
ipFeatureBuffer.Shape = ipGeometry;

注:如果矢量要素类具有Z Coordinate System,在处理数据时,速度会受到很大的影响;我们可能通过GP工具中的Environments中的ZValues的选项来删除掉矢量要素类的这个属性

时间: 2024-10-15 07:37:15

【转】Geometry cannot have Z values的相关文章

爆出错误:The Geometry has no Z values

ArcGis添加地图标注,爆出错误:The Geometry has no Z values 解决方法如下: public bool AddFeature( ESRI.ArcGIS.Geometry.IGeometry geometry,System.Collections.Generic.Dictionary<string ,object> properties) { try { ESRI.ArcGIS.Geodatabase.IFeature feature = _featureLayer

报错&quot;the geometry has no Z values&quot;处理

from:http://blog.sina.com.cn/s/blog_6faf711d010138vq.html // <summary>/// 设置Z值和M值,解决The Geometry has no Z values错误        ///</summary>///<param name="pF">要素</param>///<param name="pGeo">几何</param>pu

The Geometry has no Z values 解决办法

from:http://dufan20086.blog.163.com/blog/static/6616452320145269343675/ 我们在创建要素时,简单的IFeatureClass.CreateFeature之后,然后把IGeometry对象赋给Feature.shape,会引发“The Geometry has no Z values”的错误提示.类似的错误在做地图标注过程中也会出现. 本文所采用的解决办法参考了网上的一些资料: http://blog.sina.com.cn/s

ArcEngine开发各种几何错误代码

E_GEOMETRY_AMBIGUOUSPARTTYPE?- Static variable in interface com.esri.arcgis.geometry.esriGeometryError (0x8004024c) The operation would result in the creation of a new part, but the type of part to be created was ambiguous. E_GEOMETRY_AUTHORITY_TOO_L

ArcEngine异常编码速查(转)

序号 错误代码 错误描述 错误名称 0 HRESULT:0x80040201 "Failed to load a resource (string, icon, bitmap, etc)." LOADING_RESOURCE 1. HRESULT:0x80040202 The index passed was not within the valid range. INDEX_OUT_OF_RANGE 2. HRESULT:0x80040203 The operation is not

Arcengine 开发,FeatureClass新增feature时“The Geometry has no z-value”或&quot;The Geometry has null z-value&quot;的解决方案

Arcengine 开发,当图层含有Z值时,新增的feature没有Z值就会 出现“The Geometry has no z-value”的错误.意思很明显,新增的geometry没有Z值. 此时按照常规想法,取出geometry的每个点,分别设置Z=0,理论可行,但实际调试过程中依然报“The Geometry has no z-value”. 可用解决方案如下: IGeometry geometry = feature.ShapeCopy; IZAware zAware = (IZAwar

create feature from text file

'''---------------------------------------------------------------------------------- Tool Name: CreateFeaturesFromTextFile Source Name: CreateFeaturesFromTextFile.py Version: ArcGIS 9.1 Author: Environmental Systems Research Institute Inc. Required

[原][译][osgearth]样式表style中参数总结(OE官方文档翻译)

几何Geometry 高度Altitude 挤压Extrusion 图标Icon 模型Model 渲染Render 皮肤Skin 文本Text 覆盖Coverage 提示: 在SDK中,样式表的命名空间是osgEarth::Symbology 每个符号类是在AltitudeSymbol中,属性通过LineSymbol::strokeWidth() 访问器可用 值类型 float: 实数 float with units: 有单位的实数, e.g. 20px (20 pixels) or 10m

[转]世界变换、观察变换、投影变换 矩阵

注:原方转自http://www.codinglabs.net/article_world_view_projection_matrix.aspx Introduction In this article we will try to understand in details one of the core mechanics of any 3D engine, the chain of matrix transformations that allows to represent a 3D