Get Extent From FeatureClass

887
1
09-25-2012 05:31 AM
DanielLaidlaw
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
0 Kudos
1 Reply
NeilClemmons
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.
0 Kudos