Get Extent From FeatureClass

693
1
09-25-2012 05:31 AM
New Contributor
Would anyone happen to know how we get the extent from a featureClass.

I know we can get the extent by looping through each feature using a cursor, but that seems like an overkill. Is there a better way to get the extent?

Appreciate any help.
Dan
Reply
0 Kudos
1 Reply
Regular Contributor III
You can get the extent of the feature class from IGeoDataset.Extent.  See the developer help for more info on what the envelope it returns actually is.
Reply
0 Kudos