2

I would like to be able to determine whether a feature class passed to a procedure is a 3D feature class (hasZ) or not. How can I do this in VB .Net & ArcObjects?

2 Answers 2

6

Check the geometrydef of the Shape field

Dim field as IField
set field = = class.Fields.get_Field(class.Fields.FindField(class.ShapeFieldName))
hasz = field.GeometryDef.HasZ
0
2

You can use HasZ on IDEFeatureClass.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.