<?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 Call to Execute CountOverlappingFeatures Not Recognizing XY Tolerance Environment Value in C# in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-to-execute-countoverlappingfeatures-not/m-p/1301730#M9957</link>
    <description>&lt;P&gt;I'm trying to call CountOverlappingFeatures but it won't recognize the XYTolerance value I'm trying to pass in.&amp;nbsp; I want to use the tolerance value so that lines that are within a few meters of each other will be counted as overlapping.&amp;nbsp; When I use the geoprocessing tool independently with an XYTolerance of 15 Meters, it gives the expected results.&amp;nbsp; However, when I run it in c# with the tolerance, the tool executes, but it only counts features that are exactly overlapping, not nearby features.&amp;nbsp; &amp;nbsp;What am I doing wrong?&amp;nbsp; Below is a partial code snippet.&amp;nbsp; mylist is a list of Layers.&amp;nbsp; Also, this executes within an async method.&lt;BR /&gt;&lt;BR /&gt;var environment = Geoprocessing.MakeEnvironmentArray(XYTolerance: "15 Meters");&lt;/P&gt;&lt;P&gt;var outputfeatureclass =&amp;nbsp;@"memory\OverlappingLines";&lt;/P&gt;&lt;P&gt;var toolparameters = Geoprocessing.MakeValueArray(mylist, outputfeatureclass);&lt;/P&gt;&lt;P&gt;var future = Geoprocessing.ExecuteToolAsync("CountOverlappingFeatures_analysis", toolparameters, environment, null, null, GPExecuteToolFlags.AddOutputsToMap);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 20:05:51 GMT</pubDate>
    <dc:creator>MikeSayre</dc:creator>
    <dc:date>2023-06-21T20:05:51Z</dc:date>
    <item>
      <title>Call to Execute CountOverlappingFeatures Not Recognizing XY Tolerance Environment Value in C#</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-to-execute-countoverlappingfeatures-not/m-p/1301730#M9957</link>
      <description>&lt;P&gt;I'm trying to call CountOverlappingFeatures but it won't recognize the XYTolerance value I'm trying to pass in.&amp;nbsp; I want to use the tolerance value so that lines that are within a few meters of each other will be counted as overlapping.&amp;nbsp; When I use the geoprocessing tool independently with an XYTolerance of 15 Meters, it gives the expected results.&amp;nbsp; However, when I run it in c# with the tolerance, the tool executes, but it only counts features that are exactly overlapping, not nearby features.&amp;nbsp; &amp;nbsp;What am I doing wrong?&amp;nbsp; Below is a partial code snippet.&amp;nbsp; mylist is a list of Layers.&amp;nbsp; Also, this executes within an async method.&lt;BR /&gt;&lt;BR /&gt;var environment = Geoprocessing.MakeEnvironmentArray(XYTolerance: "15 Meters");&lt;/P&gt;&lt;P&gt;var outputfeatureclass =&amp;nbsp;@"memory\OverlappingLines";&lt;/P&gt;&lt;P&gt;var toolparameters = Geoprocessing.MakeValueArray(mylist, outputfeatureclass);&lt;/P&gt;&lt;P&gt;var future = Geoprocessing.ExecuteToolAsync("CountOverlappingFeatures_analysis", toolparameters, environment, null, null, GPExecuteToolFlags.AddOutputsToMap);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 20:05:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/call-to-execute-countoverlappingfeatures-not/m-p/1301730#M9957</guid>
      <dc:creator>MikeSayre</dc:creator>
      <dc:date>2023-06-21T20:05:51Z</dc:date>
    </item>
  </channel>
</rss>

