<?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: Generate polygon plot boundaries around random points in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508348#M16919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;python it is&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/119885?commentID=449371#comment-449371" title="https://community.esri.com/thread/119885?commentID=449371#comment-449371"&gt;https://community.esri.com/thread/119885?commentID=449371#comment-449371&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you will have a little work to do, but &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌ options and code are great&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Mar 2019 00:25:09 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2019-03-20T00:25:09Z</dc:date>
    <item>
      <title>Generate polygon plot boundaries around random points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508345#M16916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;In past years, I've&amp;nbsp;used the Geospatial Modeling Environment software (with R) to generate rectangular plot boundaries around a set of random points. It was a simple script (below) but it doesn't look like the last GME software is compatible with ArcMap 10.6.&amp;nbsp; I've seen some older solutions given on these pages but didn't suit this problem, in that I need to input GROUND dimensions (in feet, meters, miles, etc.) and have&amp;nbsp;ArcMap draw rectangle polygons around all points in the layer. I've also seen some Python solutions but used coordinates as input (and I don't know Python). Are there any other possibilities? Does ArcGIS Pro have any feature to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Thank you!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0070c0; background: lightgrey;"&gt;genshapes(in="C:\randompoints2017.shp", shape="RECTANGLE", dim=c(402.35, 201.175), out="C:\randomplotpolys2017.shp");&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 21:58:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508345#M16916</guid>
      <dc:creator>DennisMarks</dc:creator>
      <dc:date>2019-03-19T21:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Generate polygon plot boundaries around random points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508346#M16917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the builtin tools&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/minimum-bounding-geometry.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/minimum-bounding-geometry.htm"&gt;Minimum Bounding Geometry—Data Management toolbox | ArcGIS Desktop&lt;/A&gt; (available in *map and *Pro)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 22:57:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508346#M16917</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-03-19T22:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Generate polygon plot boundaries around random points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508347#M16918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan, I did play around a bit with the min bounding geometry prior to posting. As far as I can see, it doesn't allow me to enter rectangle dimensions, and it wants to build a rectangle using all the points in my feature. I need something to take each point in that feature and build a specified (ht + width) rectangle around each.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 23:53:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508347#M16918</guid>
      <dc:creator>DennisMarks</dc:creator>
      <dc:date>2019-03-19T23:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Generate polygon plot boundaries around random points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508348#M16919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;python it is&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/119885?commentID=449371#comment-449371" title="https://community.esri.com/thread/119885?commentID=449371#comment-449371"&gt;https://community.esri.com/thread/119885?commentID=449371#comment-449371&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you will have a little work to do, but &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌ options and code are great&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 00:25:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508348#M16919</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-03-20T00:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Generate polygon plot boundaries around random points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508349#M16920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've been playing around with Python codes off these pages and are having some success! It's been a little clunky in that you adjust the lat/long coordinate, check rectangle side distance, and repeat. This is working, the problem now is something with the projection isn't spot on and the rectangle is slightly tilted in our project and we're having problems figuring out why from the code. The code you gave us the link to looks a little different...we'll give it another shot tomorrow. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 00:58:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508349#M16920</guid>
      <dc:creator>DennisMarks</dc:creator>
      <dc:date>2019-03-20T00:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generate polygon plot boundaries around random points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508350#M16921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;longitude latitude coordinates&amp;nbsp; and rectangles around them aren't going to be truly rectangular because of the differences in the width of a line of latitude as you head polewards.&amp;nbsp; You should be working with data in a projected coordinate system (eg. UTM or similar... definitely not web Mercator) and specify your rectangle width and height in the same units as the projection (eg. meters)&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 01:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508350#M16921</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-03-20T01:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generate polygon plot boundaries around random points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508351#M16922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still tinkering. Yes, when we apply the Python code in an unprojected ArcMap, we get the rectangle, but with the angle issue. When we run Python in a projected project (we're using NAD83 UTM3N), Python doesn't create anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 01:53:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508351#M16922</guid>
      <dc:creator>DennisMarks</dc:creator>
      <dc:date>2019-03-20T01:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Generate polygon plot boundaries around random points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508352#M16923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open a new dataframe devoid of anything other than the points.&lt;/P&gt;&lt;P&gt;Make sure that there are no points selected in the table etc.&lt;/P&gt;&lt;P&gt;And the obvious and most important, the code needs to be adjusted to account for your coordinate system and the cell size, since the examples were specific to those conditions.&amp;nbsp; Check the code for the appropriate lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 16:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508352#M16923</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-03-20T16:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Generate polygon plot boundaries around random points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508353#M16924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a solution I found on here many years ago, which I cannot find now.&amp;nbsp; This is for ArcMap.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; os
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; env
env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Get arguments: &lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#   Input point feature class&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#   Output polygon feature class&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#   Buffer distance&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#   Boolean type: Maintain fields and field values of the input in the output&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"initializing"&lt;/SPAN&gt;
inPoints   &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;    &lt;SPAN class="comment token"&gt;# Feature Class&lt;/SPAN&gt;
outPath   &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;     &lt;SPAN class="comment token"&gt;# Folder&lt;/SPAN&gt;
outName   &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;     &lt;SPAN class="comment token"&gt;# Variant&lt;/SPAN&gt;
buf1    &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; float&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;    &lt;SPAN class="comment token"&gt;# String&lt;/SPAN&gt;
buf2    &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; float&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;    &lt;SPAN class="comment token"&gt;# String&lt;/SPAN&gt;
bufDist1    &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; buf1&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;
bufDist2    &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; buf2&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;
outPolys   &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; outPath&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"//"&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;outName&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;".shp"&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"creating new blank feature"&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;outputCoordinateSystem &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;# Coordinate System&lt;/SPAN&gt;
                             
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateFeatureclass_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;outPath&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"POLYGON"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"created"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Open searchcursor&lt;/SPAN&gt;
inRows &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inPoints&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Open insertcursor&lt;/SPAN&gt;
outRows &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InsertCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;outPolys&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Create point and array objects&lt;/SPAN&gt;
pntObj &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arrayObj &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"writing geomety"&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; inRow &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; inRows&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# One output feature for each input point feature&lt;/SPAN&gt;
    inShape &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; inRow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;shape
    pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; inShape&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getPart&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;# Need 5 vertices for square buffer: upper right, upper left, lower left,&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;#   lower right, upper right. Add and subtract distance from coordinates of&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;#   input point as appropriate.&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; vertex &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        pntObj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ID &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; vertex
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; vertex &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            pntObj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;X &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;X &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; bufDist1
        &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            pntObj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;X &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;X &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; bufDist1
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; vertex &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            pntObj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Y &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Y &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; bufDist2
        &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            pntObj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Y &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pnt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Y &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; bufDist2
        arrayObj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;add&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pntObj&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;# Create new row for output feature&lt;/SPAN&gt;
    feat &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; outRows&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;newRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    
    &lt;SPAN class="comment token"&gt;# Assign array of points to output feature&lt;/SPAN&gt;
    feat&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;shape &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arrayObj

    &lt;SPAN class="comment token"&gt;# Insert the feature&lt;/SPAN&gt;
    outRows&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;insertRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;feat&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;# Clear array of points&lt;/SPAN&gt;
    arrayObj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;removeAll&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Delete inputcursor&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;del&lt;/SPAN&gt; outRows
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"done"&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508353#M16924</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2021-12-11T22:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Generate polygon plot boundaries around random points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508354#M16925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic! When we ran Python on a projected arcmap, the measurements were created in meters, not degrees. At first we just didn't see it draw because we left the dimensions in (fraction) degrees, which were tiny on the .mxd.&amp;nbsp;Changing the projection changed the measurements. It all lined up and is working perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Dan...and Matthew!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 23:20:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508354#M16925</guid>
      <dc:creator>DennisMarks</dc:creator>
      <dc:date>2019-03-20T23:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Generate polygon plot boundaries around random points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508355#M16926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;FYI: In case someone else wants to create rectangles with specific dimensions as we did (this is for a 1/4 x 1/2 mile rectangle in a NAD83 UTM3N projection), here's what ended up working for us:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; color: #004da8;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;arcpy&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;... w = 804.7&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;... h = 402.35&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;... polygons = []&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;... dataset = "randompoints2019"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;... spatial_ref = arcpy.Describe(dataset).spatialReference&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;...&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; color: #004da8;"&gt;with&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;arcpy.da.SearchCursor("randompoints2019","SHAPE@",spatial_reference=sr)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; color: #004da8;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;cursor:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; color: #004da8;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;row&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; color: #004da8;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;cursor:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = arcpy.Polygon(arcpy.Array([arcpy.Point(row[0].centroid.X - w/2,row[0].centroid.Y + h/2),arcpy.Point(row[0].centroid.X - w/2, row[0].centroid.Y - h/2),arcpy.Point(row[0].centroid.X + w/2,row[0].centroid.Y - h/2),arcpy.Point(row[0].centroid.X + w/2,row[0].centroid.Y + h/2)]),sr)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygons.append(polygon)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt 5pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;... arcpy.CopyFeatures_management(polygons,r'in_memory\plots')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt; color: #222222; font-weight: 400; text-indent: 0px; background-color: #ffffff; font-size: 11pt;"&gt;&lt;SPAN style="font-size: 12pt; color: black;"&gt;...&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 23:30:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508355#M16926</guid>
      <dc:creator>DennisMarks</dc:creator>
      <dc:date>2019-03-20T23:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Generate polygon plot boundaries around random points</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508356#M16927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to hear you got it figured out Dennis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 00:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/generate-polygon-plot-boundaries-around-random/m-p/508356#M16927</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-03-21T00:03:11Z</dc:date>
    </item>
  </channel>
</rss>

