<?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 get the Width/Height of Rectangle in Arobjects of VBA in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/337999#M8864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is this a feature in a feature class? ArcObjects provide many classes for working with and getting information about geometries but the geometries have to be defined in the correct way. Please provide some additional details.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 May 2010 15:17:56 GMT</pubDate>
    <dc:creator>JohnHauck</dc:creator>
    <dc:date>2010-05-03T15:17:56Z</dc:date>
    <item>
      <title>How to get the Width/Height of Rectangle in Arobjects of VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/337998#M8863</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;How to get the Width/Height of Rectangle in Arobjects of VBA. please see the attached picture.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jessie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 13:35:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/337998#M8863</guid>
      <dc:creator>jessieleo</dc:creator>
      <dc:date>2010-05-03T13:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Width/Height of Rectangle in Arobjects of VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/337999#M8864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is this a feature in a feature class? ArcObjects provide many classes for working with and getting information about geometries but the geometries have to be defined in the correct way. Please provide some additional details.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 15:17:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/337999#M8864</guid>
      <dc:creator>JohnHauck</dc:creator>
      <dc:date>2010-05-03T15:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Width/Height of Rectangle in Arobjects of VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338000#M8865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes, it is feature in a polygon feature class. I didn't find which Interface can fogure out the width/Hight of a rectangle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;jessie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 15:26:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338000#M8865</guid>
      <dc:creator>jessieleo</dc:creator>
      <dc:date>2010-05-03T15:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Width/Height of Rectangle in Arobjects of VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338001#M8866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is this a feature in a feature class? ArcObjects provide many classes for working with and getting information about geometries but the geometries have to be defined in the correct way. Please provide some additional details.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, it is feature in a polygon feature class. I didn't find which Interface can figure out the width/Height of a rectangle .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: it is rectangle with any rotation instead of Envelop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;jessie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 16:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338001#M8866</guid>
      <dc:creator>jessieleo</dc:creator>
      <dc:date>2010-05-03T16:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Width/Height of Rectangle in Arobjects of VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338002#M8867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting problem. I assume you have more then one to calculate? You have a whole table full of rotated envelopes? Does each feature know its rotation angle? If so they you can rotate them back to 0 or 90 degrees with the ITransform2D and then get its width and height. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another idea...if you know that there are 4 vertices that make up your polygon (plus a 5th to close the polygon) you can calculate the distance between vertex 0 and 1 and then calculate the distance between vertex 0 and 3 and that should give you the rotated width and height.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 16:32:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338002#M8867</guid>
      <dc:creator>EricPaitz</dc:creator>
      <dc:date>2010-05-03T16:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Width/Height of Rectangle in Arobjects of VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338003#M8868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works for your option 1. Option 2 not working due to there are more than 5 points in a polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jessie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 18:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338003#M8868</guid>
      <dc:creator>jessieleo</dc:creator>
      <dc:date>2010-05-03T18:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Width/Height of Rectangle in Arobjects of VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338004#M8869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good Afternoon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering, would it be possible to calculate the width and height of a polygon in ArcGIS 10 to eliminate slithers of polygons as the width should be smaller than the height of a polygon possibly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would be great to hear from you regard this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 00:58:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338004#M8869</guid>
      <dc:creator>AndrewHansford</dc:creator>
      <dc:date>2011-06-02T00:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Width/Height of Rectangle in Arobjects of VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338005#M8870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem depends on what you consider width and height.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Technically speaking, with complex polygons, there is not such thing as height.&amp;nbsp; There is the longest diagonal and perhaps the complement diagonal.&amp;nbsp; If your polygon has only four vertices than it becomes a tetragon or quadrilateral, if all the angles are 90 degrees it is a rectangle.&amp;nbsp; If you can reduce your polygons to 4 vertices (taking out vertices where the angle is close to 180 degrees for example) you can get a rectangle or a pseudo rectangle if the angles are close enough to 90.&amp;nbsp; Once you have a rectangle, pick any corner and calculate the distance to the next vertex and to the previous vertex (a line between two vertices is a ILine).&amp;nbsp; That should get you width and height.&amp;nbsp; If you have large polygons near one of the poles, depending on the coordinate system you would get different results depending on which vertices you start with, perhaps an average would be appropriate.&amp;nbsp; As to which is the width and height, that depends on you definition of them (longest, most north-south, perpendicular to a road, etc.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 13:24:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338005#M8870</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-06-02T13:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Width/Height of Rectangle in Arobjects of VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338006#M8871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As for sliver polygons, I find the area to perimeter (length) ratio to be the best.&amp;nbsp; Slivers tend to be bellow an area threshold and have a low area to length ratio.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 13:27:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-get-the-width-height-of-rectangle-in/m-p/338006#M8871</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-06-02T13:27:21Z</dc:date>
    </item>
  </channel>
</rss>

