<?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 Intersect fails with FeatureLayer with PolygonZ geometry in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/intersect-fails-with-featurelayer-with-polygonz/m-p/68620#M406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently changed a polygon feature class to be enabled for Z values. Thus the geometry type went from Polygon to PolygonZ.&amp;nbsp; I soon discovered that this broke some functionality in a custom AGX Add-In.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's some sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;// fLayer = this my polygon FeatureLayer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;// graphicGeo = this is&amp;nbsp; polygon Geometry from a graphic I drew, same coordinate system as fLayer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Filter sFilter = new Filter();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;sFilter.Geometry = graphicGeo ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;sFilter.SpatialSearchType = FilterSearchOptions.Intersects;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;RowCollection rCol = fLayer.Table.Search(sFilter);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Console.WriteLine( rCol.Count )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When fLayer is a Polygon, rCol.Count will return the number of rows as expected&lt;/P&gt;&lt;P&gt;When fLayer is a PolygonZ, rCol.Count will always return -1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Feb 2016 00:05:15 GMT</pubDate>
    <dc:creator>DavidHaines</dc:creator>
    <dc:date>2016-02-17T00:05:15Z</dc:date>
    <item>
      <title>Intersect fails with FeatureLayer with PolygonZ geometry</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/intersect-fails-with-featurelayer-with-polygonz/m-p/68620#M406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently changed a polygon feature class to be enabled for Z values. Thus the geometry type went from Polygon to PolygonZ.&amp;nbsp; I soon discovered that this broke some functionality in a custom AGX Add-In.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's some sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;// fLayer = this my polygon FeatureLayer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;// graphicGeo = this is&amp;nbsp; polygon Geometry from a graphic I drew, same coordinate system as fLayer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Filter sFilter = new Filter();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;sFilter.Geometry = graphicGeo ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;sFilter.SpatialSearchType = FilterSearchOptions.Intersects;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;RowCollection rCol = fLayer.Table.Search(sFilter);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Console.WriteLine( rCol.Count )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When fLayer is a Polygon, rCol.Count will return the number of rows as expected&lt;/P&gt;&lt;P&gt;When fLayer is a PolygonZ, rCol.Count will always return -1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 00:05:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/intersect-fails-with-featurelayer-with-polygonz/m-p/68620#M406</guid>
      <dc:creator>DavidHaines</dc:creator>
      <dc:date>2016-02-17T00:05:15Z</dc:date>
    </item>
  </channel>
</rss>

