<?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: How to create a Polygon from a single point in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60643#M2134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you know the coordinates of the center of the feature, you can calculate the coordinates of four corners using simple math given you know the width and height of the feature you want to create...however, this would have to be done for each feature and they would not be scaleable as you zoom in and out.&amp;nbsp; So the question becomes, how important is the actual size whether it be a feature or simply a symbol?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2014 20:57:23 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2014-08-18T20:57:23Z</dc:date>
    <item>
      <title>How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60636#M2127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm trying to programmatically figure out how to create a polygon feature using just a single point.&amp;nbsp; If my spatial reference is Web Mercator WGS84 and I want a 1 Meter by 2 Meter Polygon, how can I go about this?&amp;nbsp; The point can be any Latitude Longitude, I just need to get an idea if this can be done or not. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 19:58:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60636#M2127</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2014-08-18T19:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60637#M2128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use a projected coordinate system?&amp;nbsp; What is the orientation of the rectangle that you need? Why is a rectangle needed and not a circle (ie a buffer)? Is this a grid pattern that you are trying to produce (ie Fishnet) over an area or for discrete points?&amp;nbsp; Any further criteria would be useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 20:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60637#M2128</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-18T20:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60638#M2129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Dan,&amp;nbsp; A Projected Coordinate system is fine if thats easier.&amp;nbsp; I'm actually working with State Plane Nad 83 Arkansas North Feet.&amp;nbsp; It needs to be rectangular, otherwise I could do this by manipulating the point symbology.&amp;nbsp; The angles of each corner can be 90 degrees but for simplicity purposes the rectangle dimensions can be 10 Feet by 20 Feet if projected then.&amp;nbsp; Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 20:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60638#M2129</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2014-08-18T20:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60639#M2130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is purely a symbology issue, I certainly wouldn't go to the trouble of trying to create rectangular features.&amp;nbsp; There are some links in the help files on symbols and creating symbols&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s600000006000000"&gt;General comments&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/About_creating_new_symbols/00s600000004000000/"&gt;Creating your own&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 20:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60639#M2130</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-18T20:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60640#M2131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan.&amp;nbsp; A symbol will probably not work because I have to assume the user can zoom in at any level they choose to.&amp;nbsp; I'm actually trying to create a graphic (polygon graphic with corners) in silverlight but I wanted to prove this up in Desktop first.&amp;nbsp; So is this not possible at all? If its too difficult to produce a polygon could a line be derived?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 20:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60640#M2131</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2014-08-18T20:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60641#M2132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you really want to get into it, I believe you're looking for "&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Writing_geometries/002z0000001v000000/"&gt;Writing Geometries&lt;/A&gt;" using Python, but as Dan indicates this is likely overkill, especially if you are not proficient in Python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 20:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60641#M2132</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2014-08-18T20:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60642#M2133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darren, those examples look like a coordinates have to passed in though.&amp;nbsp; Is there not a way to calculate where the 4 corners could be from the specfied point?&amp;nbsp; I realize that the graphic or feature wd display in different orientations but if I producgraphic from this, it would at least have the correct dimensions and my template has the ability to rotate graphics.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 20:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60642#M2133</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2014-08-18T20:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60643#M2134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you know the coordinates of the center of the feature, you can calculate the coordinates of four corners using simple math given you know the width and height of the feature you want to create...however, this would have to be done for each feature and they would not be scaleable as you zoom in and out.&amp;nbsp; So the question becomes, how important is the actual size whether it be a feature or simply a symbol?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 20:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60643#M2134</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-18T20:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60644#M2135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan, yes could you give me an example of this?&amp;nbsp; So in-essence, whenever a user clicks the map and has this process active, what would this calculation look like knowing the XY from the mouse click?&amp;nbsp; It is important that the size of the new polygon feature matches the map (size = 10 Feet by 20 Feet).&amp;nbsp; Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 21:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60644#M2135</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2014-08-18T21:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60645#M2136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;West coordinate = KnownX - 0.5*width&lt;/P&gt;&lt;P&gt;East coordinate = KnownX + 0.5*width&lt;/P&gt;&lt;P&gt;North coordinate = KnownY + 0.5*height&lt;/P&gt;&lt;P&gt;South coordinate = KnownY - 0.5*height&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 21:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60645#M2136</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2014-08-18T21:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60646#M2137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay...now you are describing a whole different problem.&amp;nbsp; What you really want is to be able to click anywhere on the screen and have a rectangle appear...well at this stage it would be best for the ArcObjects people to wade in with coding ideas for "on mouse click" event style stuff.&amp;nbsp; There is a world of difference between the static and the dynamic world...good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 21:31:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60646#M2137</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-18T21:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60647#M2138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;I'd say creating a polygon from a map click is certainly possible, but technicalities may be a bit different in ArcMap and the APIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a user clickes a map, the map emits an on-click event. One of the properties of the parameter passed into the event handler is the point that was clicked. Take that point and calculate where the vertices of your polygon (like Darren suggested). I believe a map SilverLight (similarly to JavaScript) has one (or more) graphics layer(s), ideal for storing and displaying temporary geometries. Once you have your polygon, add it to the graphics layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paste the code below into &lt;A href="http://developers.arcgis.com/javascript/sandbox/sandbox.html" title="http://developers.arcgis.com/javascript/sandbox/sandbox.html"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;‌ . Is it roughly what you want to do?&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14084034164874412" jivemacro_uid="_14084034164874412" modifiedtitle="true"&gt;
