<?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 Looking for samples to check if a point is located inside a polygon in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-samples-to-check-if-a-point-is-located/m-p/1512594#M10386</link>
    <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;I am looking to create a service in Python (Geoservice) that will run in ArcGIS Portal and reads a point (customer) and returns the name of the area where the customer is located (parcel)&lt;/P&gt;&lt;P&gt;Two cases:&lt;/P&gt;&lt;P&gt;1) compare point with polygon&lt;/P&gt;&lt;P&gt;2) compare point with point (centroid)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 20:06:05 GMT</pubDate>
    <dc:creator>SanchezNuñez</dc:creator>
    <dc:date>2024-07-30T20:06:05Z</dc:date>
    <item>
      <title>Looking for samples to check if a point is located inside a polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-samples-to-check-if-a-point-is-located/m-p/1512594#M10386</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;I am looking to create a service in Python (Geoservice) that will run in ArcGIS Portal and reads a point (customer) and returns the name of the area where the customer is located (parcel)&lt;/P&gt;&lt;P&gt;Two cases:&lt;/P&gt;&lt;P&gt;1) compare point with polygon&lt;/P&gt;&lt;P&gt;2) compare point with point (centroid)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 20:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-samples-to-check-if-a-point-is-located/m-p/1512594#M10386</guid>
      <dc:creator>SanchezNuñez</dc:creator>
      <dc:date>2024-07-30T20:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for samples to check if a point is located inside a polygon</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-samples-to-check-if-a-point-is-located/m-p/1513692#M10392</link>
      <description>&lt;P&gt;Hey Sanchez,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following &lt;A href="https://community.esri.com/t5/python-questions/how-to-check-for-points-within-a-polygon-without/td-p/1083460" target="_self"&gt;thread&lt;/A&gt; might be of use and provides a useful code sample.&lt;/P&gt;&lt;P&gt;In regards to comparing generated points with the polygon centroid I would build a feature class with centroids first using the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/feature-to-point.htm#:~:text=arcpy.management.FeatureToPoint(in_features%2C%20out_feature_class%2C%20%7Bpoint_location%7D)" target="_self"&gt;Feature to Point&lt;/A&gt; tool in ArcPy. From there it depends what you want to compare exactly but for something like distance the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/near.htm#:~:text=arcpy.analysis.Near(in_features%2C%20near_features%2C%20%7Bsearch_radius%7D%2C%20%7Blocation%7D%2C%20%7Bangle%7D%2C%20%7Bmethod%7D%2C%20%7Bfield_names%7D%2C%20%7Bdistance_unit%7D)" target="_self"&gt;Near&lt;/A&gt; tool is suitable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 15:48:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-samples-to-check-if-a-point-is-located/m-p/1513692#M10392</guid>
      <dc:creator>David_McRitchie</dc:creator>
      <dc:date>2024-08-01T15:48:19Z</dc:date>
    </item>
  </channel>
</rss>

