Global Mapper SDK 19 中文开发文档(十一)

7.2.34 GM_PointFeature_t 

(1)声明
public class GM_PointFeature_t : IDisposable
(2)构造函数
public GM_PointFeature_t()
(3)方法
方法描述
Dispose释放与此类关联的未管理的内存。
Finalize终结器,重写 Object.Finalize()。
GetFeatureClassInfo检索有关给定要素类的信息。
SetPointClassEnabled启用或禁用给定要素类的显示。返回先前的启用/禁用状态。
Dispose
public void Dispose()
Finalize
protected override void Finalize()
GetFeatureClassInfo
public static GM_Error_t32 GetFeatureClassInfo(
	PointFeatureClass_t16 aFeatureClass,            //Feature class to get info for
	out GM_FeatureClassInfo_t aFeatureClassInfo     //Info about the feature class
)
SetPointClassEnabled 
public static bool SetPointClassEnabled(
	PointFeatureClass_t16 aFeatureClass,    //Feature class to get info for
	bool aEnable                            //Enable or disable the feature class
)
(4)字段
字段描述
mFeatureInfo返回要素信息(用于更新各种更新功能)。
mPointStyle点渲染样式(符号和字体)(只读使用SetPointStyle()成员函数进行设置)。
mPos点的位置(获取时为全局坐标,添加要素时为本地坐标)。

 7.2.35 GM_PointStyle_t

(1)声明
public class GM_PointStyle_t
(2)构造函数
public GM_PointStyle_t()

public GM_PointStyle_t(
	string aSymbolName,        //Name of symbol
	GM_FontDef_t aFont,        //Font to use to render label
	bool aDrawLabel,           //Render the label for this line if there is one
	bool aDrawLabelAlways,     //Render the label for this line even if it collides with another display label
	ushort aRotation,          //Rotation angle in degrees (0 is up/north, 90 right/east, etc.) and rotation sense flags
	float aScale               //Symbol scaling factor to apply (use negative values to make symbol a fixed height in meters, i.e. -10 would make symbol 10 meters high)
)
(3)方法
方法描述
AddCustomPointClass添加一个新的自定义点分类。
AddCustomSymbol添加一个新的自定义符号,可以在绘制点要素时使用(参见GM_SetPointFeatureDrawStyle函数)。
GetAvailableSymbolNames返回可用符号名称的列表(返回char **)。
GetPointFeatureClassDrawStyle设置给定点要素分类的默认绘制样式。
RemoveCustomSymbol移除自定义符号。
SetPointFeatureClassDrawStyle设置给定点要素分类的默认绘制样式。
AddCustomPointClass
public static GM_Error_t32 AddCustomPointClass(
	string aName,                            //Custom type name
	GM_PointStyle_t aStyle,                  //Default draw style for features of this type
	out PointFeatureClass_t16 aFeatureCode   //Classification code for new type
)
AddCustomSymbol
public static GM_Error_t32 AddCustomSymbol(
	string aSymbolFilename,    //Full path to symbol file (BMP or ICO)
	string aSymbolName         //Text name to use when referring to the symbol
)
GetAvailableSymbolNames
public static string[] GetAvailableSymbolNames()
GetPointFeatureClassDrawStyle
public static GM_Error_t32 GetPointFeatureClassDrawStyle(
	PointFeatureClass_t16 aFeatureClass,    //Feature class to get draw style for
	out GM_PointStyle_t aPointStyle         //Current draw style for point classification
)
RemoveCustomSymbol
public static GM_Error_t32 RemoveCustomSymbol(
	string aSymbolName    //Text name to use when referring to the symbol
)
SetPointFeatureClassDrawStyle 
public static GM_Error_t32 SetPointFeatureClassDrawStyle(
	PointFeatureClass_t16 aFeatureClass,    //Feature class to set draw style for
	GM_PointStyle_t aPointStyle             //New style to use for point class (NULL to reset to default)
)

7.2.36 GM_Projection_t

