Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 4 down vote accepted

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
share|improve this answer
    
Thanks Peter. Could not have been more obvious... – Jakub Nov 16 '10 at 13:48

You can use HasZ on IDEFeatureClass.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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