GetFCExtentSum

Created:12/18/2000
Description:

This sample calculates the XY, M and Z extent and scale of a list of featureclasses. The sample provides an example of using a GxDialog with a GxFilterObject. When the browser is displayed, only shapefiles and coverages can be selected. The selected featureclasses are added to a list box. The the min/max is found from the list. In addition, this sample provides a example of using the ISpatialReference interface. Extent and scale can be examined for a featureclass selected from the list box. Extent and scale for measures and z values are calculated when present.

How to use:
  1. Load the project into Visual Basic and run.

Application:
Standalone sample

Difficulty: Intermediate


Visual Basic
File Description
GetExtent.frm VB form for the main user interface
frmDisplayFCExtent.frm VB Form for reporting extent and scale on selected featureclass
GetExtent.vbp Visual Basic project file
FCUtilities.cls VB class module holding featureclass and general functions
IsFilterCoverShapeClass.cls VB class module holding GxFilterObject implementation


Key CoClasses: SpatialReference, GxDialog
Key Interfaces: ISpatialReference, IGxDisplay, IGxObjectFilter, IGxObject
Key Members: IGxDialog::DoModalOpen, IGxDialog::Title, IGxDialog::ButtonCaption, IGxDialog::AllowMultiSelect, IGxDialog::RememberLocation, IGxDialog::ObjectFilter, IGxDialog::StartingLocation, IGxDialog::FinalLocation, ISpatialReference::GetMDomain, ISpatialReference::GetZDomain, ISpatialReference::GetXYDomain, ISpatialReference::SetMDomain, ISpatialReference::SetZDomain, ISpatialReference::SetXYDomain, ISpatialReference::GetMFalseOriginAndUnits, ISpatialReference::GetZFalseOriginAndUnits, ISpatialReference::GetXYFalseOriginAndUnits