OLE compatibility for providing access to members that control the properties of all map projections.
Members
Name | Description | |
---|---|---|
Abbreviation | The abbreviated name of this spatial reference component. | |
Alias | The alias of this spatial reference component. | |
Classification | The classification of a map projection. | |
FactoryCode | The factory code (WKID) of the spatial reference. | |
GetDefaultParameters | Safearray wrapper for returning the set of default parameters needed for this projection. | |
Name | The name of this spatial reference component. | |
Remarks | The comment string of this spatial reference component. | |
Usage | The usage notes of a map projection. |
IProjectionGEN.Classification Property
The classification of a map projection.
Public ReadOnly Property Classification As String
public string Classification {get;}
IProjectionGEN.GetDefaultParameters Method
Safearray wrapper for returning the set of default parameters needed for this projection.
Public Function GetDefaultParameters ( _
) As IParameter[]
public IParameter[] GetDefaultParameters (
);
Description
Each map projection has a particular set of parameters that it expects. Use GetDefaultParameters to return a list of the parameters. Every map projection supports FalseEasting and FalseNorthing. The other parameters are listed below.
AitoffCentralMeridian
AlbersCentralMeridianStandardParallel1StandardParallel2LatitudeOfOrigin
Azimuthal_EquidistantCentralMeridianLatitudeOfOrigin
BehrmannCentralMeridian
BonneCentralMeridianStandardParallel1
CassiniCentralMeridianScaleFactorLatitudeOfOrigin
Craster_ParabolicCentralMeridian
Cylindrical_Equal_AreaCentralMeridianStandardParallel1
Double_StereographicCentralMeridianScaleFactorLatitudeOfOrigin
Eckert_ICentralMeridian
Eckert_IICentralMeridian
Eckert_IIICentralMeridian
Eckert_IVCentralMeridian
Eckert_VCentralMeridian
Eckert_VICentralMeridian
Equidistant_ConicCentralMeridianStandardParallel1StandardParallel2LatitudeOfOrigin
Equidistant_CylindricalCentralMeridianStandardParallel1
Flat_Polar_QuarticCentralMeridian
Gall_StereographicCentralMeridian
Gauss_KrugerCentralMeridianScaleFactorLatitudeOfOrigin
GnomonicLongitudeOfCenterLatitudeOfCenter
Hammer_AitoffCentralMeridian
Hotine_Oblique_Mercator_Azimuth_CenterScaleFactorAzimuthLongitudeOfCenterLatitudeOfCenter
Hotine_Oblique_Mercator_Azimuth_Natural_OriginScaleFactorAzimuthLongitudeOfCenterLatitudeOfCenter
Hotine_Oblique_Mercator_Two_Point_CenterLatitudeOf1stLatitudeOf2ndScaleFactorLongitudeOf1stLongitudeOf2ndLatitudeOfCenter
Hotine_Oblique_Mercator_Two_Point_Natural_OriginLatitudeOf1stLatitudeOf2ndScaleFactorLongitudeOf1stLongitudeOf2ndLatitudeOfCenter
KrovakPseudoStandardParallel1ScaleFactorAzimuthLongitudeOfCenterLatitudeOfCenterXScaleFactorYScaleFactorRotation
Lambert_Azimuthal_Equal_AreaCentralMeridianLatitudeOfOrigin
Lambert_Conformal_ConicCentralMeridianStandardParallel1StandardParallel2ScaleFactorLatitudeOfOrigin
LocalScaleFactorAzimuthLongitudeOfCenterLatitudeOfCenter
LoximuthalCentralMeridianCentralParallel
MercatorCentralMeridianStandardParallel1
Miller_CylindricalCentralMeridian
MollweideCentralMeridian
New_Zealand_Map_GridLongitudeOfOriginLatitudeOfOrigin
OrthographicLongitudeOfCenterLatitudeOfCenter
Plate_CarreeCentralMeridian
PolyconicCentralMeridianLatitudeOfOrigin
Quartic_AuthalicCentralMeridian
Rectified_Skew_Orthomorphic_CenterScaleFactorAzimuthLongitudeOfCenterLatitudeOfCenterRotation
Rectified_Skew_Orthomorphic_Natural_OriginScaleFactorAzimuthLongitudeOfCenterLatitudeOfCenterRotation
RobinsonCentralMeridian
Robinson_ARC_INFOCentralMeridian
SinusoidalCentralMeridian
StereographicCentralMeridianScaleFactorLatitudeOfOrigin
Stereographic_North_PoleCentralMeridianStandardParallel1
Stereographic_South_PoleCentralMeridianStandardParallel1
TimesCentralMeridian
Transverse_MercatorCentralMeridianScaleFactorLatitudeOfOrigin
Transverse_Mercator_ComplexCentralMeridianScaleFactorLatitudeOfOrigin
Two_Point_EquidistantLatitudeOf1stLatitudeOf2ndLongitudeOf1stLongitudeOf2nd
Van_der_Grinten_ICentralMeridian
Vertical_Near_Side_PerspectiveLongitudeOfCenterLatitudeOfCenterHeight
Winkel_ICentralMeridianStandardParallel1
Winkel_IICentralMeridianStandardParallel1
Winkel_TripelCentralMeridianStandardParallel1
private void PrintProjectionParameters()
{
// use activator class with SpatialReferenceEnvironment singleton
Type factoryType = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment");
System.Object obj = Activator.CreateInstance(factoryType);
ISpatialReferenceFactory spatialReferenceFactory = obj as ISpatialReferenceFactory;
//IProjection does not work under .NET so use IProjectionGEN
IProjectionGEN projection = spatialReferenceFactory.CreateProjection((int)esriSRProjectionType.esriSRProjection_Albers) as IProjectionGEN;
IParameter[] paramters = projection.GetDefaultParameters();
//Return Albers parameters
for (int i = 0; i < paramters.Length; i++)
{
System.Windows.Forms.MessageBox.Show(paramters[i].Name);
}
}
IProjectionGEN.Usage Property
The usage notes of a map projection.
Public ReadOnly Property Usage As String
public string Usage {get;}
Inherited Interfaces
Interfaces | Description |
---|---|
ISpatialReferenceInfo | Provides access to members that control the properties common to all components of a spatial reference system. |
Classes that implement IProjectionGEN
Classes | Description |
---|---|
Projection | Creates a map projection. |