<?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: Iterate through point features as origin for fishnet in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/iterate-through-point-features-as-origin-for/m-p/129562#M4483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Basically all you do then would be to make the point's x,y coordinate the lower-left coordinate of the fishnet. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dsc = gp.describe(dnrMgmtAllFC) #this is a polygon FC that the fishnet must cover
xMin = dsc.extent.xmin #THIS WOULD BE THE X COORDINATE OF YOUR POINT
yMin = dsc.extent.ymin #THIS WOULD BE THE Y COORDINATE OF YOUR POINT
xMax = dsc.extent.xmax
yMax = dsc.extent.ymax
bufferWidth = 1 #Buffer width expands the the extent of the fishnet by that many map units (to make sure it extends past DNR lands a bit)
numberOfRows = 6
numberOfColumns = 6
fishnetLine1FC = fgdbPath + "\\fishnet_line1"
gp.CreateFishnet_management(fishnetLine1FC, str(xMin - bufferWidth) + " " + str(yMin - bufferWidth), str(xMin - bufferWidth) + " " + str(yMin), "0", "0", numberOfRows, numberOfColumns, str(xMax + bufferWidth) + " " + str(yMax + bufferWidth), "NO_LABELS", ""); showGpMessage()
fishnet1FC = fgdbPath + "\\fishnet_poly1"
gp.FeatureToPolygon_management(fishnetLine1FC, fishnet1FC, "", "", ""); showGpMessage()
gp.Delete_management(fishnetLine1FC, ""); showGpMessage()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 07:18:40 GMT</pubDate>
    <dc:creator>ChrisSnyder</dc:creator>
    <dc:date>2021-12-11T07:18:40Z</dc:date>
    <item>
      <title>Iterate through point features as origin for fishnet</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/iterate-through-point-features-as-origin-for/m-p/129561#M4482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to iterate through a polygon feature class, select the point feature within the polygon (note: there is only one point per polygon) as the origin to a fishnet, and then clip the fishnet at the polygon boundary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The iteration of the polygon feature class, selecting the point feature within the polygon, and clipping the fishnet are all fairly easy. But how does one go about making the point feature as the origin to the fishnet?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried the "Get Value Field" to get the northing and easting from fields in the point feature class, but how does one get the values into the Point Origin X/Y?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 17:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/iterate-through-point-features-as-origin-for/m-p/129561#M4482</guid>
      <dc:creator>MichaelKieser</dc:creator>
      <dc:date>2010-11-04T17:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate through point features as origin for fishnet</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/iterate-through-point-features-as-origin-for/m-p/129562#M4483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Basically all you do then would be to make the point's x,y coordinate the lower-left coordinate of the fishnet. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dsc = gp.describe(dnrMgmtAllFC) #this is a polygon FC that the fishnet must cover
xMin = dsc.extent.xmin #THIS WOULD BE THE X COORDINATE OF YOUR POINT
yMin = dsc.extent.ymin #THIS WOULD BE THE Y COORDINATE OF YOUR POINT
xMax = dsc.extent.xmax
yMax = dsc.extent.ymax
bufferWidth = 1 #Buffer width expands the the extent of the fishnet by that many map units (to make sure it extends past DNR lands a bit)
numberOfRows = 6
numberOfColumns = 6
fishnetLine1FC = fgdbPath + "\\fishnet_line1"
gp.CreateFishnet_management(fishnetLine1FC, str(xMin - bufferWidth) + " " + str(yMin - bufferWidth), str(xMin - bufferWidth) + " " + str(yMin), "0", "0", numberOfRows, numberOfColumns, str(xMax + bufferWidth) + " " + str(yMax + bufferWidth), "NO_LABELS", ""); showGpMessage()
fishnet1FC = fgdbPath + "\\fishnet_poly1"
gp.FeatureToPolygon_management(fishnetLine1FC, fishnet1FC, "", "", ""); showGpMessage()
gp.Delete_management(fishnetLine1FC, ""); showGpMessage()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/iterate-through-point-features-as-origin-for/m-p/129562#M4483</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2021-12-11T07:18:40Z</dc:date>
    </item>
  </channel>
</rss>

