GetSpatialReferenceInfo

Created:12/18/2000
Description:

This sample opens a featureclass and displays it's spatial reference information, this includes the projection and coordinate reference.

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

Application:
Standalone sample

Difficulty: Intermediate


Visual Basic
File Description
GetSpatialReferenceInfo.frm VB Form for reporting extent and scale on selected featureclass
GetSpatialReferenceInfo.vbp Visual Basic project file


Key CoClasses: SpatialReference, GxDialog
Key Interfaces: ISpatialReferencee, IGeographicCoordinateSysteme, IProjectedCoordinateSysteme, IUnknownCoordinateSysteme, IParameterArraye, IGxDisplay, IGxObjectFilter, IGxObject
Key Members: ISpatialReference::Name, ISpatialReference::HasXYPrecision, ISpatialReference::GetFalseOriginAndUnits, ISpatialReference::GetDomain, ISpatialReference::HasZPrecision, ISpatialReference::GetZFalseOriginAndUnits, ISpatialReference::GetZDomain, ISpatialReference::HasMPrecision, ISpatialReference::GetMFalseOriginAndUnits, ISpatialReference::GetMDomain, IGeographicCoordinateSystem::CoordinateUnit.Name, IGeographicCoordinateSystem::Datum.Name, IGeographicCoordinateSystem::Datum.Spheroid.Name, IGeographicCoordinateSystem::Datum.Spheroid.Flattening, IGeographicCoordinateSystem::Datum.Spheroid.SemiMajorAxis, IGeographicCoordinateSystem::Datum.Spheroid.SemiMinorAxis, IGeographicCoordinateSystem::PrimeMeridian.Name, IGeographicCoordinateSystem::PrimeMeridian.Longitude, IGeographicCoordinateSystem::PrimeMeridian.FactoryCode, IProjectedCoordinateSystem::CoordinateUnit.Name, IProjectedCoordinateSystem::CoordinateUnit.ConversionFactor, IProjectedCoordinateSystem::FactoryCode, IProjectedCoordinateSystem::Projection.Name, IProjectedCoordinateSystem::Projection.Classification, IProjectedCoordinateSystem::Projection.FactoryCode, IProjectedCoordinateSystem::FactoryCode, IProjectedCoordinateSystem::FalseEasting, IProjectedCoordinateSystem::FalseNorthing, IProjectedCoordinateSystem::GeographicCoordinateSystem.Name, IProjectedCoordinateSystem::GetParameters, IUnknownCoordinateSystem, IParameterArray::Name, IParameterArray::Value, IGxDialog::DoModalOpen, IGxDialog::Title, IGxDialog::ButtonCaption, IGxDialog::AllowMultiSelect, IGxDialog::RememberLocation, IGxDialog::ObjectFilter, IGxDialog::StartingLocation, IGxDialog::FinalLocation