(1)声明
public class GM_Projection_t
(2)构造函数
public GM_Projection_t()
(3)属性
属性描述
mAttr使用AddAttr或RemoveAttr编辑属性值列表项。
(4)方法 
方法描述
AddAttr在属性列表的末尾添加一个属性。如果列表已满,则返回false。
AddCustomDatum使用给定参数添加新的自定义基准。
AddCustomEllipsoid使用给定参数添加新的自定义椭球体。
AreProjectionsEquivalent检查两个投影是否等效。
DecodeMGRSCoordinates将MGRS(军事网格参考系统)坐标解码为X/Y或纬度/经度位置。
GetAvailableProjectionList检索所有可用投影及其可用参数、基准、单位等的列表。返回GM_ProjectionInfo_t*(GM_ProjectionInfo_t结构的数组)。
GetBase检索构成给定投影基础的基本投影。
GetBaseProjection检索构成给定投影基础的基本投影。
GetDatumInfo获取特定基准的参数。
GetMGRSCoordinates获取位置的MGRS(军事网格参考系统)坐标。
GetProjection获取当前的视图/导出投影。
LoadProjectionFile从投影(PRJ、Ozi .map等)文件中初始化GM_Projection_t结构。
LoadProjectionFromEPSGCode从EPSG代码中初始化GM_Projection_t结构。
LoadProjectionFromWKTString从WKT投影字符串中初始化GM_Projection_t结构。
RemoveAttr从属性列表中指定的索引处删除一个属性。如果列表为空或索引超出范围,则返回false。
SaveProjectionToFile将GM_Projection_m结构保存为投影(PRJ)文件。
SaveProjectionToString将GM_Projection_t结构保存为WKT投影字符串。
SaveToFile将GM_Projection_m结构保存为投影(PRJ)文件。
SaveToString将GM_Projection_t结构保存为WKT投影字符串。
SelectProjection显示投影选择对话框,以允许用户选择投影。
SelectProjectionEx显示投影选择对话框,以允许用户选择投影。
SetAsProjection设置新的投影。所有绘制和导出操作都将在此投影中完成。所有世界边界矩形也将使用此投影。该版本允许提供一个纬度/经度边界矩形,以便自动选择最佳的分区投影区域。
SetProjection设置新的投影。所有绘制和导出操作都将在此投影中完成。所有世界边界矩形也将使用此投影。该版本允许提供一个纬度/经度边界矩形,以便自动选择最佳的分区投影区域。
SetProjectionEx设置新的投影。所有绘制和导出操作都将在此投影中完成。所有世界边界矩形也将使用此投影。该版本允许提供一个纬度/经度边界矩形,以便自动选择最佳的分区投影区域。
SetQueryProjectionCallback设置在加载图层时为图层选择投影的函数,如果无法自动确定图层的投影。如果提供了回调函数,则将调用该函数,而不显示投影选择对话框。
AddAttr
public bool AddAttr(
	GM_ProjAttrValue_t aAttr    //The Attribute to add
)
AddCustomDatum
public static GM_Error_t32 AddCustomDatum(
	ref GM_DatumInfo_t aDatumInfo,    //Information about datum transformation to add
	out DATUM aDatumCode              //Datum code assigned to new custom datum
)
AddCustomEllipsoid
public static GM_Error_t32 AddCustomEllipsoid(
	string aEllipsoidName,    //Name of ellipsoid
	double aSemiMajor,        //Semi-major axis in meters
	double aSemiMinor         //Semi-minor axis in meters
)
AreProjectionsEquivalent
public static GM_Error_t32 AreProjectionsEquivalent(
	GM_Projection_t aProj1,    //First projection to check
	GM_Projection_t aProj2,    //Second projection to check
	out bool aEquivalent       //Are they the same
)
DecodeMGRSCoordinates
public static GM_Error_t32 DecodeMGRSCoordinates(
	string aMgrsStr,    //buffer with MGRS coordinate text
	out double aX,      //point X/longitude coordinate
	out double aY,      //point Y/latitude coordinate
	bool aLatLon        //TRUE - return coordinates are lat/lon, FALSE - return coordinates are in the current projection
)
GetAvailableProjectionList
public static GM_ProjectionInfo_t[] GetAvailableProjectionList()
GetBase
public GM_Error_t32 GetBase(
	out GM_Projection_t aProjBase    //projection on which the input projection is based
)
GetBaseProjection
public static GM_Error_t32 GetBaseProjection(
	GM_Projection_t aProjIn,        //projection to convert from (NULL for current)
	out GM_Projection_t aProjBase   //projection on which the input projection is based
)
GetDatumInfo
public static GM_Error_t32 GetDatumInfo(
	DATUM aDatumCode,                //Datum code to get information about
	out GM_DatumInfo_t aDatumInfo    //Information about datum transformation for datum
)
GetMGRSCoordinates
public static GM_Error_t32 GetMGRSCoordinates(
	double aX,            //point X/longitude coordinate
	double aY,            //point Y/latitude coordinate
	bool aLatLon,         //TRUE - coordinates are lat/lon, FALSE - coordinates are in the current projection
	out string aMgrsStr   //MGRS coordinate text
)
GetProjection
public static GM_Error_t32 GetProjection(
	out GM_Projection_t aProj    //Current view/export projection
)
LoadProjectionFile
public static GM_Error_t32 LoadProjectionFile(
	string aFilename,            //filename of projection file to load
	out GM_Projection_t aProj    //buffer in which to place decoded projection.
)
LoadProjectionFromEPSGCode
public static GM_Error_t32 LoadProjectionFromEPSGCode(
	uint aEpsgCode,                //EPSG code to get projection from
	out GM_Projection_t aProj      //buffer in which to place decoded projection.
)
LoadProjectionFromWKTString
public static GM_Error_t32 LoadProjectionFromWKTString(
	string aStr,                //String to decode projection from
	out GM_Projection_t aProj   //buffer in which to place decoded projection.
)
RemoveAttr
public bool RemoveAttr(
	int aIndex    //Index of Attr to remove
)
SaveProjectionToFile
public static GM_Error_t32 SaveProjectionToFile(
	string aFilename,        //Filename of projection file to save to
	GM_Projection_t aProj,   //Projection to save
	uint aReserved           //Reserved for future use, must be 0
)
SaveProjectionToString
public static GM_Error_t32 SaveProjectionToString(
	GM_Projection_t aProj,    //Projection to save
	out string aProjStr,      //Buffer to store string in
	uint aMaxLength,          //Size of string buffer
	uint aReserved            //Reserved for future use, must be 0
)
SaveToFile
public GM_Error_t32 SaveToFile(
	string aFilename,    //Filename of projection file to save to
	uint aReserved       //Reserved for future use, must be 0
)
SaveToString
public GM_Error_t32 SaveToString(
	out string aProjStr,    //Buffer to store string in
	uint aMaxLength,        //Max length of string buffer
	uint aReserved          //Reserved for future use, must be 0
)
SelectProjection
public static GM_Error_t32 SelectProjection(
	out GM_Projection_t aSelProj,    //projection selected by user
	GM_Projection_t aInitProj        //initial projection to use (NULL for default)
)
SelectProjectionEx
public static GM_Error_t32 SelectProjectionEx(
	out GM_Projection_t aSelProj,    //projection selected by user
	GM_Projection_t aInitProj,       //initial projection to use (NULL for default)
	Point aDlgPos,                   //position of top left corner (in screen coordinates) for projection dialog (NULL for default)
	GM_SelectProjFlags_t32 aFlags,   //additional flags for projection selection
	Object aReserved                 //reserved for future use (must be NULL)
)
SetAsProjection
public GM_Error_t32 SetAsProjection(
	GM_Rectangle_t aLatLonRect = null    //Optional lat/lon/degrees rectangle for automatic selection of zone for zoned projections
)
SetProjection
public static GM_Error_t32 SetProjection(
	GM_Projection_t aProj    //The projection to set, if null reset projection
)
SetProjectionEx
public static GM_Error_t32 SetProjectionEx(
	GM_Projection_t aProj,        //The projection to set, if null reset projection
	GM_Rectangle_t aLatLonRect,   //Optional lat/lon/degrees rectangle for automatic selection of zone for zoned projections
	Object aReserved              //reserved for future use (must be NULL)
)
SetQueryProjectionCallback
public static void SetQueryProjectionCallback(
	GM_QueryProjectionCallbackDef aCallbackFunc    //The function to call
)
(5)字段
字段描述
mDatum水平基准。
mProjSys投影系统。
mUnit地面单位。

7.2.37  GM_ProjectionInfo_t

(1)声明
public class GM_ProjectionInfo_t
(2)构造函数
public GM_ProjectionInfo_t()
(3)字段
字段描述
mAttrList可用于此投影的PROJATTR值列表。
MAX_PROJATTRGM_Projection_t上可以拥有的最大属性数量。
mDatumList可用于此投影的DATUM值列表。
mProjSys投影系统。
mProjSysName投影系统名称。
mUnitList可用于此投影的UNIT值列表。
mZoneList可用于此投影的区域编号列表。

 7.2.38 GM_RasterDisplayOptions_t

(1)声明
public class GM_RasterDisplayOptions_t
(2)构造函数
public GM_RasterDisplayOptions_t()
(3)字段
字段描述
mAutoClipCollar自动裁剪DRG、BSB或其他已知边界。
mBandIdxBlue用于蓝色通道的颜色带索引(从0开始)。
mBandIdxGreen用于绿色通道的颜色带索引(从0开始)。
mBandIdxRed用于红色通道的颜色带索引(从0开始)。
mBandLayoutValid颜色带布局值是否有效。
mBlendMode混合模式,用于将该栅格图层与底层图层混合或解释图层的颜色值。
mBlueAdjustPercent调整红色通道的百分比(-100至100)。
mColorGradeBlueInMax最大蓝色输入颜色值。
mColorGradeBlueInMin最小蓝色输入颜色值。
mColorGradeBlueOutMax最大蓝色输出颜色值。
mColorGradeBlueOutMin最小蓝色输出颜色值。
mColorGradeGreenInMax最大绿色输入颜色值。
mColorGradeGreenInMin最小绿色输入颜色值。
mColorGradeGreenOutMax最大绿色输出颜色值。
mColorGradeGreenOutMin最小绿色输出颜色值。
mColorGradeRedInMax最大红色输入颜色值。
mColorGradeRedInMin最小红色输入颜色值。
mColorGradeRedOutMax最大红色输出颜色值。
mColorGradeRedOutMin最小红色输出颜色值。
mColorGradeSaturation饱和度(有效范围0.0 - 1.0)。
mColorGradeValid颜色等级选项是否有效。
mColorIntensity颜色强度(0-20)。较低的值表示较浅,较高的值表示较暗。
mContrastMode对比度调整模式。
mContrastNumStdDev从平均值拉伸的标准偏差数(如果使用0,则使用默认值2)。
mContrastShared对比度调整是否与其他加载的图层共享。
mGreenAdjustPercent调整红色通道的百分比(-100至100)。
mRedAdjustPercent调整红色通道的百分比(-100至100)。
mSamplingMethod指定该图层的显示和导出所使用的重采样方式。
mSize结构体大小。
mTextureMap将该栅格图层作为纹理映射到任何底层高程图层上。
mTranslucency图层的透明度水平(0-完全透明,512-完全不透明)。
mTransparent图层是否透明。
mTransparentColor用于透明的颜色。
mTransparentColorDist模糊透明度支持。距离透明颜色的距离,以将附近的颜色处理成透明。
mTransparentColorList需要透明的颜色列表。

7.2.39 GM_RasterLayout_t

 (1)声明
public class GM_RasterLayout_t
(2)构造函数
public GM_RasterLayout_t()
(3)字段
字段描述
mAlphaBandIdx基于0的Alpha通道带索引(通常为0或3)。除非设置了GM_RasterLayout_AlphaPresent标志,否则将被忽略。
mBitsPerBand每个数据带的位数(通常为8)。
mBytesPerRow数据缓冲区中每行数据的字节数。如果为0,将为您计算。
mFlags布局的一般标志。
mNumBands数据的带数(通常为1表示灰度图像或3表示RGB图像)。
mPalette调色板的颜色数组(如果不使用调色板,则设置为NULL)。
mPixelHeight在y方向上的像素数。
mPixelWidth在x方向上的像素数。
mTopLeft左上角像素的地面坐标。
mXPixelSize每个像素在x方向上的大小。
mYPixelSize每个像素在y方向上的大小。

