Global Mapper SDK
| GM_Projection_t .GetProjectionValues Method |
Creates a new projection object using a comprehensive set of
codes to define all coordinate system parameters. The only
necessary parameter is the horizontal coord system code, all
others are optional and will be supplied with defaults by GeoCalc.
The parameters can also be used to specify a target projection
and transformation to supply a way for users to define
conversions between CRS's. The codes are assumed to be GC codes,
but if none is found, GeoCalc will fall back to EPSG codes, and
then BMG strings.
Namespace:GlobalMapper.Types
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 27.0.0.0 (27.0.0.0)
C#
public static GM_Error_t32 GetProjectionValues(GM_Projection_t aProj, string aHorizontalCRSCode, string aVerticalCRSCode, string aHorizontalUnitCode, string aVerticalUnitCode, string aTargetHorizontalCRSCode, string aTargetVerticalCRSCode, double aSourceEpoch, double aTargetEpoch, double aCentralLongitude, GM_CoordTransform_t aCoordTransform)
Parameters
- aProj
- Type: GlobalMapper.GM_Projection_t
OUT: The created projection object. - aHorizontalCRSCode
- Type: System.String
OUT: Horizontal CRS code as string (e.g. "4326"). Required. - aVerticalCRSCode
- Type: System.String
OUT: Vertical CRS code as string. Optional (empty for default). - aHorizontalUnitCode
- Type: System.String
OUT: Horizontal unit code as string. Optional (empty for default). - aVerticalUnitCode
- Type: System.String
OUT: Vertical unit code as string. Optional (empty for default). - aTargetHorizontalCRSCode
- Type: System.String
OUT: Target horizontal CRS code as string. Optional (empty for default). - aTargetVerticalCRSCode
- Type: System.String
OUT: Target vertical CRS code as string. Optional (empty for default). - aSourceEpoch
- Type: System.Double
OUT: Source epoch value. Optional (use 0.0 if not applicable). - aTargetEpoch
- Type: System.Double
OUT: Target epoch value. Optional (use 0.0 if not applicable). - aCentralLongitude
- Type: System.Double
OUT: Central longitude override (degrees). Optional. - aCoordTransform
- Type: GlobalMapper.GM_CoordTransform_t
OUT: Coordinate transformation definition.
Return Value
Type: GM_Error_t32GM Error Code
Comments
0 comments
Please sign in to leave a comment.