<?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: distance between 2 layer points in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245495#M8378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You know i was goindg to do that but the problem was that i need a flag to stop if prevision point is no longer 50 metter from the next point&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2014 12:26:41 GMT</pubDate>
    <dc:creator>ImaginationImagination</dc:creator>
    <dc:date>2014-11-27T12:26:41Z</dc:date>
    <item>
      <title>distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245484#M8367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone&lt;/P&gt;&lt;P&gt;Please help me with this&lt;/P&gt;&lt;P&gt;I have Arcmap 9.3&lt;/P&gt;&lt;P&gt;On this i have 2 layer points witch i need to calculate the distance between all the point on layer 0 and other point on layer 2&lt;/P&gt;&lt;P&gt;But i need to tdo this in vba of Arcmap by this logic situation&lt;/P&gt;&lt;P&gt;-get the all the point in layer 0 and storied them&amp;nbsp; in an array&lt;/P&gt;&lt;P&gt;get all the point in layer 2 and stored them in a nother array&lt;/P&gt;&lt;P&gt;no calculate the distance for each point on layer 0 to each point on layer 2&lt;/P&gt;&lt;P&gt;this is a formula : dist_layerp = Sqr((x2 - x1) ^ 2 + (y2 - y1) ^ 2)&lt;/P&gt;&lt;P&gt;IF the distance between point on layer 0 and point on layer 2 is 50 or - 50 create a field on table with value 0&lt;/P&gt;&lt;P&gt;But the trick is that i need to search&amp;nbsp; in layer 2 if the point to point is another 50 end then stop it he distance from next point is more then 50&lt;/P&gt;&lt;P&gt;the picture Bellow shows what i need.&lt;/P&gt;&lt;P&gt;Thankyou very much for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 07:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245484#M8367</guid>
      <dc:creator>ImaginationImagination</dc:creator>
      <dc:date>2014-11-27T07:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245485#M8368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to use "Near", "Point Distance" or "Generate Point Table" tools from toolbox. You can run tools manually or within vba code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=An_overview_of_the_Proximity_toolset" title="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=An_overview_of_the_Proximity_toolset"&gt;ArcGIS Desktop Help 9.3 - An overview of the Proximity toolset&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 08:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245485#M8368</guid>
      <dc:creator>SuleymanARSLAN</dc:creator>
      <dc:date>2014-11-27T08:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245486#M8369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to user the near point direct from layers&lt;/P&gt;&lt;P&gt;So a need to calculate the distance from point on the line of layer 0 to the near point of layer 2 but need to do this using vba macro&lt;/P&gt;&lt;P&gt;How to eun generate point table from vba code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 08:37:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245486#M8369</guid>
      <dc:creator>ImaginationImagination</dc:creator>
      <dc:date>2014-11-27T08:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245487#M8370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look following samples;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/de/knowledgebase/techarticles/detail/31110" title="http://support.esri.com/de/knowledgebase/techarticles/detail/31110"&gt;31110 - Execute geoprocessing tools from within VBA&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=992&amp;amp;t=277429" title="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=992&amp;amp;t=277429"&gt;Run any ArcToolBox Tool with it's parameters Programmatically (Read This!!) - Example: Convert To CA&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/10801/call-tools-from-arctoolbox-in-vba-form" title="http://gis.stackexchange.com/questions/10801/call-tools-from-arctoolbox-in-vba-form"&gt;Call tools from ArcToolBox in VBA form - Geographic Information Systems Stack Exchange&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally you may create a geoprocessing model to simplify your work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 08:47:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245487#M8370</guid>
      <dc:creator>SuleymanARSLAN</dc:creator>
      <dc:date>2014-11-27T08:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245488#M8371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou for your help &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I will have a look&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 09:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245488#M8371</guid>
      <dc:creator>ImaginationImagination</dc:creator>
      <dc:date>2014-11-27T09:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245489#M8372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well i looked at the reference.&lt;/P&gt;&lt;P&gt;The problem is that i need to get the coodonate from all point of layer 0 and 2 and then calculate there distance.&lt;/P&gt;&lt;P&gt;I wander is there a way to do this by put all point in a collection or somehow to calculate there distance using vba macro on Arcmap 9.3.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 11:07:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245489#M8372</guid>
      <dc:creator>ImaginationImagination</dc:creator>
      <dc:date>2014-11-27T11:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245490#M8373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The tools "Near", "Point Distance" and "Generate Point Table" are not require coordinates. Just you have to set input features (layer 0) and near features (layer 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 11:20:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245490#M8373</guid>
      <dc:creator>SuleymanARSLAN</dc:creator>
      <dc:date>2014-11-27T11:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245491#M8374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On arcmap 9.3.1&amp;nbsp; tools i cannot fiind generate&amp;nbsp; point table or point distance or near&lt;/P&gt;&lt;P&gt;Could you please show me a prinscreen or something&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 11:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245491#M8374</guid>
      <dc:creator>ImaginationImagination</dc:creator>
      <dc:date>2014-11-27T11:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245492#M8375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it requires ArcInfo License.&lt;/P&gt;&lt;P&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=An_overview_of_the_Proximity_toolset" title="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=An_overview_of_the_Proximity_toolset"&gt;ArcGIS Desktop Help 9.3 - An overview of the Proximity toolset&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 12:01:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245492#M8375</guid>
      <dc:creator>SuleymanARSLAN</dc:creator>
      <dc:date>2014-11-27T12:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245493#M8376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So that explain why i don't have this utility&lt;/P&gt;&lt;P&gt;SO i guess i need to fiind a way&amp;nbsp; to do this programabily&lt;/P&gt;&lt;P&gt;Thankyou for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 12:06:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245493#M8376</guid>
      <dc:creator>ImaginationImagination</dc:creator>
      <dc:date>2014-11-27T12:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245494#M8377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively you may use buffer query to find all points within 50 meter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 12:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245494#M8377</guid>
      <dc:creator>SuleymanARSLAN</dc:creator>
      <dc:date>2014-11-27T12:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245495#M8378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You know i was goindg to do that but the problem was that i need a flag to stop if prevision point is no longer 50 metter from the next point&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 12:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245495#M8378</guid>
      <dc:creator>ImaginationImagination</dc:creator>
      <dc:date>2014-11-27T12:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245496#M8379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can apply spatial filter to your Layer 2 with 50 meter buffer circle from point in layer 0. This will return list of point features as a feature cursor from layer 2 which are within 50 meter distance.&lt;/P&gt;&lt;P&gt;Than you can do whatever you want with this points.&lt;/P&gt;&lt;P&gt;I think you want to do this for each feature in layer 0, so you have to iterate all feature in layer 0 and apply spatial filter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 13:27:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245496#M8379</guid>
      <dc:creator>SuleymanARSLAN</dc:creator>
      <dc:date>2014-11-27T13:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245497#M8380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting think&lt;/P&gt;&lt;P&gt;I will try to do that and give you a feetback &lt;/P&gt;&lt;P&gt;Thankyou for your help &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 06:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245497#M8380</guid>
      <dc:creator>ImaginationImagination</dc:creator>
      <dc:date>2014-11-28T06:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245498#M8381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please give me a hint to this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a fucntion that get the distance from x,y layer 0 and x,y layer 2&lt;/P&gt;&lt;P&gt;but&amp;nbsp; the proble is that i need to to that for each point not only on,because the resol show only one point&lt;/P&gt;&lt;P&gt;So how to itterante thru this&lt;/P&gt;&lt;P&gt;Function is :&lt;/P&gt;&lt;P&gt;Dim pMxDoc As IMxDocument&lt;/P&gt;&lt;P&gt;Set pMxDoc = ThisDocument&lt;/P&gt;&lt;P&gt;Dim pMap As IMap&lt;/P&gt;&lt;P&gt;Set pMap = pMxDoc.FocusMap&lt;/P&gt;&lt;P&gt;Dim i As Integer&lt;/P&gt;&lt;P&gt;Dim pLayer As ILayer&lt;/P&gt;&lt;P&gt;Dim pLayer2 As ILayer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set pLayer = pMap.layer(0)&lt;/P&gt;&lt;P&gt;Set pLayer2 = pMap.layer(2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim pFLayer As IFeatureLayer&lt;/P&gt;&lt;P&gt;Dim pFLayer2 As IFeatureLayer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set pFLayer = pLayer&lt;/P&gt;&lt;P&gt;Set pFLayer2 = pLayer2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim pFClass As IFeatureClass&lt;/P&gt;&lt;P&gt;Dim pFClass2 As IFeatureClass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set pFClass = pFLayer.FeatureClass&lt;/P&gt;&lt;P&gt;Set pFClass2 = pFLayer2.FeatureClass&lt;/P&gt;&lt;P&gt;Dim pFeature As IFeature&lt;/P&gt;&lt;P&gt;Dim pFeature2 As IFeature&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim pFCursor As IFeatureCursor&lt;/P&gt;&lt;P&gt;Dim pFCursor2 As IFeatureCursor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set pFCursor = pFClass.Search(Nothing, False)&lt;/P&gt;&lt;P&gt;Set pFCursor2 = pFClass2.Search(Nothing, False)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set pFeature = pFCursor.NextFeature&lt;/P&gt;&lt;P&gt;Set pFeature2 = pFCursor2.NextFeature&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Dim pPointOne As IPoint&lt;/P&gt;&lt;P&gt; Dim pPointMany As IPoint&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set pPointOne = pFeature.Shape&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set pPointMany = pFeature2.Shape&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Dim dblX1 As Double&lt;/P&gt;&lt;P&gt;Dim dblY1 As Double&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim dblX2 As Double&lt;/P&gt;&lt;P&gt;Dim dblY2 As Double&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dblX1 = pPointOne.x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dblY1 = pPointOne.y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dblX2 = pPointMany.x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dblY2 = pPointMany.y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim dblDistance As Double&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pFeature = pFCursor.NextFeature&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pFeature2 = pFCursor2.NextFeature&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dblDistance = Sqr((dblX1 - dblX2) ^ 2 + (dblY1 - dblY2) ^ 2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 10:57:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245498#M8381</guid>
      <dc:creator>ImaginationImagination</dc:creator>
      <dc:date>2014-11-28T10:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245499#M8382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a function to get features within 50 meter buffer from layer 2&lt;/P&gt;&lt;P&gt;Then you can call this function for each feature in layer 0. You will get a list of selected feature within 50 meter distance to calculate actual distance. This will be much faster than iterating all features in layer 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim pTopoOp as ITopologicalOperator&lt;/P&gt;&lt;P&gt;Set pTopoOp = pGeom&lt;/P&gt;&lt;P&gt;Dim pSpQuery as ISpatialFilter&lt;/P&gt;&lt;P&gt;Set pSpQuery = New SpatialFilter&lt;/P&gt;&lt;P&gt;With pSpQuery&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set .Geometry = pTopoOp.Buffer(50)&lt;/P&gt;&lt;P&gt;&amp;nbsp; .SpatialRel = esriSpatialRelIntersects&lt;/P&gt;&lt;P&gt;&amp;nbsp; .GeometryField = pFeatureLayer.FeatureClass.ShapeFieldName&lt;/P&gt;&lt;P&gt;End With&lt;/P&gt;&lt;P&gt;Dim pFeatSelection as IFeatureSelection&lt;/P&gt;&lt;P&gt;Set pFeatSelection = pFeatureLayer&lt;/P&gt;&lt;P&gt;'Add features to current selection&lt;/P&gt;&lt;P&gt;pFeatSelection.SelectFeatures pSpQuery, esriSelectionResultsAdd, False&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 11:16:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245499#M8382</guid>
      <dc:creator>SuleymanARSLAN</dc:creator>
      <dc:date>2014-11-28T11:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: distance between 2 layer points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245500#M8383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry i am new to ARcmap&lt;/P&gt;&lt;P&gt;So far from what you show me is that an ew to define pGeom beause i get an error and then&lt;/P&gt;&lt;P&gt; so i made the function calc witch has data from what i posted and then with waht you gived me i need to create a nother function&amp;nbsp; witch contains this ?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim pTopoOp as ITopologicalOperator&lt;/P&gt;&lt;P&gt;Set pTopoOp = pGeom&lt;/P&gt;&lt;P&gt;Dim pSpQuery as ISpatialFilter&lt;/P&gt;&lt;P&gt;Set pSpQuery = New SpatialFilter&lt;/P&gt;&lt;P&gt;With pSpQuery&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set .Geometry = pTopoOp.Buffer(50)&lt;/P&gt;&lt;P&gt;&amp;nbsp; .SpatialRel = esriSpatialRelIntersects&lt;/P&gt;&lt;P&gt;&amp;nbsp; .GeometryField = pFeatureLayer.FeatureClass.ShapeFieldName&lt;/P&gt;&lt;P&gt;End With&lt;/P&gt;&lt;P&gt;Dim pFeatSelection as IFeatureSelection&lt;/P&gt;&lt;P&gt;Set pFeatSelection = pFeatureLayer&lt;/P&gt;&lt;P&gt;'Add features to current selection&lt;/P&gt;&lt;P&gt;pFeatSelection.SelectFeatures pSpQuery, esriSelectionResultsAdd, False&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 11:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/distance-between-2-layer-points/m-p/245500#M8383</guid>
      <dc:creator>ImaginationImagination</dc:creator>
      <dc:date>2014-11-28T11:53:03Z</dc:date>
    </item>
  </channel>
</rss>

