<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic .Net Is Feature Class Z and M Enabled? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/net-is-feature-class-z-and-m-enabled/m-p/451627#M12270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&amp;nbsp; The property windows knows whether to add Z and/or M properties to the tabs and pages if those options are enabled.&amp;nbsp; 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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&amp;nbsp; The HasZPrecision and HasMPrecision seem to only return false for my data if both Z and M options are disabled.&amp;nbsp; If either is enabled, I seem to get true for both, even if one is disabled.&amp;nbsp; This may be due to the way the data was created intially, but I am not sure.&amp;nbsp; Nonetheless the properties for the feature classes I have tested correctly show only the properties for the option that is actually enabled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas how to figure this out without having a feature of the feature class to query?&amp;nbsp; 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.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2011 16:42:26 GMT</pubDate>
    <dc:creator>RichardFairhurst</dc:creator>
    <dc:date>2011-11-09T16:42:26Z</dc:date>
    <item>
      <title>.Net Is Feature Class Z and M Enabled?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/net-is-feature-class-z-and-m-enabled/m-p/451627#M12270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&amp;nbsp; The property windows knows whether to add Z and/or M properties to the tabs and pages if those options are enabled.&amp;nbsp; 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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&amp;nbsp; The HasZPrecision and HasMPrecision seem to only return false for my data if both Z and M options are disabled.&amp;nbsp; If either is enabled, I seem to get true for both, even if one is disabled.&amp;nbsp; This may be due to the way the data was created intially, but I am not sure.&amp;nbsp; Nonetheless the properties for the feature classes I have tested correctly show only the properties for the option that is actually enabled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas how to figure this out without having a feature of the feature class to query?&amp;nbsp; 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.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 16:42:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/net-is-feature-class-z-and-m-enabled/m-p/451627#M12270</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2011-11-09T16:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Is Feature Class Z and M Enabled?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/net-is-feature-class-z-and-m-enabled/m-p/451628#M12271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The spatial reference of a feature class is not related to whether or not it has M or Z values.&amp;nbsp; M and Z values are part of the geometry definition for the class.&amp;nbsp; To determine if a feature class is M or Z enabled, you need to get the geometry definition (IGeometryDef) from its Shape field and check the HasM and HasZ properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim shapeFieldIndex As Int32 = featureClass.Fields.FindField(featureClass.ShapeFieldName)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim shapeField As IField = featureClass.Fields.Field(shapeFieldIndex)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim geometryDef As IGeometryDef = shapeField.GeometryDef&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim isMAware As Boolean = geometryDef.HasM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim isZAware As Boolean = geometryDef.HasZ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 17:52:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/net-is-feature-class-z-and-m-enabled/m-p/451628#M12271</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2011-11-09T17:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Is Feature Class Z and M Enabled?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/net-is-feature-class-z-and-m-enabled/m-p/451629#M12272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Neil.&amp;nbsp; Exactly what I was looking for.&amp;nbsp; I was unaware of those interfaces and properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All help searches I did hate specifying a single letter like Z or M as a search criteria (it either removed the letter from the criteria returned or any text with a Z or an M in it anywhere seems to come back).&amp;nbsp; HasZ would have worked, but it didn't occur to me that is what it would be named (quite a logical name though now that I know about it).&amp;nbsp; Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 17:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/net-is-feature-class-z-and-m-enabled/m-p/451629#M12272</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2011-11-09T17:59:36Z</dc:date>
    </item>
  </channel>
</rss>

