<?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 Distance between a shapefile point and&amp;nbsp; a raster cells in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/distance-between-a-shapefile-point-and-nbsp-a/m-p/373192#M29491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a problem of writing a python script to calculate a distance between a shapefile and the individual cells of a raster file. i converted the raster file to points by using raster to points and then loop through but it takes so much time. i am wondering if there is any alternative.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Nov 2012 21:06:29 GMT</pubDate>
    <dc:creator>ZaidDagbanbia</dc:creator>
    <dc:date>2012-11-10T21:06:29Z</dc:date>
    <item>
      <title>Distance between a shapefile point and  a raster cells</title>
      <link>https://community.esri.com/t5/python-questions/distance-between-a-shapefile-point-and-nbsp-a/m-p/373192#M29491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a problem of writing a python script to calculate a distance between a shapefile and the individual cells of a raster file. i converted the raster file to points by using raster to points and then loop through but it takes so much time. i am wondering if there is any alternative.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Nov 2012 21:06:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/distance-between-a-shapefile-point-and-nbsp-a/m-p/373192#M29491</guid>
      <dc:creator>ZaidDagbanbia</dc:creator>
      <dc:date>2012-11-10T21:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Distance between a shapefile point and  a raster cells</title>
      <link>https://community.esri.com/t5/python-questions/distance-between-a-shapefile-point-and-nbsp-a/m-p/373193#M29492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You may try to count it having raster extension, and cell size (from arcpy.Raster() class attributes) you can calculate center of any cell in raster (multiply cell size by numbers of rows and cols and add to coords of lower left corner) . With that calculating distance between point and raster cell should be piece of cake.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Arek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 11:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/distance-between-a-shapefile-point-and-nbsp-a/m-p/373193#M29492</guid>
      <dc:creator>ArkadiuszMatoszka</dc:creator>
      <dc:date>2012-11-14T11:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Distance between a shapefile point and  a raster cells</title>
      <link>https://community.esri.com/t5/python-questions/distance-between-a-shapefile-point-and-nbsp-a/m-p/373194#M29493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this thread was opened a while ago now, but did you resolve this problem? I have the same issue, where I am trying to calculate the minimum distance from each point location in a shapefile to the nearest raster cell with a certain value. I realize I could make a point file of the raster first, but there must be a way to do this in ArcGIS or GME without converting the file first? I should note I am not a big user of Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any response!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kristen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 13:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/distance-between-a-shapefile-point-and-nbsp-a/m-p/373194#M29493</guid>
      <dc:creator>KristenPeck</dc:creator>
      <dc:date>2014-02-04T13:39:21Z</dc:date>
    </item>
  </channel>
</rss>

