AnsweredAssumed Answered

ShapeType constant values for Polygons

Question asked by dorisriedl on Jun 5, 2012
Latest reply on Jun 5, 2012 by dorisriedl
I tried to query if a FeatureClass is of type polygon:

[INDENT][/INDENT]if (pFC.getShapeType() == esriShapeType.esriShapePolygon || pFC.getShapeType() == esriShapeType.esriShapePolygonZ) { ... }

but this doesn't seem to work. Is it possible that there is an error in the esriShapeType constants (which should be 5 for polygons and 19 for polygonZ)? Because when I show them via a MessageDialog
[INDENT][/INDENT]JOptionPane.shwoMessageDialog(null, pFC.getShapeType());
the output for Polygons is always 4.

The esriShapeType constants for point and polyline work all right.

Any hints?

Outcomes