7.2.40  GM_Rectangle_t

(1)声明
public class GM_Rectangle_t
(2)构造函数
public GM_Rectangle_t()

public GM_Rectangle_t(
	double aMinX,    //Minimum x/easting/longitude coordinate
	double aMinY,    //Minimum y/northing/latitude coordinate
	double aMaxX,    //Maximum x/easting/longitude coordinate
	double aMaxY     //Maximum y/northing/latitude coordinate
)
(3)字段
字段描述
mMaxX最大x / 东经 / 经度坐标。
mMaxY最大y / 北纬 / 纬度坐标。
mMinX最小x / 东经 / 经度坐标。
mMinY最小y / 北纬 / 纬度坐标。

 7.2.41 GM_Utility

(1)声明
public static class GM_Utility
(2)方法
方法描述
AddAreaToVectorLayer添加一个区域要素到加载的矢量图层中。
AddCustomAreaClass添加一个新的自定义区域分类。
AddCustomShader添加一个新的自定义着色器,可能用于高程图层显示。
AreColorsEqual比较颜色的相等性,不包括A值。
CalcAreaElevStats计算给定区域内的高程统计数据。
CalcBearing计算两点之间的方位角(弧度)。点可以用纬度/经度值或当前投影中指定。
CalcDistance计算两点之间的大圆距离(以米为单位)。点可以用纬度/经度值或当前投影中指定。
CalcEnclosedArea计算一个区域的面积(以平方米为单位)。
CalcProjectedLocation计算从起点沿着给定方位角投影出的新点的位置。
CalcScaleRectangle根据提供的比例尺和设备尺寸计算绘制所需的全局坐标的矩形。
CalcViewShed对加载的高程数据执行可视域分析(未在WinCE上实现)。
CalcVolumeAlongLine计算沿给定线路的挖填体积(未在WinCE上实现)。
CalcVolumeOfArea计算给定区域内的挖填体积(未在WinCE上实现)。
CalcWorldRectSize计算当前投影中矩形的宽度和高度。矩形可以是指定的,也可以使用最后绘制的矩形。
ConvertCoordGroundToPixel在当前投影和像素坐标之间转换。转换空间可以是最后绘制的坐标空间,也可以由调用者提供要使用的坐标空间。
ConvertCoordGroundToPixelDouble在当前投影和像素坐标之间转换。转换空间可以是最后绘制的坐标空间,也可以由调用者提供要使用的坐标空间。
ConvertCoordGroundToPixelWithOrientation在当前投影和像素坐标之间转换。转换空间可以是最后绘制的坐标空间,也可以由调用者提供要使用的坐标空间。
ConvertCoordGroundToPixelWithOrientationDouble在当前投影和像素坐标之间转换。转换空间可以是最后绘制的坐标空间,也可以由调用者提供要使用的坐标空间。
ConvertCoordLayerGroundToPixel在图层像素空间和当前投影之间进行坐标转换。
ConvertCoordLayerPixelToGround在图层像素空间和当前投影之间进行坐标转换。
ConvertCoordPixelToGround在像素空间和当前投影之间转换坐标。转换空间可以是最后绘制的坐标空间,也可以由调用者提供要使用的坐标空间。
ConvertCoordPixelToGroundDouble在像素空间和当前投影之间转换坐标。转换空间可以是最后绘制的坐标空间,也可以由调用者提供要使用的坐标空间。
ConvertCoordPixelToGroundWithOrientation在像素空间和当前投影之间转换坐标。转换空间可以是最后绘制的坐标空间,也可以由调用者提供要使用的坐标空间。
ConvertCoordPixelToGroundWithOrientationDouble在像素空间和当前投影之间转换坐标。转换空间可以是最后绘制的坐标空间,也可以由调用者提供要使用的坐标空间。
CreateBufferArea创建围绕指定要素的一定距离的缓冲区(未在WinCE上实现)。
CreateS63UserPermitFile为客户端创建一个S-63用户许可文件,以用于从数据提供商请求加密的S-63海图文件,用于与Global Mapper或基于Global Mapper SDK的应用程序一起加载。
DrawGridLines为指定位置绘制网格线(纬度/经度或视图投影)。
DrawGridLinesEx为指定位置绘制网格线(纬度/经度或视图投影)。
GenerateContours为给定的图层生成等值线(未在WinCE上实现)。
GenerateContoursEx为给定的图层生成等值线(未在WinCE上实现)。
GenerateDensityGrid为给定图层的点生成密度(热)网格(未在WinCE上实现)。
GenerateElevationGrid(GM_LayerList_t, GM_GridGenSetup_t, GM_Layer_t)通过对3D矢量图层进行三角剖分和网格化来生成高程网格(未在WinCE上实现)。
GenerateElevationGrid(GM_LayerList_t, GM_GridGenSetup_t, GM_Layer_t, GM_Layer_t)通过对3D矢量图层进行三角剖分和网格化来生成高程网格(未在WinCE上实现)。
GenerateRoughnessGrid通过给定的土地覆盖图层生成粗糙度网格(未在WinCE上实现)。
GenerateWatershed执行基于提供的高程图层的分水岭/排水/流计算(未在WinCE上实现)。
GetBackgroundColor获取绘制和导出时用于背景像素的颜色。
GetElevationOverrides检索用于给定高程图层的高程调整选项。
GetElevationShaders返回可用高程着色器的列表(类型为GM_CustomShader_t*)。
GetFilterString返回一个字符串,其中包含用于从此DLL加载的所有类型的Windows文件打开对话框中使用的过滤器。
GetLastDrawnScale返回数据最后渲染的比例尺值(例如1:24K的24000.0)。
GetLocationColor从提供的图层或当前加载的栅格和高程图层列表(最上层图层优先)中检索给定位置的颜色。
GetLocationElevation从提供的图层或当前加载的高程图层列表(最上层高程图层优先)中检索给定位置的高程。
GetMACAddress返回一个包含当前计算机的MAC地址的字符串。可能需要提供此信息以生成许可文件。
GetMiscOption获取高级/杂项选项的当前值。对于大多数类型,返回值为GM_MiscOptVal_t8。
GetOnlineLayerZoomScale确定绘制/导出提供的瓦片在线图层的缩放比例,以适应给定的边界。
GetPathProfile从提供的图层或当前加载的高程图层列表(最上层高程图层优先)中获取沿路径的高程列表。
GetPathProfileLOS从提供的图层或当前加载的高程图层列表(最上层高程图层优先)中获取沿路径的高程列表。还可以执行视线计算,并返回关于3D路径的其他信息(未在WinCE上实现)。
GetPathProfileLOSEx检索所提供图层列表或当前加载的高程图层列表(最顶层高程图层优先)上路径的海拔列表。还可以执行一条视线计算并返回关于3D路径的附加信息。
GetRasterDisplayOptions检索用于显示给定栅格图层的选项。
GetSDKBuildDate

返回SDK构建的日期。使用它可以为测试版本提供比GM_GetSDKVersion更精确的分辨率。

