rfairhur24

.Net Is Feature Class Z and M Enabled?

Discussion created by rfairhur24 on Nov 9, 2011
Latest reply on Nov 9, 2011 by rfairhur24
I need to be able to determine the same information that is made visible when a user opens the property window of a Feature Class.  The property windows knows whether to add Z and/or M properties to the tabs and pages if those options are enabled.  This works on a Feature Class with no features, so it has to be something that can be tracked from the feature class and its spatial reference.

I have used the IGeodataset interface to get access to the Feature Class spatial reference, but I do not know how to use that information to determine if Z and M options have been enabled.  The HasZPrecision and HasMPrecision seem to only return false for my data if both Z and M options are disabled.  If either is enabled, I seem to get true for both, even if one is disabled.  This may be due to the way the data was created intially, but I am not sure.  Nonetheless the properties for the feature classes I have tested correctly show only the properties for the option that is actually enabled.

Any ideas how to figure this out without having a feature of the feature class to query?  Basically how does the Feature Class property window know which checkbox was checked on the General tab concerning Z and M when there are no features in the Feature Class to query.  Thanks.

Outcomes