Select to view content in your preferred language

Get Extent From FeatureClass

1056
1
09-25-2012 05:31 AM
DanielLaidlaw
Deactivated User
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
Honored Contributor
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