&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;head&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Polygon from map click&amp;lt;/title&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.10/js/esri/css/esri.css" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.10/js/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;style&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html, body, #map { height: 100%; width: 100%; margin: 0; padding: 0; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; body { background-color: #FFF; overflow: hidden; font-family: "Trebuchet MS"; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #help {position: absolute; top: 20px; right: 20px; z-index: 1001; background-color: white; padding: 10px;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/style&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.10/" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.10/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var map;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; require(["esri/map", "esri/graphic",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/geometry/webMercatorUtils",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/geometry/Polygon",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/symbols/SimpleFillSymbol",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/on","dojo/domReady!"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ], function(Map, Graphic, webMercatorUtils, Polygon, SimpleFillSymbol) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new Map("map", { basemap: "topo",center: [-92.0, 35.0], zoom: 9 });&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new SimpleFillSymbol({&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "esriSFS", "style": "esriSFSSolid", "color": [255,0,0,100],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "outline": {"type": "esriSLS", "style": "esriSLSSolid", "color": [255,0,0,255],"width": 1}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.on('click', function(evt){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pt = evt.mapPoint;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var x = pt.x, y = pt.y;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dx = 500, dy = 1000; // THESE ARE JUST WEB MERKATOR UNITS NOW, NOT METRES!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var polygon = new Polygon({"rings":[[&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [x - dx, y - dy], [x - dx, y + dy],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [x + dx, y + dy], [x + dx, y - dy], [x - dx, y - dy]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]], "spatialReference": pt.spatialReference});&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //var pgwgs = webMercatorUtils.webMercatorToGeographic(polygon); // might come handy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var gr = new Graphic(polygon, symbol);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear(); // may need to remove just a particular graphic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(gr);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="help"&amp;gt;Click on the map to create a polygon&amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="map"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I won't get into details about handling different coordinate systems now, maybe when we know what you are after. Also, you could potentially buffer the point and get envelope of the buffer to get a rectangle which you could then adjust. At what scale are you working? When I set the size to 10x20, the polygon wasn't even visible unless I zoomed really close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 23:14:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60647#M2138</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2014-08-18T23:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60648#M2139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Darren, I'll try this tomorrow morning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 23:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60648#M2139</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2014-08-18T23:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60649#M2140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Filip, thanks for this.&amp;nbsp; while your code is more detailed and looks like what I'm after, I'm going to attempt Darren's code above tomorrow morning.&amp;nbsp; If I can't get that to work, I'll try yours next before accepting an answer.&amp;nbsp; Thanks for fast reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 23:31:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60649#M2140</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2014-08-18T23:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60650#M2141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; background: white;"&gt;So in-essence, whenever a user clicks the map and has this process active, what would this calculation look like knowing the XY from the mouse click?&amp;nbsp; It is important that the size of the new polygon feature matches the map (size = 10 Feet by 20 Feet). Thoughts?&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Helvetica, sans-serif;"&gt;You can do this using a python script in a custom toolbox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14084262688022380 jive_text_macro" jivemacro_uid="_14084262688022380"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Get input parameters - points and target feature class&lt;/P&gt;
&lt;P&gt;pts = arcpy.GetParameter(0)&lt;/P&gt;
&lt;P&gt;dw = float(arcpy.GetParameterAsText(1))/2&lt;/P&gt;
&lt;P&gt;dh = float(arcpy.GetParameterAsText(2))/2&lt;/P&gt;
&lt;P&gt;units = arcpy.GetParameterAsText(3)&lt;/P&gt;
&lt;P&gt;fc = arcpy.GetParameterAsText(4)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if units == "Feet":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dw = dw/3.2808399&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dh = dh/3.2808399&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# create new polygons from points&lt;/P&gt;
&lt;P&gt;cursor = arcpy.da.InsertCursor(fc, ("SHAPE@"))&lt;/P&gt;
&lt;P&gt;with arcpy.da.SearchCursor(pts,["SHAPE@XY"]) as newpts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for pt in newpts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x, y = pt[0]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Create polygon geometry from point&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array = arcpy.Array([arcpy.Point(x - dw, y + dh),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Point(x + dw, y + dh),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Point(x + dw, y - dh),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Point(x - dw, y - dh),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Point(x - dw, y + dh)])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; poly = arcpy.Polygon(array)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.insertRow((poly,))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;del cursor&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Helvetica, sans-serif;"&gt;The script takes the following inputs:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Helvetica, sans-serif;"&gt;User Defined Points (Feature Set)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Helvetica, sans-serif;"&gt;Width (size in units)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Helvetica, sans-serif;"&gt;Height (size in units)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Helvetica, sans-serif;"&gt;Units (Meters or Feet)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; font-family: Helvetica, sans-serif;"&gt;Target Feature Class &lt;/SPAN&gt;(new polygons are created in this)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Helvetica, sans-serif;"&gt;See this &lt;A _jive_internal="true" href="https://community.esri.com/servlet/JiveServlet/downloadBody/2089-102-1-2659/CreateRectangeToolbox.zip"&gt;zipped example&lt;/A&gt; with toolbox, script and template point feature class (required for feature set parameter).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this example uses the WGS 1984 Web Mercator (auxiliary sphere) projection – so you should use this in your target feature class as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Owen&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.spatialxp.com.au/"&gt;Spatial XP&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 05:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60650#M2141</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-08-19T05:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60651#M2142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgot to add - this is how it looks in ArcMap:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="result.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/3608_result.png" style="width: 620px; height: 388px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 05:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60651#M2142</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-08-19T05:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60652#M2143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Owen, this is indeed good to know.&amp;nbsp; I may be able to push your script into a geoprocessing service if I can't get Darren's or Filip's code to work like I need it to.&amp;nbsp; I will follow up, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 12:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60652#M2143</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2014-08-19T12:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60653#M2144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Darren, thanks for this.&amp;nbsp; There were a lot of great answers below but this turned out to be what I needed.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 13:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60653#M2144</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2014-08-21T13:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60654#M2145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the feedback here. Helped us solve a related problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 22:42:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60654#M2145</guid>
      <dc:creator>MattSheehan</dc:creator>
      <dc:date>2014-08-21T22:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Polygon from a single point</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60655#M2146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Filip, thank you for this. I am newbie&amp;nbsp;with Arcgis&amp;nbsp;for Javascript. What if I need to draw a polygon with exact height and width values? I cant find a way to do it. Any suggestion? thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Damaso&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 00:32:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-a-polygon-from-a-single-point/m-p/60655#M2146</guid>
      <dc:creator>OttoArturo</dc:creator>
      <dc:date>2017-02-25T00:32:25Z</dc:date>
    </item>
  </channel>
</rss>

