<?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: in C# or VB.Net how to find lines and points inside or intersecting a polygon in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/in-c-or-vb-net-how-to-find-lines-and-points-inside/m-p/348414#M9212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisengine/dotnet/7b4b8987-a3f0-4954-980f-720e61965449.htm#WithinPolygon" title="http://resources.esri.com/help/9.3/arcgisengine/dotnet/7b4b8987-a3f0-4954-980f-720e61965449.htm#WithinPolygon"&gt;How to execute spatial queries&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt; Get the feature and its geometry given an ObjectID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;Dim&lt;/SPAN&gt; stateFeature &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;As&lt;/SPAN&gt; IFeature = stateFeatureClass.GetFeature(14)&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;Dim&lt;/SPAN&gt; queryGeometry &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;As&lt;/SPAN&gt; IGeometry = stateFeature.Shape&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;' Create the spatial filter; "highwayFeatureClass" is the feature class containing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;' the highway data. Set the SubFields property to "FULL_NAME" as only that field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;' is shown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;Dim&lt;/SPAN&gt; spatialFilter &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;As&lt;/SPAN&gt; ISpatialFilter = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;New&lt;/SPAN&gt; SpatialFilterClass()&lt;/P&gt;&lt;P&gt;spatialFilter.Geometry = queryGeometry&lt;/P&gt;&lt;P&gt;spatialFilter.GeometryField = highwayFeatureClass.ShapeFieldName&lt;/P&gt;&lt;P&gt;spatialFilter.SpatialRel = esriSpatialRelEnum.esriSpatialRelIntersects&lt;/P&gt;&lt;P&gt;spatialFilter.SubFields = &lt;SPAN class="str" style="color: maroon;"&gt;"FULL_NAME"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 18:20:43 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2016-07-01T18:20:43Z</dc:date>
    <item>
      <title>in C# or VB.Net how to find lines and points inside or intersecting a polygon</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/in-c-or-vb-net-how-to-find-lines-and-points-inside/m-p/348411#M9209</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;&lt;/P&gt;&lt;P&gt;How can I find all points and lines that intersect or are included in a polygon?&lt;/P&gt;&lt;P&gt;I am writing a console application to list pipes and points with a specific criteria inside a polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 15:04:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/in-c-or-vb-net-how-to-find-lines-and-points-inside/m-p/348411#M9209</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2016-07-01T15:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: in C# or VB.Net how to find lines and points inside or intersecting a polygon</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/in-c-or-vb-net-how-to-find-lines-and-points-inside/m-p/348412#M9210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisengine/arcobjects/esriGeoDatabase/ISpatialFilter_Example.htm" title="http://resources.esri.com/help/9.3/arcgisengine/arcobjects/esriGeoDatabase/ISpatialFilter_Example.htm"&gt;ISpatialFilter Example&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 17:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/in-c-or-vb-net-how-to-find-lines-and-points-inside/m-p/348412#M9210</guid>
      <dc:creator>JeffMatson</dc:creator>
      <dc:date>2016-07-01T17:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: in C# or VB.Net how to find lines and points inside or intersecting a polygon</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/in-c-or-vb-net-how-to-find-lines-and-points-inside/m-p/348413#M9211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I populate or initialize the envelope with the shape of the current polygon I am selecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal is to select a polygon and list all points and lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.5em 0px;"&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;// Create the envelope and define its position.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.5em 0px;"&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt;"&gt;&amp;nbsp; IEnvelope&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; envelope = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt;"&gt;EnvelopeClass&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.5em 0px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; envelope.PutCoords(-84.4078, 33.7787, -84.3856, 33.7997);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.5em 0px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 18:08:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/in-c-or-vb-net-how-to-find-lines-and-points-inside/m-p/348413#M9211</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2016-07-01T18:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: in C# or VB.Net how to find lines and points inside or intersecting a polygon</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/in-c-or-vb-net-how-to-find-lines-and-points-inside/m-p/348414#M9212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisengine/dotnet/7b4b8987-a3f0-4954-980f-720e61965449.htm#WithinPolygon" title="http://resources.esri.com/help/9.3/arcgisengine/dotnet/7b4b8987-a3f0-4954-980f-720e61965449.htm#WithinPolygon"&gt;How to execute spatial queries&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt; Get the feature and its geometry given an ObjectID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;Dim&lt;/SPAN&gt; stateFeature &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;As&lt;/SPAN&gt; IFeature = stateFeatureClass.GetFeature(14)&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;Dim&lt;/SPAN&gt; queryGeometry &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;As&lt;/SPAN&gt; IGeometry = stateFeature.Shape&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;' Create the spatial filter; "highwayFeatureClass" is the feature class containing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;' the highway data. Set the SubFields property to "FULL_NAME" as only that field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="rem" style="color: #008000;"&gt;' is shown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwrd" style="color: #0000ff;"&gt;Dim&lt;/SPAN&gt; spatialFilter &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;As&lt;/SPAN&gt; ISpatialFilter = &lt;SPAN class="kwrd" style="color: #0000ff;"&gt;New&lt;/SPAN&gt; SpatialFilterClass()&lt;/P&gt;&lt;P&gt;spatialFilter.Geometry = queryGeometry&lt;/P&gt;&lt;P&gt;spatialFilter.GeometryField = highwayFeatureClass.ShapeFieldName&lt;/P&gt;&lt;P&gt;spatialFilter.SpatialRel = esriSpatialRelEnum.esriSpatialRelIntersects&lt;/P&gt;&lt;P&gt;spatialFilter.SubFields = &lt;SPAN class="str" style="color: maroon;"&gt;"FULL_NAME"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 18:20:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/in-c-or-vb-net-how-to-find-lines-and-points-inside/m-p/348414#M9212</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2016-07-01T18:20:43Z</dc:date>
    </item>
  </channel>
</rss>

