Functions ========= Below is a list of Global Mapper python functions, listed by category. .. note:: Functions not listed here that are part of the Global Mapping Scripting language can be accessed using the 'RunScript' function. Layer Load Functions ++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: load CloseLayer ClosePackage FlushLayerCache GetAvailableOnlineSourceList GetLayerInfo GetLoadedLayerList GetOnlineSourceInfo GetPackageLayerList LoadGenericAsciiTextLayer LoadLayer LoadLayerList LoadLayerListEx LoadMapLayoutFile LoadOnlineLayer LoadPackage LoadRectifiedLayer RepositionLayer RunScript SaveWorkspace SaveWorkspaceEx SetChildLayerOpCallback SelectFile Display Options/Drawing Functions +++++++++++++++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: display AddCustomShader CropLayerCollar DrawGridLines DrawGridLinesEx DrawLayer DrawLayerList DrawLayerListToMemory DrawLayerListEx DrawPackageList GetBackgroundColor GetElevationOverrides GetElevationShaders GetLastDrawnScale GetLastDrawnMapBounds GetLastDrawnMapBoundsEx GetOnlineLayerZoomScale GetOrientation GetRasterDisplayOptions GetShaderDisplayOptions GetVerticalDisplayOptions RecenterMapDisplay RedrawMapDisplay RefreshMapDisplay RemoveCustomShader SetBackgroundColor SetElevationOverrides SetLayerEnabled SetLayerPalette SetOrientation SetRasterDisplayOptions SetShaderDisplayOptions SetVectorDrawScale SetVerticalDisplayOptions ShowLayerOptionsDialog Coordinate Conversion/Measurement Functions ++++++++++++++++++++++++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: measure AddCustomDatum AddCustomEllipsoid AreProjectionsEquivalent CalcBearing CalcDistance CalcEnclosedArea CalcProjectedLocation CalcScaleRectangle CalcWorldRectSize ConvertCoordGroundToPixel ConvertCoordGroundToPixelDouble ConvertCoordGroundToPixelWithOrientation ConvertCoordGroundToPixelWithOrientationDouble ConvertCoordLayerGroundToPixel ConvertCoordLayerPixelToGround ConvertCoordPixelToGround ConvertCoordPixelToGroundDouble ConvertCoordPixelToGroundWithOrientation ConvertCoordPixelToGroundWithOrientationDouble DecodeMGRSCoordinates GetAvailableProjectionList GetDatumInfo GetMGRSCoordinates GetProjection LoadProjectionFile LoadProjectionFromEPSGCode LoadProjectionFromWKTString ProjectionGetBase ProjectPoint ProjectPointAtElev ProjectPointFromECEF ProjectPointList ProjectPointListArr ProjectPointToECEF ProjectRectangle SaveProjectionToFile SaveProjectionToString SelectProjection SelectProjectionEx SetQueryProjectionCallback SetProjection SetProjectionEx Export Functions ++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: export ExportElevation ExportElevationEx ExportGeoPackage ExportMapLayoutComponent ExportPackage ExportPDF ExportRaster ExportRasterEx ExportRasterFromBitmap ExportVector ExportVectorEx ExportVectorList ExportWebFormat SetExportCropAreas Raster/Elevation Layer Query Functions ++++++++++++++++++++++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: rasterQuery GetLocationColor GetLocationElevation GetLocationElevationEx GetPixelBandValue GetPixelColor GetPixelColorRow GetPixelElevation GetPixelElevationRow toRGB toRGBA Vector Layer Query Functions ++++++++++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: vectorQuery FindFeaturesInArea FindNearestAddress FindNearestFeatures FreeAreaFeature FreeFeatureResultList FreeLineFeature FreePointFeature GetAreaFeature GetAreaFeatureEx GetFeatureElevation GetLineFeature GetLineFeatureEx GetPointFeature GetPointFeatureEx GetSelectedFeatures Lidar Functions +++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: Lidar AddLidarQueryToQuery AddRemovePointToLidarQuery CreateEmptyLidarQuery CreateLidarQuery FreeLidarQuery GetLayerLidarStats GetLidarClassFilter GetLidarClassInfo GetLidarPoint GetLidarQueryInfo GetNextLidarQueryPoints InitLidarQueryFilter LidarClassFilter_EnableGroups LidarClassFilter_Init LidarClassFilter_IsClassEnabled LidarClassFilter_SetClassEnabled LidarClassifyBuildingVeg LidarClassifyBuildingVegFromQuery LidarClassifyGraph LidarClassifyGraphFromQuery LidarClassifyGround LidarClassifyGroundFromQuery LidarClassifyNoise LidarClassifyNoiseFromQuery LidarClassifyPolePower LidarClassifyPolePowerFromQuery LidarColorize LidarColorizeQuery LidarCompare LidarCompareQuery LidarExtractFeatures LidarExtractFeaturesFromQuery LidarThin PixelsToPoints PixelsToPointsInitSetup SetLidarClassFilter SetLidarClassInfo SetLidarPoint UpdateLidarQueryPoints Vector Layer Edit Functions +++++++++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: vectorEdit DeleteFeature IsFeatureDeleted SetAreaFeaturePointList SetAreaFeaturePointListEx SetFeatureAttrList SetFeatureClass SetFeatureDescription SetFeatureLabel SetLayerDescription SetLayerElevationAttribute SetLayerHeightAttribute SetLayerHeightUnits SetLayerElevationUnits SetLayerLabelAttribute SetLayerUserData SetLayerUserText SetLineFeaturePointList SetLineFeaturePointListEx SetPointFeaturePosition Vector Drawing Style Functions +++++++++++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: vectorStyle AddCustomAreaClass AddCustomBrushStyle AddCustomLineClass AddCustomPointClass AddCustomSymbol GetAreaFeatureClassDrawStyle GetAvailableSymbolNames GetLineFeatureClassDrawStyle GetPointFeatureClassDrawStyle RemoveCustomBrushStyle RemoveCustomSymbol SelectAreaStyle SelectFont SelectLineStyle SetAreaFeatureClassDrawStyle SetAreaFeatureDrawStyle SetLineFeatureClassDrawStyle SetLineFeatureDrawStyle SetPointFeatureClassDrawStyle SetPointFeatureDrawStyle SetLayerCodePage Vector Feature Filtering Functions +++++++++++++++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: vectorFilter GetFeatureClassInfo SetFeatureClassEnabled 3D View Functions ++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :template: function.rst :recursive: :toctree: 3D CloseViewWindow3D GetCameraPosition3D IsWindowOpen3D PositionCamera3D SaveViewToFile3D SetChangeViewCallback3D SetView3D Surface Analysis Functions ++++++++++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: analysis CalcAreaElevStats CalcViewShed CalcVolumeAlongLine CalcVolumeOfArea CombineTerrainLayers GenerateAreasFromEqualValues GenerateContours GenerateContoursEx GenerateDensityGrid GenerateElevationGrid GenerateElevationGrid2 GenerateRoughnessGrid GenerateWatershed GetPathProfile GetPathProfileLOS GetPathProfileLOSEx Map Catalog Functions +++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: mapCatalog MapCatalogAddFile MapCatalogAddLayer MapCatalogChangeMapOrder MapCatalogCreate MapCatalogDisableMap MapCatalogGetInfo MapCatalogGetMapInfo MapCatalogRemoveMap MapCatalogSave MapCatalogSetDisplayInfo MapCatalogSetMapOption Custom Layer and Feature Creation Functions +++++++++++++++++++++++++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: create AddAreaToVectorLayer AddLineToVectorLayer AddPointToVectorLayer CombineAreas CreateBufferArea CreateCustomElevGridLayer CreateCustomElevGridLayerEx CreateCustomRasterLayer CreateCustomVectorLayer CreateVectorLayerFromFindResults Spatial Operations +++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: spatialOperation DistanceInit SpatialBuffer SpatialCenter SpatialCentroid SpatialCircle SpatialConcaveHull SpatialContains SpatialConvexHull SpatialDifference SpatialDisjoint SpatialDissolve SpatialEquals SpatialIntersection SpatialIntersects SpatialMBR SpatialOperation SpatialOpsParameterInit SpatialOverlaps SpatialPredicate SpatialRelate SpatialSymmetricDifference SpatialTouches SpatialTransform SpatialUnion SpatialUnionSingle SpatialWithin Utility Functions +++++++++++++++++++++++ .. currentmodule:: globalmapper .. autosummary:: :recursive: :toctree: utility carray_to_list CreateS63UserPermitFile free_void GetFilterString GetMACAddress GetMiscOption GetProgressCallback GetSDKBuildDate GetSDKVersion gmobject_to_map IsRegistered LogMessage malloc_void print_module_info SetMemoryLimit SetMessageCallback SetMessageCallbackEx SetMiscOption SetMiscOptionEx SetMiscOptionExString SetMiscOptionExBool SetProgressCallback SetProgressCallbackThread SetQuickPDFUnlockCode SetRegistryKey SetSettingsFilePath ShowGlobalMapperHelp strerror