<?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 'Share a linesegment'-relationship for SpatialQueryFilter? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/share-a-linesegment-relationship-for/m-p/792602#M1628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I'm trying to find which two areas are divided by a boundary (having the areas and boundaries in two separate featureclasses). Since we have no access to MapTopology in the Pro API, I'm instead trying to do a Search using SpatialQueryFilter. When I run the Select Layer By Location-tool I can choose 'Share a linesegment with' as a relationship. However, this option is not available as a SpatialRelationship for the SpatialQueryFilter. The nearest option is Touches, but this also finds the areas touched by only the endpoint of the line. &lt;BR /&gt;&lt;BR /&gt;Does anyone have a solution for this? An other way of doing it? Or can I run the Select Layer By Location-tool from my code, and this will return the features I want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any input appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ståle,&lt;/P&gt;&lt;P&gt;Norwegian Mapping Authority.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jul 2019 12:47:13 GMT</pubDate>
    <dc:creator>StåleHaug</dc:creator>
    <dc:date>2019-07-10T12:47:13Z</dc:date>
    <item>
      <title>'Share a linesegment'-relationship for SpatialQueryFilter?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/share-a-linesegment-relationship-for/m-p/792602#M1628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I'm trying to find which two areas are divided by a boundary (having the areas and boundaries in two separate featureclasses). Since we have no access to MapTopology in the Pro API, I'm instead trying to do a Search using SpatialQueryFilter. When I run the Select Layer By Location-tool I can choose 'Share a linesegment with' as a relationship. However, this option is not available as a SpatialRelationship for the SpatialQueryFilter. The nearest option is Touches, but this also finds the areas touched by only the endpoint of the line. &lt;BR /&gt;&lt;BR /&gt;Does anyone have a solution for this? An other way of doing it? Or can I run the Select Layer By Location-tool from my code, and this will return the features I want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any input appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ståle,&lt;/P&gt;&lt;P&gt;Norwegian Mapping Authority.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 12:47:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/share-a-linesegment-relationship-for/m-p/792602#M1628</guid>
      <dc:creator>StåleHaug</dc:creator>
      <dc:date>2019-07-10T12:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: 'Share a linesegment'-relationship for SpatialQueryFilter?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/share-a-linesegment-relationship-for/m-p/792603#M1629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The best way to accomplish what you are trying to do right now is to&amp;nbsp;execute the GP tool using Geoprocessing.MakeValueArray and Geoprocessing.ExecuteToolAsync.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/select-layer-by-location.htm"&gt;https://pro.arcgis.com/en/pro-app/tool-reference/data-management/select-layer-by-location.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 17:22:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/share-a-linesegment-relationship-for/m-p/792603#M1629</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2019-08-08T17:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: 'Share a linesegment'-relationship for SpatialQueryFilter?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/share-a-linesegment-relationship-for/m-p/792604#M1630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, Uma!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found another solution: find the midpoint of each boundary line, and use this point in SpatialFilter to find which areas is touched by this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ståle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 05:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/share-a-linesegment-relationship-for/m-p/792604#M1630</guid>
      <dc:creator>StåleHaug</dc:creator>
      <dc:date>2019-08-12T05:09:15Z</dc:date>
    </item>
  </channel>
</rss>