GetSDKVersion返回SDK的版本。版本号是通过将主版本号乘以100并加上次版本号获得的。例如,版本号1.04将返回为104。
GetShaderDisplayOptions检索用于高程着色器的选项[返回const GM_ShaderOptions_t*]。
GetVerticalDisplayOptions检索在显示网格高程数据时使用的选项。[返回const GM_VerticalDisplayOptions_t*]。
IsRegistered如果当前用户已注册或正在使用演示许可证,则返回TRUE。
LoadMapLayoutFile从.gm_layout文件加载地图布局,设置高程图例、比例尺、要素图例和指北针。
MapCatalogAddFile从磁盘上的文件向地图目录添加新地图。
MapCatalogAddLayer从加载的图层向地图目录添加新地图。
MapCatalogChangeMapOrder将地图从地图列表中的一个索引移动到另一个索引位置(基于0)。
MapCatalogCreate创建一个新的地图目录图层,用于添加地图图层。
MapCatalogDisableMap在地图目录中禁用/启用地图(使用GM_GetMapCatalogInfo获取地图数量)。
MapCatalogGetInfo检索有关目录的信息和统计数据(使用GM_GetLayerInfo获取通用信息)。
MapCatalogGetMapInfo检索地图目录中地图的信息(使用GM_GetMapCatalogInfo获取地图数量)。
MapCatalogRemoveMap从目录中的给定索引位置移除地图。
MapCatalogSave将地图目录图层保存到磁盘上的文件中。
MapCatalogSetDisplayInfo设置地图目录中的图层何时显示。
MapCatalogSetMapOption为地图目录中的地图设置选项,如原生投影。传递的数据取决于选项类型。
ProjectPoint将一个投影中的点投影到另一个投影中。
ProjectPointAtElev将一个点在椭球面上的固定高程上从一个投影投影到另一个投影中。
ProjectPointFromECEF将一个点从ECEF(以地心为中心,以地固为坐标)投影到一个投影中。
ProjectPointList将一组点从一个投影投影到另一个投影中。
ProjectPointToECEF将一个点从投影投影到ECEF(以地心为中心,以地固为坐标)。
ProjectRectangle将一个矩形从一个投影投影到另一个投影中。
RemoveCustomShader删除自定义着色器。
RunScript运行一个Global Mapper脚本(.gms)或工作空间(.gmw),可以从文件或脚本文本中执行。
SaveWorkspace将加载的图层和显示选项保存为工作空间(GMW)文件。
SaveWorkspaceEx将加载的图层和显示选项保存到工作空间(GMW)文件中。
SelectFile显示一个文件对话框,允许用户选择要加载的文件。
SelectFont选择字体。显示一个对话框,允许用户以图形方式选择字体。
SetBackgroundColor设置绘制和导出时用于背景像素的颜色。
SetChildLayerOpCallback设置在加载或关闭子图层时调用的回调函数。
SetElevationOverrides设置用于给定高程图层的高程调整选项。
SetFeatureClassEnabled启用或禁用给定要素类的显示。返回先前的启用/禁用状态。
SetLicenseKey使用分发授权时提供的分发许可证XML密钥。如果无法验证密钥,将返回GM_Error_NotRegistered。
SetMemoryLimit设置加载失败并返回的可用内存下限值(GM_Error_LowMemory)。将其设置为零以取消内存限制检查。[仅限WinCE]
SetMessageCallback设置要在SDK操作期间显示的错误和警告消息的回调函数。如果提供了消息回调,则不显示消息对话框,而是调用回调函数,并传递将显示的错误或警告消息。
SetMessageCallbackEx设置要在SDK操作期间显示的错误和警告消息的回调函数。如果提供了消息回调,则不显示消息对话框,而是调用回调函数,并传递将显示的错误或警告消息。
SetMiscOption设置在操作期间使用的高级/杂项选项。返回先前的值。
SetMiscOptionEx设置在操作期间使用的高级/杂项选项。返回先前的值。
SetOrientation允许以除北向外的其他方向绘制数据,使其与屏幕顶部对齐(适用于大多数投影)。值为0.0是默认值,表示无旋转。从技术上讲,方向值是将渲染数据逆时针旋转的度数。
SetProgressCallback返回当前的进度回调函数。
SetQuickPDFUnlockCode设置QuickPDF库(http://www.quickpdflibrary.com/)的解锁码(用于PDF/GeoPDF支持)。
SetRasterDisplayOptions设置用于显示给定栅格图层的选项。
SetRegistryKey设置应存储/读取设置的基本注册表键。设置将存储在"HKEY_CURRENT_USER\Software\*aKeyName*\Global Mapper"中。
SetSettingsFilePath设置存储设置文件(如custom_datums.txt等)的路径。
SetShaderDisplayOptions设置在显示高程着色器时使用的选项(调用GM_GetShaderDisplayOptions进行初始化)。
SetVectorDrawScale指定在绘制时应用于线宽度、点符号和字体的额外缩放因子。在打印时保持矢量要素与显示的大小相同时,这很有用。
SetVerticalDisplayOptions设置在显示网格状高程数据时使用的选项。如果不打算更改所有内容,建议首先调用GM_GetVerticalDisplayOptions来初始化结构以使用当前设置。
AddAreaToVectorLayer
public static GM_Error_t32 AddAreaToVectorLayer(
	GM_Layer_t aLayer,            //Layer to add area to
	GM_AreaFeature_t aArea,       //Area feature to add
	GM_AddFeatureFlags_t8 aFlags  //Flags controlling the add
)
AddCustomAreaClass
public static GM_Error_t32 AddCustomAreaClass(
	string aName,                            //Custom type name
	GM_AreaStyle_t aStyle,                   //Default draw style for features of this type
	out AreaFeatureClass_t16 aFeatureCode    //Classification code for new type
)
AddCustomShader
public static GM_Error_t32 AddCustomShader(
	GM_CustomShader_t aShader,    //shader to add
	uint aReserved                //reserved, must be 0
)
AreColorsEqual
public static bool AreColorsEqual(
	Color color1,    //First Color to compare
	Color color2     //Second Color to compare
)
CalcAreaElevStats
public static GM_Error_t32 CalcAreaElevStats(
	GM_LayerList_t aLayerList,            //List of layers to use or NULL for all
	out GM_AreaElevStats_t aElevStats,    //Calculated area statistics
	GM_Point_t[] aAreaPoints,             //List of points in area in global coordinate system
	double aXSpacing,                     //Sample spacing in the x direction in global units (use 0.0 to get a good default)
	double aYSpacing,                     //Sample spacing in the y direction in global units (use 0.0 to get a good default)
	Object aReserved                      //Reserved for future use, must be NULL
)
CalcBearing
public static GM_Error_t32 CalcBearing(
	double aFromX,                    //start X/longitude coordinate
	double aFromY,                    //start Y/latitude coordinate
	double aToX,                      //stop X/longitude coordinate
	double aToY,                      //stop Y/latitude coordinate
	GM_CalcBearingFlags_t8 aFlags,    // flags controlling coordinate projection and returned bearing sense
	out double aBearing               //bearing in radians between the points
)
CalcDistance
public static GM_Error_t32 CalcDistance(
	double aFromX,    //start X/longitude coordinate
	double aFromY,    //start Y/latitude coordinate
	double aToX,      //stop X/longitude coordinate
	double aToY,      //stop Y/latitude coordinate
	bool aLatLon,     //TRUE - coordinates are lat/lon, FALSE - coordinates are in the current projection
	out double aDist  //distance in meters between the points
)
CalcEnclosedArea
public static GM_Error_t32 CalcEnclosedArea(
	GM_Point_t[] aPtList,    //list of points defining area
	GM_Projection_t aProj,   //projection of points in list (use NULL for current projection returned by GM_GetProjection)
	out double aArea         //enclosed area in square meters
)
CalcProjectedLocation
public static GM_Error_t32 CalcProjectedLocation(
	double aFromX,    //start X/longitude coordinate
	double aFromY,    //start Y/latitude coordinate
	double aBearing,  //bearing in degrees to project along (0 is north, 90 is east, 180 is south, 270 is west)
	double aDist,     //distance to project along bearing in meters
	out double aToX,  //stop X/longitude coordinate
	out double aToY,  //stop Y/latitude coordinate
	bool aLatLon      //TRUE - coordinates are lat/lon, FALSE - coordinates are in the current projection
)
CalcScaleRectangle
public static GM_Error_t32 CalcScaleRectangle(
	GM_Point_t aCenterPoint,        //Center point in global coordinates
	double aScale,                  //Scale to calculate at (i.e. for 1:24K, pass 24000.0)
	IntPtr aDC,                     //Device context that will be drawn to
	int aPixWidth,                  //pixel width
	int aPixHeight,                 //pixel height
	out GM_Rectangle_t aScaleRect   //rectangle at given scale
)
CalcViewShed
public static GM_Error_t32 CalcViewShed(
	GM_Layer_t aLayer,                    //Layer to get elevations from or NULL for topmost layer at each point
	GM_ViewShedParams_t aViewShedParams,  //Parameters for creating view shed
	out GM_Layer_t aViewShedLayer         //Created view shed layer
)
CalcVolumeAlongLine
public static GM_Error_t32 CalcVolumeAlongLine(
	GM_Layer_t aLayer,                    //Layer to get elevations from or NULL for topmost layer at each point
	GM_LineVolumeParams_t aVolumeParams,  //Parameters for line volume calculation
	out double aCutVolume,                //Cut volume in cubic meters
	out double aFillVolume                //Fill volume in cubic meters
)
CalcVolumeOfArea
public static GM_Error_t32 CalcVolumeOfArea(
	GM_Layer_t aLayer,                    //Layer to get elevations from or NULL for topmost layer at each point
	GM_AreaVolumeParams_t aVolumeParams,  //Parameters for area volume calculation
	out double aCutVolume,                //Cut volume in cubic meters
	out double aFillVolume                //Fill volume in cubic meters
)
CalcWorldRectSize
public static GM_Error_t32 CalcWorldRectSize(
	GM_Rectangle_t aWorldBounds,    //World bounds to calc size of or NULL for last drawn
	out double aWidthMeters,        //Width of rectangle in meters
	out double aHeightMeters        //Height of rectangle in meters
)
ConvertCoordGroundToPixel
public static GM_Error_t32 ConvertCoordGroundToPixel(
	double aGroundX,                //X Coord in current projection
	double aGroundY,                //Y Coord in current projection
	out int aPixelX,                //X Coord in pixel space
	out int aPixelY,                //Y Coord in pixel space
	GM_Rectangle_t aWorldBounds,    //World bounds to convert from or NULL for last drawn.
	GM_PixelRect_t aPixelRect       //Pixel bounds to convert from or NULL for last drawn. GM_PixelRect_t*
)
ConvertCoordGroundToPixelDouble
public static GM_Error_t32 ConvertCoordGroundToPixelDouble(
	double aGroundX,                //X Coord in current projection
	double aGroundY,                //Y Coord in current projection
	out double aPixelX,             //X Coord in pixel space
	out double aPixelY,             //Y Coord in pixel space
	GM_Rectangle_t aWorldBounds,    //World bounds to convert from or NULL for last drawn.
	GM_PixelRect_t aPixelRect       //Pixel bounds to convert from or NULL for last drawn.

)
ConvertCoordGroundToPixelWithOrientation
public static GM_Error_t32 ConvertCoordGroundToPixelWithOrientation(
	double aGroundX,                //X Coord in current projection
	double aGroundY,                //Y Coord in current projection
	out int aPixelX,                //X Coord in pixel space
	out int aPixelY,                //Y Coord in pixel space
	GM_Rectangle_t aWorldBounds,    //World bounds to convert from or NULL for last drawn.
	GM_PixelRect_t aPixelRect,      //Pixel bounds to convert from or NULL for last drawn.
	double aOrientation             //Orientation of coordinate space to use (0 is north up, 90 is east up, 180 is south up, 270 is west up)
)
ConvertCoordGroundToPixelWithOrientationDouble
public static GM_Error_t32 ConvertCoordGroundToPixelWithOrientationDouble(
	double aGroundX,                //X Coord in current projection
	double aGroundY,                //Y Coord in current projection
	out double aPixelX,             //X Coord in pixel space
	out double aPixelY,             //Y Coord in pixel space
	GM_Rectangle_t aWorldBounds,    //World bounds to convert from or NULL for last drawn. GM_Rectangle_t*
	GM_PixelRect_t aPixelRect,      //Pixel bounds to convert from or NULL for last drawn. GM_PixelRect_t*
	double aOrientation             //Orientation of coordinate space to use (0 is north up, 90 is east up, 180 is south up, 270 is west up)
)
ConvertCoordLayerGroundToPixel
public static GM_Error_t32 ConvertCoordLayerGroundToPixel(
	GM_Layer_t aLayer,    //raster layer to do conversion in
	double aGroundX,      //X Coord in current projection
	double aGroundY,      //Y Coord in current projection
	out double aPixelX,   //X Coord in layer pixel space
	out double aPixelY    //Y Coord in layer pixel space
)
ConvertCoordLayerPixelToGround
public static GM_Error_t32 ConvertCoordLayerPixelToGround(
	GM_Layer_t aLayer,    //raster layer to do conversion in
	double aPixelX,       //X Coord in layer pixel space
	double aPixelY,       //Y Coord in layer pixel space
	out double aGroundX,  //X Coord in current projection
	out double aGroundY   //Y Coord in current projection
)
ConvertCoordPixelToGround
public static GM_Error_t32 ConvertCoordPixelToGround(
	int aPixelX,                    //X Coord in pixel space
	int aPixelY,                    //Y Coord in pixel space
	out double aGroundX,            //X Coord in current projection
	out double aGroundY,            //Y Coord in current projection
	GM_Rectangle_t aWorldBounds,    //World bounds to convert from or NULL for last drawn.
	GM_PixelRect_t aPixelRect       //Pixel bounds to convert from or NULL for last drawn.
)
ConvertCoordPixelToGroundDouble
public static GM_Error_t32 ConvertCoordPixelToGroundDouble(
	double aPixelX,                //X Coord in pixel space
	double aPixelY,                //Y Coord in pixel space
	out double aGroundX,           //X Coord in current projection
	out double aGroundY,           //Y Coord in current projection
	GM_Rectangle_t aWorldBounds,   //World bounds to convert from or NULL for last drawn.
	GM_PixelRect_t aPixelRect      //Pixel bounds to convert from or NULL for last drawn.
)
ConvertCoordPixelToGroundWithOrientation
public static GM_Error_t32 ConvertCoordPixelToGroundWithOrientation(
	int aPixelX,                    //X Coord in pixel space
	int aPixelY,                    //Y Coord in pixel space
	out double aGroundX,            //X Coord in current projection
	out double aGroundY,            //Y Coord in current projection
	GM_Rectangle_t aWorldBounds,    //World bounds to convert from or NULL for last drawn.
	GM_PixelRect_t aPixelRect,      //Pixel bounds to convert from or NULL for last drawn.
	double aOrientation             //Orientation of coordinate space to use (0 is north up, 90 is east up, 180 is south up, 270 is west up)
)
ConvertCoordPixelToGroundWithOrientationDouble
public static GM_Error_t32 ConvertCoordPixelToGroundWithOrientationDouble(
	double aPixelX,                //X Coord in pixel space
	double aPixelY,                //Y Coord in pixel space
	out double aGroundX,           //X Coord in current projection
	out double aGroundY,           //Y Coord in current projection
	GM_Rectangle_t aWorldBounds,   //World bounds to convert from or NULL for last drawn. GM_Rectangle_t*
	GM_PixelRect_t aPixelRect,     //Pixel bounds to convert from or NULL for last drawn. GM_PixelRect_t*
	double aOrientation            //Orientation of coordinate space to use (0 is north up, 90 is east up, 180 is south up, 270 is west up)
)
CreateBufferArea
public static GM_Error_t32 CreateBufferArea(
	GM_Layer_t aFeatureLayer,                    //Layer the feature is in
	GM_FeatureClassType_t8 aFeatureClassType,    //Type of feature class (area, point, line)
	uint aFeatureIndex,                          //Index of feature in layer
	double aBufferDistance,                      //Distance in meters of buffer to create (use negative values to create a buffer inside an area feature)
	GM_Layer_t aBufferLayer                      //Layer to add new buffer area(s) to
)
CreateS63UserPermitFile
public static GM_Error_t32 CreateS63UserPermitFile(
	string aFilename    //Name of user permit file to create
)
DrawGridLines
public static GM_Error_t32 DrawGridLines(
	IntPtr aDC,                    //Device context to draw to
	bool aLatLonGrid,              //Draw a lat/lon grid or a view projection grid
	double aGridSpacing,           //Grid spacing (use 0.0 for default)
	GM_Rectangle_t aWorldBounds,   //World bounds to draw or NULL for all
	int aLeftPixel,                //Left pixel coordinate to draw to
	int aTopPixel,                 //Top pixel coordinate to draw to
	int aPixelWidth,               //Width in pixels to draw
	int aPixelHeight               //Height in pixels to draw
)
DrawGridLinesEx
public static GM_Error_t32 DrawGridLinesEx(
	IntPtr aDC,                    //Device context to draw to
	bool aLatLonGrid,              //Draw a lat/lon grid or a view projection grid
	double aGridSpacing,           //Grid spacing (use 0.0 for default)
	GM_Rectangle_t aWorldBounds,   //World bounds to draw or NULL for all
	int aLeftPixel,                //Left pixel coordinate to draw to
	int aTopPixel,                 //Top pixel coordinate to draw to
	int aPixelWidth,               //Width in pixels to draw
	int aPixelHeight,              //Height in pixels to draw
	GM_Rectangle_t aMaxGridBounds  //Maximum grid bounds (NULL for loaded data bounds)
)
GenerateContours
public static GM_Error_t32 GenerateContours(
	GM_Layer_t aLayer,                //List of layers to use or NULL for all
	GM_ContourParams_t aContourParms, //Parameters for generating contours
	out GM_Layer_t aContourLayer      //Created contour layer
)
GenerateContoursEx
public static GM_Error_t32 GenerateContoursEx(
	GM_LayerList_t aLayerList,        //List of layers to use or NULL for all
	GM_ContourParams_t aContourParms, //Parameters for generating contours
	out GM_Layer_t aContourLayer      //Created contour layer
)
GenerateDensityGrid
public static GM_Error_t32 GenerateDensityGrid(
	GM_Layer_t aPointLayer,                //Layer to get points from
	GM_DensityGridParams_t aGridParams,    //Parameters for generating density grid
	out GM_Layer_t aGridLayer              //Created density grid layer
)
GenerateElevationGrid
public static GM_Error_t32 GenerateElevationGrid(
	GM_LayerList_t aLayerList,    //List of layers to use or NULL for all
	GM_GridGenSetup_t aGridSetup, //Grid setup parameters (pass NULL for default options)
	out GM_Layer_t aGridLayer     //Created grid layer
)

public static GM_Error_t32 GenerateElevationGrid(
	GM_LayerList_t aLayerList,    //List of layers to use or NULL for all
	GM_GridGenSetup_t aGridSetup, //Grid setup parameters (pass NULL for default options)
	out GM_Layer_t aGridLayer,    //Created grid layer
	out GM_Layer_t aTinLayer      //Created TIN area layer, exclude this parameter if you don't want
)
GenerateRoughnessGrid
public static GM_Error_t32 GenerateRoughnessGrid(
	GM_Layer_t aLandCoverLayer,            //Raster land-use Layer to generate roughness from
	GM_RoughnessGridParams_t aGridParams,  //Parameters for generating roughness grid
	out GM_Layer_t aGridLayer,             //Created roughness grid layer
	Object aReserved                       //Reserved for later use, must be IntPtr.Zero
)
GenerateWatershed
public static GM_Error_t32 GenerateWatershed(
	GM_LayerList_t aLayerList,                //List of layers to drape on top of terrain or NULL for all
	GM_WatershedParams_t aWatershedParams,    //Parameters for generating watershed
	out GM_Layer_t aStreamLayer,              //Created stream layer
	out GM_Layer_t aDrainageAreaLayer,        //Created drainage area layer (if created)
	Object aReserved                          //Reserved for later use, must be IntPtr.Zero
)
GetBackgroundColor
public static Color GetBackgroundColor()
GetElevationOverrides
public static GM_Error_t32 GetElevationOverrides(
	GM_Layer_t aLayer,                    //layer to get options for
	out GM_ElevationOverrides_t aOptions  //elevation adjustments
)
GetElevationShaders
public static GM_CustomShader_t[] GetElevationShaders(
	bool aCustomOnly    //Do you only want custom shaders returned
)
GetFilterString
public static string GetFilterString()
GetLastDrawnScale
public static double GetLastDrawnScale(
	IntPtr aDC    //(HDC) Device context that was drawn to
)
GetLocationColor
public static GM_Error_t32 GetLocationColor(
	GM_Layer_t aLayer,        //Layer to get color from or NULL for topmost
	double aXCoord,           //X coord in current projection
	double aYCoord,           //Y coord in current projection
	out GM_Color_t aColor     //Color of pixel at location
)
GetLocationElevation
public static GM_Error_t32 GetLocationElevation(
	GM_Layer_t aLayer,    //Layer to get elevation from or NULL for topmost
	double aXCoord,       //X coord in current projection
	double aYCoord,       //Y coord in current projection
	out float aElev       //Elevation at location in meters
)
GetMACAddress
public static string GetMACAddress()
GetMiscOption
public static Object GetMiscOption(
	GM_MiscOpt_t32 aOpt,    //Option to get
	Type aType,             //Type to retrieve
	Object aReserved        //Reserved for future use, must be NULL
)
GetOnlineLayerZoomScale
public static GM_Error_t32 GetOnlineLayerZoomScale(
	GM_Layer_t aLayer,            //Tiled online layer to query
	GM_Rectangle_t aWorldBounds,  //World bounds to convert from or NULL for last drawn
	GM_PixelRect_t aPixelRect,    //Pixel bounds to convert from or NULL for last drawn
	bool aForExport,              //Get zoom scale for an export (TRUE) or draw (FALSE)
	string aExtraOpts,            //String with extra options, like RES_MULT
	out uint aZoomScale,          //Zoom scale that will be used
	Object aReserved              //(void*) Reserved for future use
)
GetPathProfile
public static GM_Error_t32 GetPathProfile(
	GM_Layer_t aLayer,        //Layer to get elevation from or NULL for topmost
	double aStartX,           //Start X coord in current projection
	double aStartY,           //Start Y coord in current projection
	double aEndX,             //End X coord in current projection
	double aEndY,             //End Y coord in current projection
	out float[] aElevList,    // (float*) Buffer to hold list of elevations
	uint aListSize,           //Number of elevations to retrieve
	float aDfltElev           //Elev to use when none could be found
)
GetPathProfileLOS
public static GM_Error_t32 GetPathProfileLOS(
	GM_Layer_t aLayer,                    //Layer to get elevation from or NULL for topmost
	ref GM_PathProfileLOSParams_t aParams //Calculation parameters
)
GetPathProfileLOSEx
public static GM_Error_t32 GetPathProfileLOSEx(
	GM_LayerList_t aLayerList,            //List of layers to get elevation from or NULL for topmost
	ref GM_PathProfileLOSParams_t aParams //Calculation parameters
)
GetRasterDisplayOptions
public static GM_Error_t32 GetRasterDisplayOptions(
	GM_Layer_t aLayer,                        //layer to get options for
	out GM_RasterDisplayOptions_t aOptions    //display options for raster layer
)
GetSDKBuildDate
public static DateTime GetSDKBuildDate()
GetSDKVersion
public static uint GetSDKVersion()
GetShaderDisplayOptions
public static GM_ShaderOptions_t GetShaderDisplayOptions()
GetVerticalDisplayOptions
public static GM_VerticalDisplayOptions_t GetVerticalDisplayOptions()
IsRegistered
public static bool IsRegistered()
LoadMapLayoutFile
public static GM_Error_t32 LoadMapLayoutFile(
	string aFilename,    //name of map layout filename
	Object aReserved     //(void*) reserved for later use, must be NULL
)
MapCatalogAddFile
public static GM_Error_t32 MapCatalogAddFile(
	GM_Layer_t aCatalogLayer,    //Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
	string aFilename             //Filename of map to add to the catalog
)
MapCatalogAddLayer
public static GM_Error_t32 MapCatalogAddLayer(
	GM_Layer_t aCatalogLayer,    //Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
	GM_Layer_t aMapLayer         //Handle of loaded map layer to add to the catalog
)
MapCatalogChangeMapOrder
public static GM_Error_t32 MapCatalogChangeMapOrder(
	GM_Layer_t aCatalogLayer,    //Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
	uint aCurMapIndex,           //Current index of map (0-based) to move
	uint aNewMapIndex,           //New index of map (0-based)
	int aNumMapsToMove,          //Number of maps to move (-1 for everything from aCurMapIndex to end of list)
	Object aReserved             //Reserved for future use, must be NULL
)
MapCatalogCreate
public static GM_Layer_t MapCatalogCreate(
	string aDescription,    //Description to use for layer (can be NULL to use default)
	GM_Projection_t aProj   //Native projection of new layer (NULL for Geographic/WGS84/Arc Degrees)
)
MapCatalogDisableMap
public static GM_Error_t32 MapCatalogDisableMap(
	GM_Layer_t aCatalogLayer,    //Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
	uint aMapIndex,              //Index of map (0-based) to disable/enable
	bool aDisable                //Pass TRUE to disable map or FALSE to re-enable it
)
MapCatalogGetInfo
public static GM_Error_t32 MapCatalogGetInfo(
	GM_Layer_t aCatalogLayer,                //Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
	out GM_MapCatalogInfo_t aCatalogInfo     //Structure holding catalog information
)
MapCatalogGetMapInfo
public static GM_LayerInfo_t MapCatalogGetMapInfo(
	GM_Layer_t aCatalogLayer,    //Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
	uint aMapIndex               //Index of map (0-based) to get info about
)
MapCatalogRemoveMap
public static GM_Error_t32 MapCatalogRemoveMap(
	GM_Layer_t aCatalogLayer,    //Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
	uint aMapIndex               //Index of map (0-based) to remove from map catalog
)
MapCatalogSave
public static GM_Error_t32 MapCatalogSave(
	GM_Layer_t aCatalogLayer,    //Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
	string aFilename             //Filename to save map catalog to
)
MapCatalogSetDisplayInfo
public static GM_Error_t32 MapCatalogSetDisplayInfo(
	GM_Layer_t aCatalogLayer,                    //Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
	GM_MapCatalogDisplayType_t8 aDisplayType,    //Controls when layers in catalog are displayed
	double aDisplayValue,                        //First value related to display type
	double aDisplayValue2,                       //Optional second value for range of scales (use 0.0 if doesn't apply)
	bool aHideBounds                             //Hide layer bounds when not drawing a layer
)
MapCatalogSetMapOption
public static GM_Error_t32 MapCatalogSetMapOption(
	GM_Layer_t aCatalogLayer,        //Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
	uint aMapIndex,                  //Index of map (0-based) to disable/enable
	GM_MapCatalogMapOpt_t8 aMapOpt,  //Option to set. This determines what type you should pass in for *aOptData*
	GM_Projection_t aMapProj         //Data to use for option. The value of *aMapOpt* controls what this should be.
)
ProjectPoint
public static GM_Error_t32 ProjectPoint(
	double aXIn,                //X coordinate of input point
	double aYIn,                //Y coordinate of input point
	out double aXOut,           //X coordinate of output point
	out double aYOut,           //Y coordinate of output point
	GM_Projection_t aProjIn,    //projection to convert from (NULL for current)
	GM_Projection_t aProjOut    //projection to convert to (NULL for current)
)
ProjectPointAtElev
public static GM_Error_t32 ProjectPointAtElev(
	double aXIn,                //X coordinate of input point
	double aYIn,                //Y coordinate of input point
	out double aXOut,           //X coordinate of output point
	out double aYOut,           //Y coordinate of output point
	GM_Projection_t aProjIn,    //projection to convert from (NULL for current)
	GM_Projection_t aProjOut,   //projection to convert to (NULL for current)
	double aElev                //elevation in meters above ellipsoid surface to do conversion at
)
ProjectPointFromECEF
public static GM_Error_t32 ProjectPointFromECEF(
	double aX,                //ECEF X coordinate of input
	double aY,                //ECEF Y coordinate of input
	double aZ,                //ECEF Z coordinate of input
	out double aXOut,         //X coordinate of output point
	out double aYOut,         //Y coordinate of output point
	out double aZOut,         //Z coordinate of output point (meters above ellipsoid)
	DATUM aDatum,             //datum of ECEF coordinate (normally GM_DATUM_WGS_84)
	GM_Projection_t aProjOut  //projection to convert to (NULL for current)
)
ProjectPointList
public static GM_Error_t32 ProjectPointList(
	ref GM_Point_t[] aPointList,    //List of points to convert and buffer to hold converted points
	float[] aElevList,              //Optional list of elevations (in meters above ellipsoid surface) to do conversions at. Use NULL for default
	GM_Projection_t aProjIn,        //projection to convert from (NULL for current)
	GM_Projection_t aProjOut        //projection to convert to (NULL for current)
)
ProjectPointToECEF
public static GM_Error_t32 ProjectPointToECEF(
	double aXIn,                //X coordinate of input point
	double aYIn,                //Y coordinate of input point
	double aZIn,                //Z coordinate of input point (meters above ellipsoid), usually 0
	out double aX,              //ECEF X coordinate of input
	out double aY,              //ECEF Y coordinate of input
	out double aZ,              //ECEF Z coordinate of input
	DATUM aDatum,               //datum for ECEF conversion (normally GM_DATUM_WGS_84)
	GM_Projection_t aProjIn     //projection of input point (NULL for current projection)
)
ProjectRectangle
public static GM_Error_t32 ProjectRectangle(
	GM_Rectangle_t aRectIn,        //Rectangle to convert in input projection
	out GM_Rectangle_t aRectOut,   //Rectangle in output projection
	GM_Projection_t aProjIn,       //projection to convert from (NULL for current)
	GM_Projection_t aProjOut       //projection to convert to (NULL for current)
)
RemoveCustomShader
public static GM_Error_t32 RemoveCustomShader(
	string aShaderName    //name of custom shader to remove
)
RunScript
public static GM_LayerList_t RunScript(
	string aFilenameOrText,        //string with full path of script or the actual text of the script
	GM_LoadFlags_t32 aLoadFlags,   //Extra flags for load behavior
	Object aReserved               //Reserved for future use, must be NULL
)
SaveWorkspace
public static GM_Error_t32 SaveWorkspace(
	string aFilename,    //Name of workspace file to save
	Object aReserved     //Reserved for later use, must be NULL
)
SaveWorkspaceEx
public static GM_Error_t32 SaveWorkspaceEx(
	string aFilename,            //Name of workspace file to save
	GM_LayerList_t aLayerList,   //List of layers in order to save to workspace or NULL for all in order they were loaded
	Object aReserved             //Reserved for later use, must be NULL
)
SelectFile
public static GM_Error_t32 SelectFile(
	out string aFilename,    //selected filename
	string aFilterStr,       //Filter string for open dialog (NULL for default)
	string aInitialDir,      //Initial directory to start in (NULL for current)
	IntPtr aParentWnd        //Handle (HWND) to parent window for file selection dialog
)
SelectFont
public static GM_Error_t32 SelectFont(
	out GM_FontDef_t aFont    //A font definition.
)
SetBackgroundColor
public static Color SetBackgroundColor(
	Color aBgColor    //background color to set (AARRGGBB)
)
SetChildLayerOpCallback
public static void SetChildLayerOpCallback(
	GM_ChildLayerOpCallbackFunc aCallbackFunc,    //The Function to call
	Object aUserData,                             //User data that will be passed back to callback function
	Type aType                                    //the type to use for the user data
)
SetElevationOverrides
public static GM_Error_t32 SetElevationOverrides(
	GM_Layer_t aLayer,                //layer to set options for
	GM_ElevationOverrides_t aOptions  //elevation adjustments
)
SetFeatureClassEnabled
public static bool SetFeatureClassEnabled(
	ushort aFeatureClass,                        //Feature class to get info for
	GM_FeatureClassType_t8 aFeatureClassType,    //
	bool aEnable                                 //Enable or disable the feature class
)
SetLicenseKey
public static GM_Error_t32 SetLicenseKey(
	string aXmlKeyStr,    //full XML string with distribution license key
	Object aReserved      //Reserved for future use, must be IntPtr.Zero
)
SetMemoryLimit
public static void SetMemoryLimit(
	uint aMemoryLimit    //The limit at which GM_Error_LowMemory gets returned on load or 0 for no limit
)
SetMessageCallback
public static void SetMessageCallback(
	GM_MessageCallbackDef aCallBackFunc    //The function to call
)
SetMessageCallbackEx
public static void SetMessageCallbackEx(
	GM_MessageCallbackDef aCallBackFunc,    //The function to call
	bool aThreadLocal,                      //Should this callback only be used within the current thread
	Object aReserved                        //Reserved for future use, must be NULL
)
SetMiscOption
public static byte SetMiscOption(
	GM_MiscOpt_t32 aOpt,    //Option to set
	byte aNewValue          //New value (i.e. 1 to enable or 0 to disable), or value of other setting
)
SetMiscOptionEx
public static Object SetMiscOptionEx(
	GM_MiscOpt_t32 aOpt,    //Option to set
	Object aNewValue,       //New value (i.e. 1 to enable or 0 to disable), or value of other setting, including possibly pointer
	Object aReserved        //Reserved for future use, must be NULL
)
SetOrientation
public static GM_Error_t32 SetOrientation(
	double aOrientation    //Orientation of bitmap (0 is north up, 90 is east up, 180 is south up, 270 is west up)
)
SetProgressCallback
public static void SetProgressCallback(
	GM_ProgressCallbackFunc aCallbackFunc    //THeCallbackFunction
)
SetQuickPDFUnlockCode
public static GM_Error_t32 SetQuickPDFUnlockCode(
	string aUnlockCode    //unlock key for QuickPDFDLL library
)
SetRasterDisplayOptions
public static GM_Error_t32 SetRasterDisplayOptions(
	GM_Layer_t aLayer,                    //layer to set options for
	GM_RasterDisplayOptions_t aOptions    //display options for raster layer
)
SetRegistryKey
public static GM_Error_t32 SetRegistryKey(
	string aKeyName    //Location in registry under which to store settings
)
SetSettingsFilePath
public static GM_Error_t32 SetSettingsFilePath(
	string aPathName    //Full path in which to look for and store settings files
)
SetShaderDisplayOptions
public static GM_Error_t32 SetShaderDisplayOptions(
	ref GM_ShaderOptions_t aOptions    //shader display options
)
SetVectorDrawScale
public static float SetVectorDrawScale(
	float aDrawScale    //scale factor to apply to line widths, symbols, and fonts
)
SetVerticalDisplayOptions 
public static GM_Error_t32 SetVerticalDisplayOptions(
	ref GM_VerticalDisplayOptions_t aVertDispOpts    //Options for gridded elevation data
)
(3)字段
字段描述
MAX_NON_REGISTERED_VECTOR_IDX在未注册时,您可以访问的给定类型的矢量要素数目。

7.2.42 GM_VectorFeature_t 

(1)声明
public class GM_VectorFeature_t
(2)字段
字段描述
mAttrList与要素相关联的属性列表。
mClass分配给要素的Global Mapper分类。
mDesc要素的描述。
mName要素的名称。

7.2.43 GM_ViewShedParams_t

(1) 声明
public class GM_ViewShedParams_t
(2)构造函数
public GM_ViewShedParams_t()
(3)方法
方法描述
SizeOf返回未管理的结构体的大小。
  SizeOf 
public static uint SizeOf()
(4)字段
字段描述
mAngleEnd以弧度表示的雷达扫描结束角度。
mAngleStart以弧度表示的雷达扫描起始角度。
mAtmosphericCorr大气校正值(无校正为1.0)。
mCenterPoint全局坐标系下的中心点。
mColor用于显示可视区域数据的颜色。
mDesc可视区域描述。
mFilterRect用于筛选特定感兴趣区域的可选矩形。
mFresnelFreq用于测试第一弗伦耐尔区间通行能力的频率(以GHz为单位)(使用0.0表示不进行弗伦耐尔测试)。
mFresnelPctClear必须清除障碍物的第一弗伦耐尔区间的百分比(使用0.6表示60%)。如果指定为0,则使用默认值60%。
mGenCoveragePolys为覆盖区域生成面/多边形要素(这些是矢量数据,可导出为矢量格式)。
mRadius搜索半径(以米为单位)。
mReceiverAngle要测试的地平线上的角度(不测试为NULL)。
mReceiverAngleEnd要停止测试的地平线上的角度(不停止为NULL)- 如果提供了此参数和mReceiverAngle,则进行角度范围的可视区域测试(类似于手电筒光束)。
mReceiverHeight发射机必须可见的高度。
mReceiverHeightAbs接收器高度是绝对高度还是相对于地面高度。
mShowHiddenPoints使隐藏点可见,而不是可视点。
mShowProgress显示可视区域计算进度。
mSize结构体的大小(以字节为单位)。
mTransmitterHeight发射机的高度(以米为单位)。
mTransmitterHeightAbs发射机高度是绝对高度还是相对于地表高度。
mUseEarthCurvature在分析中是否使用地球曲率。
mVectorElevsAbs矢量高程是否为绝对高程(即相对于海平面)还是相对于地面高度。
mVectorLayerList使用具有高程属性的要素的矢量图层列表。
mVectorLayerListCnt列表中的矢量图层数量。
mXSpacingX方向采样间距(使用0.0表示默认间距)。
mYSpacingY方向采样间距(使用0.0表示默认间距)。

7.2.44 GM_WebFormatExportOpts_t

(1)声明 
public class GM_WebFormatExportOpts_t
(2)构造函数
public GM_WebFormatExportOpts_t()
(3)字段
字段描述
mApiKeyAPI密钥(用于Google Maps和Bing Maps导出) 。
mBgMapName背景地图名称 - 用于Google Maps导出(即ROADMAP,SATELLITE,HYBRID或TERRAIN)或Bing Maps(即road,aerial,birdseye,canvasDark,canvasLight或grayscale) 。
mCustomTileFName自定义瓦片文件名定义。使用NULL表示默认格式。使用变量如%z表示缩放级别,%x表示列,%y表示行。例如,使用"%z\\prefix_%y_%x.png"可以为每个缩放级别创建一个文件夹。瓦片被创建在HTML文件名路径的下方。 
mFlags导出标志 。
mFormat图像格式。
mMapDescription地图的描述。目前仅与MBTiles导出一起使用。 
mMapName用于地图集的名称。
mMapTypeMBTiles地图类型。必须是"baselayer"或"overlay"。 
mMaxZoomLevel导出的最大缩放级别(仅适用于Google Maps,Virtual Earth/Bing Maps和WorldWind导出) 。
mNumZoomLevels要导出的缩放级别数(仅适用于Google Maps,Virtual Earth/Bing Maps和WorldWind导出) 。
mTileCountOUT:保存了多少个瓦片(如果使用WebExport_OnlyGetTileCount估算) 。
mTileSize瓦片的像素大小(例如256、512、1024等)。值为0会导致默认瓦片大小(通常为256x256) 。
mTranslucency新地图的透明度设置(0.0 - 1.0)。1.0表示不透明。如果提供了0.0,则默认为1.0。 
mWWTilePath存储WorldWind瓦片的路径。如果为NULL,将使用提供的XML文件路径 。
mXRes导出的X分辨率(对于KML为弧度度量,对于其他为米,0.0表示全分辨率)。如果未提供,则用于自动选择mMaxZoomLevel。 
mYRes导出的Y分辨率(对于KML为弧度度量,对于其他为米,0.0表示全分辨率)。如果未提供,则用于自动选择mMaxZoomLevel。
  • 19
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

八两

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值