<?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>idea Construct ST_GEOMETRY rectangle from two vertices in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/construct-st-geometry-rectangle-from-two-vertices/idi-p/1180913</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;EM&gt;SDE.ST_GEOMETRY in Oracle:&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;HR /&gt;&lt;P&gt;I have two vertices of a rectangle:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Lower-left: 10,10&lt;/LI&gt;&lt;LI&gt;Upper-right: 100,100&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I want to construct a rectangle polygon from those two vertices using ST_GEOMETRY functions.&lt;/P&gt;&lt;P&gt;Currently, there doesn't seem to be a a way to construct that rectangle using only the two vertices. It seems like the only way to construct the rectangle is to determine what all four (or five?) vertices are — and construct the rectangle that way.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;It would help if functionality could be added so that we could&amp;nbsp;construct an ST_GEOMETRY rectangle from just the lower-left and upper-right vertices.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Similar to what we can do with SDO_GEOMETRY's &lt;A href="https://docs.oracle.com/database/121/SPATL/rectangle.htm#SPATL517" target="_self"&gt;rectangle functionality&lt;/A&gt;:&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;    sdo_geometry(2003, 26917, null, sdo_elem_info_array(1, 1003, &lt;STRONG&gt;3&lt;/STRONG&gt;), &lt;BR /&gt;        sdo_ordinate_array(&lt;STRONG&gt;665287.423,4857578.086&lt;/STRONG&gt;,     &lt;STRONG&gt;676832.320,4878119.585&lt;/STRONG&gt;))&lt;BR /&gt;        &lt;STRONG&gt;-- only two vertices&lt;/STRONG&gt;         &lt;SPAN&gt;🡅                          🡅&lt;BR /&gt;from&lt;BR /&gt;    dual&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;[MDSYS.SDO_GEOMETRY]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2022 14:35:16 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-06-08T14:35:16Z</dc:date>
    <item>
      <title>Construct ST_GEOMETRY rectangle from two vertices</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/construct-st-geometry-rectangle-from-two-vertices/idi-p/1180913</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;EM&gt;SDE.ST_GEOMETRY in Oracle:&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;HR /&gt;&lt;P&gt;I have two vertices of a rectangle:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Lower-left: 10,10&lt;/LI&gt;&lt;LI&gt;Upper-right: 100,100&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I want to construct a rectangle polygon from those two vertices using ST_GEOMETRY functions.&lt;/P&gt;&lt;P&gt;Currently, there doesn't seem to be a a way to construct that rectangle using only the two vertices. It seems like the only way to construct the rectangle is to determine what all four (or five?) vertices are — and construct the rectangle that way.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;It would help if functionality could be added so that we could&amp;nbsp;construct an ST_GEOMETRY rectangle from just the lower-left and upper-right vertices.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Similar to what we can do with SDO_GEOMETRY's &lt;A href="https://docs.oracle.com/database/121/SPATL/rectangle.htm#SPATL517" target="_self"&gt;rectangle functionality&lt;/A&gt;:&lt;/P&gt;&lt;PRE&gt;select&lt;BR /&gt;    sdo_geometry(2003, 26917, null, sdo_elem_info_array(1, 1003, &lt;STRONG&gt;3&lt;/STRONG&gt;), &lt;BR /&gt;        sdo_ordinate_array(&lt;STRONG&gt;665287.423,4857578.086&lt;/STRONG&gt;,     &lt;STRONG&gt;676832.320,4878119.585&lt;/STRONG&gt;))&lt;BR /&gt;        &lt;STRONG&gt;-- only two vertices&lt;/STRONG&gt;         &lt;SPAN&gt;🡅                          🡅&lt;BR /&gt;from&lt;BR /&gt;    dual&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;[MDSYS.SDO_GEOMETRY]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 14:35:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/construct-st-geometry-rectangle-from-two-vertices/idi-p/1180913</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-06-08T14:35:16Z</dc:date>
    </item>
  </channel>
</rss>

