<?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 Re: Programmatically check if FeatureClass accepts Multipart geometries in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157597#M4147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Without seeing your code there's not much I can do.&amp;nbsp; Be sure to use the CODE tags when posting your code (the # button on the toolbar) so that it formats correctly and is easier to read.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2012 19:16:03 GMT</pubDate>
    <dc:creator>NeilClemmons</dc:creator>
    <dc:date>2012-06-27T19:16:03Z</dc:date>
    <item>
      <title>Programmatically check if FeatureClass accepts Multipart geometries</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157592#M4142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm inserting geometries into a FeatureClass that doesn't support Multipart and it send an Exception, "not supported shape"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know if a FeatureClass supports or not Multipart before inserting to correctly handle the Exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 17:01:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157592#M4142</guid>
      <dc:creator>DiegoIvan_Ordonez</dc:creator>
      <dc:date>2012-06-27T17:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically check if FeatureClass accepts Multipart geometries</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157593#M4143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That isn't entirely accurate.&amp;nbsp; The problem isn't that the geometry is multi-part; it's that the geometry type is incorrect.&amp;nbsp; For example, if the feature class is a Polyline class then you can insert any geometry as long as it implements IPolyline.&amp;nbsp; It doesn't matter how many segments the polyline contains or if the segments are not all connected (i.e. it's a multi-part polyline).&amp;nbsp; You can't, however, insert a Line, EllipticArc, CircularArc, or one of the other line type geometries.&amp;nbsp; It has to be IPolyline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can check the geometry type expected by the feature class via IFeatureClass.ShapeType.&amp;nbsp; Here is a breakdown of some common scenarios:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esriGeometryPoint - geometry must implement IPoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esriGeometryMultiPoint - geometry must implement IMultiPoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esriGeometryPolyline - geometry must implement IPolyline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esriGeometryPolygon - geometry must implement IPolygon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 18:01:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157593#M4143</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-06-27T18:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically check if FeatureClass accepts Multipart geometries</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157594#M4144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your rapid response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But anyway i would like to know how to check if a FeatureClass accepts or not Multi-part features.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 18:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157594#M4144</guid>
      <dc:creator>DiegoIvan_Ordonez</dc:creator>
      <dc:date>2012-06-27T18:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically check if FeatureClass accepts Multipart geometries</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157595#M4145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There's no such thing as a feature class that doesn't accept multi-part geometries, with the exception of a Point feature class (IPoint geometries cannot have more than one point).&amp;nbsp; Please reread my post.&amp;nbsp; Perhaps you should post your code and show what you're trying to do.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 18:20:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157595#M4145</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-06-27T18:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically check if FeatureClass accepts Multipart geometries</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157596#M4146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a FeatureClass having "Line" shape column called REFERENCE_L&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm inserting the boundaries of a Polygon feature Class (HYDRO_AREA) into that Feature Class REFERENCE_L and everything goes well until i get one Multipart feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I detect this multipart feature within this sentence:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (CType(_itfFeatrSourc.ShapeCopy, IGeometryCollection).GeometryCount &amp;gt; 1) Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim esritype1 As esriGeometryType = _itfFeatrSourc.Shape.GeometryType&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' It is Multipart&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the esritype1 variable gets the value : esriGeometryPolygon {4}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After that i get the boundary of the polygon using the &lt;/SPAN&gt;&lt;STRONG&gt;ITopologicalOperator.Boundary&lt;/STRONG&gt;&lt;SPAN&gt; and it returns an esriGeometryPolyline {3}, but when i try to insert that into the Line FeatureClass it send the message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Shapes of this entity type not allowed in this layer [SHAPE]"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Diego&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 19:07:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157596#M4146</guid>
      <dc:creator>DiegoIvan_Ordonez</dc:creator>
      <dc:date>2012-06-27T19:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically check if FeatureClass accepts Multipart geometries</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157597#M4147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Without seeing your code there's not much I can do.&amp;nbsp; Be sure to use the CODE tags when posting your code (the # button on the toolbar) so that it formats correctly and is easier to read.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 19:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-check-if-featureclass-accepts/m-p/157597#M4147</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-06-27T19:16:03Z</dc:date>
    </item>
  </channel>
</rss>

