<?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: Is there a way to get full extent of polygon without looping through features in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/solved-is-there-a-way-to-get-full-extent-of/m-p/529239#M14292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The featureclass class implements the IGeodataset that has an extent property, is this what you are looking for?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2011 15:29:42 GMT</pubDate>
    <dc:creator>AlexanderGray</dc:creator>
    <dc:date>2011-09-23T15:29:42Z</dc:date>
    <item>
      <title>[SOLVED]Is there a way to get full extent of polygon without looping through features</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/solved-is-there-a-way-to-get-full-extent-of/m-p/529238#M14291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is hopefully an easy one for someone but my searches have given up nothing on the subject.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to get the maximum extent of a polygon shapefile without looping through each of the features in the featureclass?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a polygon with 100,000+ features in it.&amp;nbsp; I want to have the maximum extent of the polygon for another operation I am doing.&amp;nbsp; It seems silly and time consuming that I would have to loop through every single feature to get the maximum extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 15:14:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/solved-is-there-a-way-to-get-full-extent-of/m-p/529238#M14291</guid>
      <dc:creator>WoodrowFields</dc:creator>
      <dc:date>2011-09-23T15:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get full extent of polygon without looping through features</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/solved-is-there-a-way-to-get-full-extent-of/m-p/529239#M14292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The featureclass class implements the IGeodataset that has an extent property, is this what you are looking for?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 15:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/solved-is-there-a-way-to-get-full-extent-of/m-p/529239#M14292</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-09-23T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get full extent of polygon without looping through features</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/solved-is-there-a-way-to-get-full-extent-of/m-p/529240#M14293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That was the trick, thanks a million agray1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so for anyone else scratching their heads on this one here is the code snippet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Dim pFWS As IFeatureWorkspace
Dim pWSF As IWorkspaceFactory
Set pWSF = New ShapefileWorkspaceFactory
Set pFWS = pWSF.OpenFromFile("C:\Temp", 0)

Dim pfeatureclass As IFeatureClass
Set pfeatureclass = pFWS.OpenFeatureClass("PolyShapefileName")

Dim pgeodataset As IGeoDataset
Set pgeodataset = pfeatureclass
x1 = pgeodataset.Extent.XMax 'this is the right most point of the polygon extent
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:02:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/solved-is-there-a-way-to-get-full-extent-of/m-p/529240#M14293</guid>
      <dc:creator>WoodrowFields</dc:creator>
      <dc:date>2021-12-11T23:02:42Z</dc:date>
    </item>
  </channel>
</rss>

