Answers:
签出“ 最小边界几何”工具。将“ all”指定为组选项,以获得代表您的特征包络的单个特征。
FeatureClass支持IGeoDataset接口,该接口具有一个Extent属性,其中包含所有功能使用的IEnvelope
欢呼布莱恩
如果要在9.3x中使用arcgisscripting Python模块:
import arcgisscripting
gp = arcgisscripting.create(9.3)
fc = "C:/workshop/exercises/exercise1/data/stlouis_cities_geog.shp"
fcDesc = gp.describe(fc)
shpExtent = fcDesc.extent
print("Bounding Box: " + str(shpExtent.XMin) + "," + str(shpExtent.YMin) + "," + str(shpExtent.XMax) + "," + str(shpExtent.YMax))
del fc, gp