Sunday, July 31, 2022

Getting Started with ArcGIS and QGIS Python Scripting API - ArcPy and PyQGIS


On this blog, I intend to document some common GIS operation via the Python Scripting API for both ArcGIS (ArcPy) and QGIS (PyQGIS).

Lets begin....


1) The documentation

When you decided to work with a new API, then its documentation should always be your first place to learn more about the API's capabilities. Here below is where you will find the respective docs as at the time of writing.

The ArcGIS (ArcPy) is available at: http://desktop.arcgis.com/en/documentation/
Note that there are two versions of the ArcGIS desktop software: ArcMap (Including ArcCatalog, ArcScene, & ArcGlobe) and ArcGIS Pro. The focus of this blog is on: ArcMap.




 The QGIS (PyQGIS) is available at: QGIS Python API documentation project



You can compliment this docs with good books written by different authors:-

ArcPy related Books:
~ ArcPy and ArcGIS – Geospatial Analysis with Python by Silas Toms
~ Python Scripting for ArcGIS by Paul A. Zandbergen
~ Python For ArcGIS by Laura Tateosian
~ Python Scripting for ArcGIS by Paul A. Zandbergen


PyQGIS related Books:
~ PyQGIS developer cookbook by QGIS Project Team
~ The PyQGIS Programmer's Guide: Extending QGIS 3 with Python 3 by Gary Sherman
~ The Pyqgis Programmer's Guide by Gary Sherman
~ Mastering Geospatial Development with QGIS 3.x: An in-depth guide to becoming proficient in spatial data analysis using QGIS 3.4 and 3.6 with Python by Shammunul Islam, Simon Miles, et al.
~ QGIS Python Programming Cookbook by Joel Lawhead
~ Building Mapping Applications with QGIS by by Erik Westra


2) Launch and customize python window/console

In ArcGIS it is located under 'Geoprocessing' menu while in QGIS, it is under the 'Plugin' menu. Access the respective menus and launch the python window/console. you could also launch the window/console from the related icon on the tools bar.





To customize the ArcGIS python window, right click on the environment and select what you want to customize.



To customize the QGIS python console, click on the 'options' button as seen below. Then select the settings you want to customize accordingly.



3) The built-in documentation

Lets try to see the list of valid methods and attributes for the APIs. The primary object in the ArcGIS API is 'arcpy' so lets call the dir() method on it like this: dir(arcpy)
>>> dir(arcpy)
['ASCII3DToFeatureClass_3d', 'ASCIIToRaster_conversion', 'AcceptConnections', 'AddAttachments_management', 'AddCADFields_conversion', 'AddCodedValueToDomain_management', 'AddColormap_management', 'AddDataStoreItem', 'AddEdgeEdgeConnectivityRuleToGeometricNetwork_management', 'AddEdgeJunctionConnectivityRuleToGeometricNetwork_management', 'AddError', 'AddFeatureClassToTerrain_3d', 'AddFeatureClassToTopology_management', 'AddFieldConflictFilter_management', 'AddFieldDelimiters', 'AddFieldToAnalysisLayer_na', 'AddField_management', 'AddFilesToLasDataset_management', 'AddGeometryAttributes_management', 'AddGlobalIDs_management', 'AddIDMessage', 'AddIncrementingIDField_management', 'AddIndex_management', 'AddItem_arc', 'AddJoin_management', 'AddLocations_na', 'AddMessage', 'AddRasterToGeoPackage_conversion', 'AddRastersToMosaicDataset_management', 'AddRepresentation_cartography', 'AddReturnMessage', 'AddRuleToTopology_management', 'AddSpatialIndex_management', 'AddSubtype_management', 'AddSurfaceInformation_3d', 'AddTerrainPyramidLevel_3d', 'AddToolbox', 'AddWarning', 'AddXY_arc', 'AddXY_management', 'AddZInformation_3d', 'Adjust3DZ_management', 'AggregatePoints_cartography', 'AggregatePolygons_arc', 'AggregatePolygons_cartography', 'AlignFeatures_edit', 'AlignMarkerToStrokeOrFill_cartography', 'AlterAliasName', 'AlterField_management', 'AlterMosaicDatasetSchema_management', 'AlterVersion_management', 'AnalyzeControlPoints_management', 'AnalyzeDatasets_management', 'AnalyzeMosaicDataset_management', 'AnalyzeToolsForPro_management', 'Analyze_management', 'Annotation', 'AppendAnnotation_management', 'AppendControlPoints_management', 'AppendParcelFabric_fabric', 'AppendTerrainPoints_3d', 'Append_arc', 'Append_management', 'ApplyBlockAdjustment_management', 'ApplySymbologyFromLayer_management', 'ArcDLG_arc', 'ArcRoute_arc', 'ArcS57_arc', 'ArcSDESQLExecute', 'ArealInterpolationLayerToPolygons_ga', 'Array', 'AsShape', 'Aspect_3d', 'AssignDefaultToField_management', 'AssignDomainToField_management', 'AverageNearestNeighbor_stats', 'BatchBuildPyramids_management', 'BatchCalculateStatistics_management', 'BatchProject_management', 'BearingDistanceToLine_management', 'Buffer3D_3d', 'Buffer_analysis', 'Buffer_arc', 'BuildBoundary_management', 'BuildFootprints_management', 'BuildMosaicDatasetItemCache_management', 'BuildNetwork_na', 'BuildOverviews_management', 'BuildPyramids_management', 'BuildPyramidsandStatistics_management', 'BuildRasterAttributeTable_management', 'BuildSeamlines_management', 'BuildStereoModel_management', 'BuildTerrain_3d', 'Build_arc', 'CADToGeodatabase_conversion', 'CalculateAdjacentFields_cartography', 'CalculateAreas_stats', 'CalculateCellSizeRanges_management', 'CalculateCentralMeridianAndParallels_cartography', 'CalculateDefaultClusterTolerance_management', 'CalculateDefaultGridIndex_management', 'CalculateDistanceBand_stats', 'CalculateEndTime_management', 'CalculateField_management', 'CalculateGridConvergenceAngle_cartography', 'CalculateLineCaps_cartography', 'CalculateLocations_na', 'CalculatePolygonMainAngle_cartography', 'CalculateRepresentationRule_cartography', 'CalculateStatistics_management', 'CalculateTransformationErrors_edit', 'CalculateUTMZone_cartography', 'CalculateValue_management', 'CalibrateRoutes_lr', 'CentralFeature_stats', 'ChangeLasClassCodes_3d', 'ChangePrivileges_management', 'ChangeTerrainReferenceScale_3d', 'ChangeTerrainResolutionBounds_3d', 'ChangeVersion_management', 'CheckExtension', 'CheckGeometry_management', 'CheckInExtension', 'CheckOutExtension', 'CheckProduct', 'ClassifyLasBuilding_3d', 'ClassifyLasByHeight_3d', 'ClassifyLasGround_3d', 'Clean_arc', 'ClearEnvironment', 'ClearWorkspaceCache_management', 'Clip_analysis', 'Clip_arc', 'Clip_management', 'ClustersOutliersRendered_stats', 'ClustersOutliers_stats', 'CollapseDualLinesToCenterline_arc', 'CollapseDualLinesToCenterline_cartography', 'CollapseRoadDetail_cartography', 'CollectEventsRendered_stats', 'CollectEvents_stats', 'ColorBalanceMosaicDataset_management', 'Command', 'Compact_management', 'CompareReplicaSchema_management', 'CompositeBands_management', 'CompressFileGeodatabaseData_management', 'Compress_management', 'ComputeBlockAdjustment_management', 'ComputeCameraModel_management', 'ComputeControlPoints_management', 'ComputeDirtyArea_management', 'ComputeMosaicCandidates_management', 'ComputePansharpenWeights_management', 'ComputeTiePoints_management', 'ConcatenateDateAndTimeFields_ta', 'ConfigureGeodatabaseLogFileTables_management', 'ConsolidateLayer_management', 'ConsolidateLocator_geocoding', 'ConsolidateLocator_management', 'ConsolidateMap_management', 'ConsolidateResult_management', 'ConstructSightLines_3d', 'ContourAnnotation_cartography', 'ContourList_3d', 'ContourWithBarriers_3d', 'Contour_3d', 'ConvertCoordinateNotation_management', 'ConvertDiagram_schematics', 'ConvertMapServerCacheStorageFormat_server', 'ConvertSpatialWeightsMatrixtoTable_stats', 'ConvertTimeField_management', 'ConvertTimeZone_management', 'CopyFeatures_management', 'CopyParameter', 'CopyParcelFabric_fabric', 'CopyRasterCatalogItems_management', 'CopyRaster_management', 'CopyRows_management', 'CopyRuntimeGdbToFileGdb_conversion', 'CopyTin_3d', 'CopyTraversedSourceFeatures_na', 'Copy_management', 'CountRenderer_stats', 'CreateAddressLocator_geocoding', 'CreateArcInfoWorkspace_management', 'CreateArcSDEConnectionFile_management', 'CreateCartographicPartitions_cartography', 'CreateCompositeAddressLocator_geocoding', 'CreateCustomGeoTransformation_management', 'CreateDatabaseConnection_management', 'CreateDatabaseUser_management', 'CreateDatabaseView_management', 'CreateDiagram_schematics', 'CreateDomain_management', 'CreateEnterpriseGeodatabase_management', 'CreateFeatureDataset_management', 'CreateFeatureclass_management', 'CreateFileGDB_management', 'CreateFishnet_management', 'CreateFolder_management', 'CreateGPSDDraft', 'CreateGeocodeSDDraft', 'CreateGeometricNetwork_management', 'CreateImageSDDraft', 'CreateLabels_arc', 'CreateLasDataset_management', 'CreateMapServerCache_server', 'CreateMapTilePackage_management', 'CreateMosaicDataset_management', 'CreateObject', 'CreateOrthoCorrectedRasterDataset_management', 'CreateOverpass_cartography', 'CreatePansharpenedRasterDataset_management', 'CreatePersonalGDB_management', 'CreateRandomPoints_management', 'CreateRandomRaster_management', 'CreateRandomValueGenerator', 'CreateRasterCatalog_management', 'CreateRasterDataset_management', 'CreateRasterType_management', 'CreateReferencedMosaicDataset_management', 'CreateRelationshipClass_management', 'CreateReplicaFootPrints_management', 'CreateReplicaFromServer_management', 'CreateReplica_management', 'CreateRole_management', 'CreateRoutes_lr', 'CreateRuntimeContent_management', 'CreateSQLiteDatabase_management', 'CreateSchematicFolder_schematics', 'CreateScratchName', 'CreateSpaceTimeCube_stpm', 'CreateSpatialReference_management', 'CreateSpatialType_management', 'CreateSpatiallyBalancedPoints_ga', 'CreateTable_management', 'CreateTerrain_3d', 'CreateThiessenPolygons_analysis', 'CreateTin_3d', 'CreateTopology_management', 'CreateTurnFeatureClass_na', 'CreateUnRegisteredFeatureclass_management', 'CreateUnRegisteredTable_management', 'CreateUnderpass_cartography', 'CreateUniqueName', 'CreateVersion_management', 'CreateVersionedView_management', 'Create_arc', 'CrossValidationResult', 'CrossValidation_ga', 'CulDeSacMasks_cartography', 'Cursor', 'Curvature_3d', 'CutFill_3d', 'DEMToRaster_conversion', 'DLGArc_arc', 'DecimateTinNodes_3d', 'DecryptPYT', 'DefineMosaicDatasetNoData_management', 'DefineOverviews_management', 'DefineProjection_arc', 'DefineProjection_management', 'DeleteCodedValueFromDomain_management', 'DeleteColormap_management', 'DeleteDomain_management', 'DeleteFeatures_management', 'DeleteField_management', 'DeleteGlobeServerCache_server', 'DeleteGridsAndGraticules_cartography', 'DeleteIdentical_management', 'DeleteMapServerCache_server', 'DeleteMosaicDataset_management', 'DeleteRasterAttributeTable_management', 'DeleteRasterCatalogItems_management', 'DeleteRows_management', 'DeleteSchemaGeodatabase_management', 'DeleteTerrainPoints_3d', 'DeleteVersion_management', 'Delete_management', 'DelineateBuiltUpAreas_cartography', 'DelineateTinDataArea_3d', 'DensifySamplingNetwork_ga', 'Densify_edit', 'Describe', 'DetectFeatureChanges_management', 'DetectGraphicConflict_cartography', 'DiagnoseVersionMetadata_management', 'DiagnoseVersionTables_management', 'Dice_management', 'Difference3D_3d', 'DiffusionInterpolationWithBarriers_ga', 'Dimension', 'DirectionalDistribution_stats', 'DirectionalMean_stats', 'Directions_na', 'DisableArchiving_management', 'DisableAttachments_management', 'DisableEditorTracking_management', 'DisconnectUser', 'DisperseMarkers_cartography', 'DissolveNetwork_na', 'DissolveRouteEvents_lr', 'Dissolve_arc', 'Dissolve_management', 'Divide_3d', 'DomainToTable_management', 'DownloadRasters_management', 'DropIndex_arc', 'DropItem_arc', 'DropRepresentation_cartography', 'ESRITranslator_conversion', 'EdgematchFeatures_edit', 'EditRasterFunction_management', 'EditTin_3d', 'EliminatePolygonPart_management', 'Eliminate_arc', 'Eliminate_management', 'EmergingHotSpotAnalysis_stpm', 'EmpiricalBayesianKriging_ga', 'EnableArchiving_management', 'EnableAttachments_management', 'EnableEditorTracking_management', 'EnableEnterpriseGeodatabase_management', 'EncloseMultiPatch_3d', 'EncryptPYT', 'ErasePoint_edit', 'Erase_analysis', 'Erase_arc', 'ExcelToTable_conversion', 'ExecuteError', 'ExecuteWarning', 'Exists', 'ExploratoryRegression_stats', 'ExportAcknowledgementMessage_management', 'ExportCAD_conversion', 'ExportDataChangeMessage_management', 'ExportGeodatabaseConfigurationKeywords_management', 'ExportMapServerCache_server', 'ExportMetadataMultiple_conversion', 'ExportMetadata_conversion', 'ExportMosaicDatasetGeometry_management', 'ExportMosaicDatasetItems_management', 'ExportMosaicDatasetPaths_management', 'ExportRasterCatalogPaths_management', 'ExportRasterWorldFile_management', 'ExportReplicaSchema_management', 'ExportTileCache_management', 'ExportTo3DWebScene_3d', 'ExportTopologyErrors_management', 'ExportWebMap_server', 'ExportXMLWorkspaceDocument_management', 'ExportXYv_stats', 'Export_arc', 'ExtendLine_edit', 'Extent', 'ExtractDataAndEmailTask_server', 'ExtractDataTask_server', 'ExtractData_server', 'ExtractLas_3d', 'ExtractPackage_management', 'ExtractSubDataset_management', 'ExtractValuesToTable_ga', 'ExtrudeBetween_3d', 'FeatureClassToFeatureClass_conversion', 'FeatureClassToGeodatabase_conversion', 'FeatureClassToShapefile_conversion', 'FeatureClassZToASCII_3d', 'FeatureCompare_management', 'FeatureEnvelopeToPolygon_management', 'FeatureOutlineMasks_cartography', 'FeatureSet', 'FeatureTo3DByAttribute_3d', 'FeatureToLine_management', 'FeatureToNetCDF_md', 'FeatureToPoint_management', 'FeatureToPolygon_management', 'FeatureToRaster_conversion', 'FeatureVerticesToPoints_management', 'FeatureclassToCoverage_conversion', 'FeaturesFromCityEngineRules_3d', 'FeaturesToJSON_conversion', 'Field', 'FieldInfo', 'FieldMap', 'FieldMappings', 'FileCompare_management', 'Filter', 'FindClosestFacilities_na', 'FindConflicts_arc', 'FindDisconnectedFeaturesInGeometricNetwork_management', 'FindIdentical_management', 'FindRoutes_na', 'FlipLine_edit', 'Flip_management', 'FloatToRaster_conversion', 'Float_3d', 'Frequency_analysis', 'FromScriptingArcObject', 'FromWKB', 'FromWKT', 'GACalculateZValue_ga', 'GACreateGeostatisticalLayer_ga', 'GAGetModelParameter_ga', 'GALayerToContour_ga', 'GALayerToGrid_ga', 'GALayerToPoints_ga', 'GAMovingWindowKriging_ga', 'GANeighborhoodSelection_ga', 'GASemivariogramSensitivity_ga', 'GASetModelParameter_ga', 'GPXtoFeatures_conversion', 'GaussianGeostatisticalSimulations_ga', 'Generalize_edit', 'GenerateAttachmentMatchTable_management', 'GenerateEdgematchLinks_edit', 'GenerateExcludeArea_management', 'GenerateFgdbLicense_management', 'GenerateLicensedFgdb_management', 'GenerateMapServerCacheTilingScheme_server', 'GenerateNearTable_analysis', 'GenerateNetworkSpatialWeights_stats', 'GenerateOriginDestinationCostMatrix_na', 'GeneratePointCloud_management', 'GeneratePointsAlongLines_management', 'GenerateRasterFromRasterFunction_management', 'GenerateRubbersheetLinks_edit', 'GenerateServiceAreas_na', 'GenerateSpatialWeightsMatrix_stats', 'GenerateTessellation_management', 'GenerateTileCacheTilingScheme_management', 'Generate_arc', 'GeoProcessor', 'GeoTaggedPhotosToPoints_management', 'GeocodeAddresses_geocoding', 'GeodeticDensify_management', 'GeographicallyWeightedRegression_stats', 'Geometry', 'GeostatisticalDatasets', 'GetActivePortalURL', 'GetArgumentCount', 'GetCellValue_management', 'GetCount_management', 'GetIDMessage', 'GetImageEXIFProperties', 'GetInstallInfo', 'GetLayoutTemplatesInfo_server', 'GetLogHistory', 'GetMaxSeverity', 'GetMessage', 'GetMessageCount', 'GetMessages', 'GetPackageInfo', 'GetParameter', 'GetParameterAsText', 'GetParameterCount', 'GetParameterInfo', 'GetParameterValue', 'GetRasterProperties_management', 'GetReturnCode', 'GetSeverity', 'GetSeverityLevel', 'GetSigninToken', 'GetSystemEnvironment', 'GetUTMFromLocation', 'GlobalPolynomialInterpolation_ga', 'Graph', 'GraphTemplate', 'GraphicBuffer_analysis', 'GridIndexFeatures_cartography', 'GroupingAnalysis_stats', 'HighLowClustering_stats', 'HillShade_3d', 'HotSpotsRendered_stats', 'HotSpots_stats', 'IDEdit_arc', 'IDW_ga', 'Identity_analysis', 'Identity_arc', 'Idw_3d', 'Import3DFiles_3d', 'ImportCADAnnotation_conversion', 'ImportCoverageAnnotation_conversion', 'ImportFromE00_conversion', 'ImportGeodatabaseConfigurationKeywords_management', 'ImportMapServerCache_server', 'ImportMessage_management', 'ImportMetadata_conversion', 'ImportMosaicDatasetGeometry_management', 'ImportReplicaSchema_management', 'ImportTileCache_management', 'ImportToolbox', 'ImportXMLWorkspaceDocument_management', 'Import_arc', 'IncreaseMaximumEdges_na', 'IncrementalSpatialAutocorrelation_stats', 'Index', 'IndexItem_arc', 'InsertCursor', 'Inside3D_3d', 'Int_3d', 'Integrate_management', 'InterpolateFromPointCloud_management', 'InterpolatePolyToPatch_3d', 'InterpolateShape_3d', 'Intersect3DLineWithMultiPatch_3d', 'Intersect3DLineWithSurface_3d', 'Intersect3D_3d', 'Intersect_analysis', 'Intersect_arc', 'IntersectingLayersMasks_cartography', 'Intervisibility_3d', 'IsClosed3D_3d', 'IsSynchronous', 'JSONToFeatures_conversion', 'JoinField_management', 'JoinItem_arc', 'KMLToLayer_conversion', 'KernelInterpolationWithBarriers_ga', 'Kriging_3d', 'LASToMultipoint_3d', 'LandXMLToTin_3d', 'LasDatasetStatistics_management', 'LasDatasetToRaster_conversion', 'LasDatasetToTin_3d', 'LasPointStatsAsRaster_management', 'LasPointStatsByArea_3d', 'Layer3DToFeatureClass_3d', 'LayerToKML_conversion', 'LineOfSight_3d', 'ListDataStoreItems', 'ListDatasets', 'ListEnvironments', 'ListFeatureClasses', 'ListFields', 'ListFiles', 'ListIndexes', 'ListInstallations', 'ListPortalURLs', 'ListPrinterNames', 'ListRasters', 'ListSpatialReferences', 'ListTables', 'ListToolboxes', 'ListTools', 'ListTransformations', 'ListUsers', 'ListVersions', 'ListWorkspaces', 'LoadSettings', 'LoadTopologyToParcelFabric_fabric', 'LocalOutlierAnalysis_stpm', 'LocalPolynomialInterpolation_ga', 'LocateFeaturesAlongRoutes_lr', 'LocateLasPointsByProximity_3d', 'LocateOutliers_3d', 'LogUsageMetering', 'Lookup_3d', 'MDPublisher_conversion', 'MXDToWebMap_server', 'MakeClosestFacilityLayer_na', 'MakeFeatureLayer_management', 'MakeGraph_management', 'MakeGridsAndGraticulesLayer_cartography', 'MakeImageServerLayer_management', 'MakeLasDatasetLayer_management', 'MakeLocationAllocationLayer_na', 'MakeMosaicLayer_management', 'MakeNetCDFFeatureLayer_md', 'MakeNetCDFRasterLayer_md', 'MakeNetCDFTableView_md', 'MakeODCostMatrixLayer_na', 'MakeOPeNDAPRasterLayer_md', 'MakeParcelFabricLayer_fabric', 'MakeParcelFabricTableView_fabric', 'MakeQueryLayer_management', 'MakeQueryTable_management', 'MakeRasterCatalogLayer_management', 'MakeRasterLayer_management', 'MakeRouteEventLayer_lr', 'MakeRouteLayer_na', 'MakeServiceAreaLayer_na', 'MakeTableView_management', 'MakeTrackingLayer_ta', 'MakeVehicleRoutingProblemLayer_na', 'MakeWCSLayer_management', 'MakeXYEventLayer_management', 'ManageGlobeServerCacheTiles_server', 'ManageMapServerCacheScales_server', 'ManageMapServerCacheStatus_server', 'ManageMapServerCacheTiles_server', 'ManageTileCache_management', 'MapServerCacheTilingSchemeToPolygons_cartography', 'MapToKML_conversion', 'MatchPhotosToRowsByTime_management', 'MeanCenter_stats', 'MedianCenter_stats', 'MergeDividedRoads_cartography', 'MergeMosaicDatasetItems_management', 'Merge_management', 'MetadataImporter_conversion', 'MigrateRelationshipClass_management', 'MigrateStorage_management', 'MinimumBoundingGeometry_management', 'MinimumBoundingVolume_3d', 'Minus_3d', 'Mirror_management', 'MosaicToNewRaster_management', 'Mosaic_management', 'MultiDistanceSpatialClustering_stats', 'MultiPatchFootprint_3d', 'MultipartToSinglepart_management', 'Multipatch', 'MultipatchToCollada_conversion', 'MultipatchToRaster_conversion', 'MultipleRingBuffer_analysis', 'Multipoint', 'NaturalNeighbor_3d', 'Near3D_3d', 'Near_analysis', 'Near_arc', 'NetCDFFileProperties', 'NumPyArrayToRaster', 'ObserverPoints_3d', 'OptimizedHotSpotAnalysis_stats', 'OptimizedOutlierAnalysis_stats', 'OrdinaryLeastSquares_stats', 'OverlayRouteEvents_lr', 'PDFToTIFF_conversion', 'PackageLayer_management', 'PackageLocator_geocoding', 'PackageLocator_management', 'PackageMap_management', 'PackageResult_management', 'Parameter', 'ParseFieldName', 'ParseTableName', 'PivotTable_management', 'Plus_3d', 'Point', 'PointDistance_analysis', 'PointDistance_arc', 'PointFileInformation_3d', 'PointGeometry', 'PointNode_arc', 'PointToRaster_conversion', 'PointsToLine_management', 'PolyRegion_arc', 'Polygon', 'PolygonNeighbors_analysis', 'PolygonToLine_management', 'PolygonToRaster_conversion', 'PolygonVolume_3d', 'Polyline', 'PolylineToRaster_conversion', 'PopulateAlternateIDFields_na', 'ProductInfo', 'ProjectRaster_management', 'Project_arc', 'Project_management', 'PropagateDisplacement_cartography', 'QuickExport_interop', 'QuickImport_interop', 'RadialBasisFunctions_ga', 'RandomNumberGenerator', 'Raster', 'RasterCatalogToRasterDataset_management', 'RasterCompare_management', 'RasterDomain_3d', 'RasterTin_3d', 'RasterToASCII_conversion', 'RasterToDTED_management', 'RasterToFloat_conversion', 'RasterToGeodatabase_conversion', 'RasterToMultipoint_3d', 'RasterToNetCDF_md', 'RasterToNumPyArray', 'RasterToOtherFormat_conversion', 'RasterToPoint_conversion', 'RasterToPolygon_conversion', 'RasterToPolyline_conversion', 'RasterToVideo_conversion', 'ReExportUnacknowledgedMessages_management', 'RebuildAddressLocator_geocoding', 'RebuildGeometricNetwork_management', 'RebuildIndexes_management', 'RecalculateFeatureClassExtent_management', 'ReclassByASCIIFile_3d', 'ReclassByTable_3d', 'Reclassify_3d', 'ReconcileVersion_management', 'ReconcileVersions_management', 'RecordSet', 'RecoverFileGDB_management', 'RefreshActiveView', 'RefreshCatalog', 'RefreshTOC', 'RegionClass_arc', 'RegionPoly_arc', 'RegisterAsVersioned_management', 'RegisterRaster_management', 'RegisterWithGeodatabase_management', 'RegularizeBuildingFootprint_3d', 'RematchAddresses_geocoding', 'RemoveAttachments_management', 'RemoveConnectivityRuleFromGeometricNetwork_management', 'RemoveDataStoreItem', 'RemoveDomainFromField_management', 'RemoveEmptyFeatureClassFromGeometricNetwork_management', 'RemoveFeatureClassFromTerrain_3d', 'RemoveFeatureClassFromTopology_management', 'RemoveFieldConflictFilter_management', 'RemoveFilesFromLasDataset_management', 'RemoveIndex_management', 'RemoveJoin_management', 'RemoveOverride_cartography', 'RemoveRastersFromMosaicDataset_management', 'RemoveRuleFromTopology_management', 'RemoveSpatialIndex_management', 'RemoveSubtype_management', 'RemoveTerrainPyramidLevel_3d', 'RemoveToolbox', 'Rename_management', 'Renode_arc', 'RepairGeometry_management', 'RepairMosaicDatasetPaths_management', 'RepairRasterCatalogPaths_management', 'RepairVersionMetadata_management', 'RepairVersionTables_management', 'ReplaceTerrainPoints_3d', 'Resample_management', 'Rescale_management', 'Reselect_arc', 'ResetEnvironments', 'ResetProgressor', 'ResolveBuildingConflicts_cartography', 'ResolveRoadConflicts_cartography', 'Result', 'ReverseGeocode_geocoding', 'Rotate_management', 'Row', 'RubbersheetFeatures_edit', 'S57Arc_arc', 'SDTSExport_arc', 'SDTSImport_arc', 'SaveGraph_management', 'SaveSettings', 'SaveToLayerFile_management', 'Schema', 'SearchCursor', 'SearchNeighborhoodSmooth', 'SearchNeighborhoodSmoothCircular', 'SearchNeighborhoodStandard', 'SearchNeighborhoodStandardCircular', 'SelectByDimension_md', 'SelectData_management', 'SelectFeatureByOverride_cartography', 'SelectLayerByAttribute_management', 'SelectLayerByLocation_management', 'Select_analysis', 'SendEmailWithZipFileAttachment_server', 'SetClusterTolerance_management', 'SetDefaultSubtype_management', 'SetFlowDirection_management', 'SetLasClassCodesUsingFeatures_3d', 'SetLayerRepresentation_cartography', 'SetLogHistory', 'SetMosaicDatasetProperties_management', 'SetParameter', 'SetParameterAsText', 'SetProduct', 'SetProgressor', 'SetProgressorLabel', 'SetProgressorPosition', 'SetRasterProperties_management', 'SetRepresentationControlPointAtIntersect_cartography', 'SetRepresentationControlPointByAngle_cartography', 'SetSeverityLevel', 'SetSubtypeField_management', 'SetValueForRangeDomain_management', 'SharePackage_management', 'Shift_management', 'SignInToPortal_server', 'SignOutFromPortal_server', 'SimilaritySearch_stats', 'SimplifyBuilding_arc', 'SimplifyBuilding_cartography', 'SimplifyLineOrPolygon_arc', 'SimplifyLine_cartography', 'SimplifyPolygon_cartography', 'SkylineBarrier_3d', 'SkylineGraph_3d', 'Skyline_3d', 'Slice_3d', 'Slope_3d', 'SmoothLine_cartography', 'SmoothPolygon_cartography', 'Snap_edit', 'SolveLocationAllocation_na', 'SolveVehicleRoutingProblem_na', 'Solve_na', 'SortCodedValueDomain_management', 'Sort_management', 'SpatialAutocorrelation_stats', 'SpatialJoin_analysis', 'SpatialReference', 'SplineWithBarriers_3d', 'Spline_3d', 'SplitByAttributes_analysis', 'SplitLineAtPoint_management', 'SplitLine_management', 'SplitMosaicDatasetItems_management', 'SplitRaster_management', 'Split_analysis', 'Split_arc', 'StackProfile_3d', 'StageService_server', 'StandardDistance_stats', 'StandardizeAddresses_geocoding', 'Statistics_analysis', 'StripMapIndexFeatures_cartography', 'SubsetFeatures_ga', 'SunShadowVolume_3d', 'SurfaceAspect_3d', 'SurfaceContour_3d', 'SurfaceDifference_3d', 'SurfaceSlope_3d', 'SurfaceVolume_3d', 'SymDiff_analysis', 'SynchronizeChanges_management', 'SynchronizeMetadata_conversion', 'SynchronizeMosaicDataset_management', 'TINCompare_management', 'TableCompare_management', 'TableSelect_analysis', 'TableToDBASE_conversion', 'TableToDomain_management', 'TableToEllipse_management', 'TableToExcel_conversion', 'TableToGeodatabase_conversion', 'TableToNetCDF_md', 'TableToRelationshipClass_management', 'TableToTable_conversion', 'TabulateIntersection_analysis', 'TerrainToPoints_3d', 'TerrainToRaster_3d', 'TerrainToTin_3d', 'TestSchemaLock', 'Thiessen_arc', 'ThinRoadNetwork_cartography', 'TigerArc_arc', 'TigerTool_arc', 'TileLas_3d', 'TiledLabelsToAnnotation_cartography', 'Times_3d', 'TinDomain_3d', 'TinEdge_3d', 'TinLine_3d', 'TinNode_3d', 'TinPolygonTag_3d', 'TinRaster_3d', 'TinTriangle_3d', 'Tolerance_arc', 'TopoToRasterByFile_3d', 'TopoToRaster_3d', 'TraceGeometricNetwork_management', 'TrackIntervalsToFeature_ta', 'TrackIntervalsToLine_ta', 'TransferAttributes_edit', 'TransformFeatures_edit', 'TransformRouteEvents_lr', 'Transform_arc', 'TransposeFields_management', 'Trend_3d', 'TrimLine_edit', 'TruncateTable_management', 'TurnTableToTurnFeatureClass_na', 'USGSMPTranslator_conversion', 'UncompressFileGeodatabaseData_management', 'Ungenerate_arc', 'Union3D_3d', 'Union_analysis', 'Union_arc', 'UnregisterAsVersioned_management', 'UnsplitLine_management', 'UpdateAnalysisLayerAttributeParameter_na', 'UpdateAnnotation_management', 'UpdateByAlternateIDFields_na', 'UpdateByGeometry_na', 'UpdateCursor', 'UpdateDiagram_schematics', 'UpdateDiagrams_schematics', 'UpdateEnterpriseGeodatabaseLicense_management', 'UpdateOverride_cartography', 'UpdateTrafficData_na', 'UpdateTrafficIncidents_na', 'Update_analysis', 'Update_arc', 'UpgradeDataset_management', 'UpgradeGDB_management', 'UpgradeMapServerCacheStorageFormat_server', 'UpgradeMetadata_conversion', 'UpgradeNetwork_na', 'UpgradeParcelFabric_fabric', 'UpgradeSpatialReference_management', 'UploadServiceDefinition_server', 'Usage', 'VPFExport_arc', 'VPFImport_arc', 'VPFTile_arc', 'ValidateDataStoreItem', 'ValidateFieldName', 'ValidateMetadataMultiple_conversion', 'ValidateMetadata_conversion', 'ValidateTableName', 'ValidateTopology_management', 'Value', 'ValueTable', 'VerifyAndRepairGeometricNetworkConnectivity_management', 'Viewshed2_3d', 'Viewshed_3d', 'Visibility_3d', 'VisualizeSpaceTimeCube2D_stpm', 'VisualizeSpaceTimeCube3D_stpm', 'WFSToFeatureClass_conversion', 'WarpFromFile_management', 'Warp_management', 'WorkspaceToRasterCatalog_management', 'WorkspaceToRasterDataset_management', 'XMLSchemaValidator_conversion', 'XSLTransform_conversion', 'XYToLine_management', 'ZRenderer_stats', '_NumPyArrayToRaster', '_RasterToNumPyArray', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '_base', '_ga', '_gptooldoc', '_graph', '_management', '_mapping', '_na', 'analysis', 'arc', 'arcobjectconversion', 'arcobjects', 'arcpy', 'cartography', 'conversion', 'convertArcObjectToPythonObject', 'da', 'ddd', 'edit', 'env', 'f', 'fabric', 'ga', 'geocoding', 'geometries', 'geoprocessing', 'glob', 'gp', 'imp', 'import_local', 'interop', 'lr', 'management', 'mapping', 'md', 'mixins', 'na', 'numpy', 'os', 'passthrough_attr', 'sa', 'schematics', 'server', 'stats', 'stpm', 'sys', 'ta', 'time', 'toolbox', 'utils', 'warnings']


For QGIS it is called 'iface', so we do dir(iface).
>>> dir(iface)
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattr__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'actionAbout', 'actionAddAfsLayer', 'actionAddAllToOverview', 'actionAddAmsLayer', 'actionAddFeature', 'actionAddOgrLayer', 'actionAddPart', 'actionAddPgLayer', 'actionAddRasterLayer', 'actionAddRing', 'actionAddToOverview', 'actionAddWmsLayer', 'actionAllEdits', 'actionCancelAllEdits', 'actionCancelEdits', 'actionCheckQgisVersion', 'actionCopyFeatures', 'actionCopyLayerStyle', 'actionCreatePrintLayout', 'actionCustomProjection', 'actionCutFeatures', 'actionDeletePart', 'actionDeleteRing', 'actionDeleteSelected', 'actionDraw', 'actionDuplicateLayer', 'actionExit', 'actionFeatureAction', 'actionHelpContents', 'actionHideAllLayers', 'actionHideDeselectedLayers', 'actionHideSelectedLayers', 'actionIdentify', 'actionLayerProperties', 'actionLayerSaveAs', 'actionManagePlugins', 'actionMapTips', 'actionMeasure', 'actionMeasureArea', 'actionMoveFeature', 'actionNewBookmark', 'actionNewProject', 'actionNewVectorLayer', 'actionOpenFieldCalculator', 'actionOpenProject', 'actionOpenStatisticalSummary', 'actionOpenTable', 'actionOptions', 'actionPan', 'actionPanToSelected', 'actionPasteFeatures', 'actionPasteLayerStyle', 'actionPluginListSeparator', 'actionProjectProperties', 'actionQgisHomePage', 'actionRemoveAllFromOverview', 'actionRollbackAllEdits', 'actionRollbackEdits', 'actionSaveActiveLayerEdits', 'actionSaveAllEdits', 'actionSaveEdits', 'actionSaveMapAsImage', 'actionSaveProject', 'actionSaveProjectAs', 'actionSelect', 'actionSelectFreehand', 'actionSelectPolygon', 'actionSelectRadius', 'actionSelectRectangle', 'actionShowAllLayers', 'actionShowBookmarks', 'actionShowLayoutManager', 'actionShowPythonDialog', 'actionShowSelectedLayers', 'actionSimplifyFeature', 'actionSplitFeatures', 'actionSplitParts', 'actionToggleEditing', 'actionToggleFullScreen', 'actionVertexTool', 'actionVertexToolActiveLayer', 'actionZoomActualSize', 'actionZoomFullExtent', 'actionZoomIn', 'actionZoomLast', 'actionZoomNext', 'actionZoomOut', 'actionZoomToLayer', 'actionZoomToSelected', 'activeLayer', 'addCustomActionForLayer', 'addCustomActionForLayerType', 'addDatabaseToolBarIcon', 'addDatabaseToolBarWidget', 'addDockWidget', 'addLayerMenu', 'addMeshLayer', 'addPluginToDatabaseMenu', 'addPluginToMenu', 'addPluginToRasterMenu', 'addPluginToVectorMenu', 'addPluginToWebMenu', 'addProject', 'addRasterLayer', 'addRasterToolBarIcon', 'addRasterToolBarWidget', 'addToolBar', 'addToolBarIcon', 'addToolBarWidget', 'addUserInputWidget', 'addVectorLayer', 'addVectorToolBarIcon', 'addVectorToolBarWidget', 'addWebToolBarIcon', 'addWebToolBarWidget', 'addWindow', 'advancedDigitizeToolBar', 'askForDatumTransform', 'attributesToolBar', 'blockSignals', 'browserModel', 'buildStyleSheet', 'cadDockWidget', 'childEvent', 'children', 'closeMapCanvas', 'connectNotify', 'copySelectionToClipboard', 'createNewMapCanvas', 'currentLayerChanged', 'currentThemeChanged', 'customEvent', 'dataSourceManagerToolBar', 'databaseMenu', 'databaseToolBar', 'defaultStyleSheetFont', 'defaultStyleSheetOptions', 'deleteLater', 'deregisterLocatorFilter', 'destroyed', 'digitizeToolBar', 'disconnect', 'disconnectNotify', 'dumpObjectInfo', 'dumpObjectTree', 'dynamicPropertyNames', 'editMenu', 'editableLayers', 'event', 'eventFilter', 'fileToolBar', 'findChild', 'findChildren', 'firstRightStandardMenu', 'getFeatureForm', 'helpMenu', 'helpToolBar', 'iconSize', 'inherits', 'initializationCompleted', 'insertAddLayerAction', 'installEventFilter', 'invalidateLocatorResults', 'isSignalConnected', 'isWidgetType', 'isWindowType', 'killTimer', 'layerMenu', 'layerSavedAs', 'layerToolBar', 'layerTreeCanvasBridge', 'layerTreeView', 'layoutDesignerClosed', 'layoutDesignerOpened', 'layoutDesignerWillBeClosed', 'mainWindow', 'mapCanvas', 'mapCanvases', 'mapNavToolToolBar', 'messageBar', 'messageTimeout', 'metaObject', 'moveToThread', 'newLayerMenu', 'newProject', 'newProjectCreated', 'objectName', 'objectNameChanged', 'openFeatureForm', 'openLayoutDesigner', 'openLayoutDesigners', 'openMessageLog', 'openURL', 'parent', 'pasteFromClipboard', 'pluginManagerInterface', 'pluginMenu', 'pluginToolBar', 'preloadForm', 'projectMenu', 'projectRead', 'property', 'pyqtConfigure', 'rasterMenu', 'rasterToolBar', 'receivers', 'registerCustomDropHandler', 'registerCustomLayoutDropHandler', 'registerLocatorFilter', 'registerMainWindowAction', 'registerMapLayerConfigWidgetFactory', 'registerOptionsWidgetFactory', 'reloadConnections', 'removeAddLayerAction', 'removeCustomActionForLayerType', 'removeDatabaseToolBarIcon', 'removeDockWidget', 'removeEventFilter', 'removePluginDatabaseMenu', 'removePluginMenu', 'removePluginRasterMenu', 'removePluginVectorMenu', 'removePluginWebMenu', 'removeRasterToolBarIcon', 'removeToolBarIcon', 'removeVectorToolBarIcon', 'removeWebToolBarIcon', 'removeWindow', 'saveStyleSheetOptions', 'sender', 'senderSignalIndex', 'setActiveLayer', 'setObjectName', 'setParent', 'setProperty', 'settingsMenu', 'shapeDigitizeToolBar', 'showAttributeTable', 'showLayerProperties', 'showLayoutManager', 'showOptionsDialog', 'signalsBlocked', 'startTimer', 'staticMetaObject', 'statusBarIface', 'takeAppScreenShots', 'thread', 'timerEvent', 'tr', 'unregisterCustomDropHandler', 'unregisterCustomLayoutDropHandler', 'unregisterMainWindowAction', 'unregisterMapLayerConfigWidgetFactory', 'unregisterOptionsWidgetFactory', 'vectorLayerTools', 'vectorMenu', 'vectorToolBar', 'viewMenu', 'webMenu', 'webToolBar', 'windowMenu', 'zoomFull', 'zoomToActiveLayer', 'zoomToNext', 'zoomToPrevious']


4) Get details from document/project file

ArcGIS document/project file is save with the extension .mxd, while QGIS extension is .qgz or .qgs. And the can be manipulated via their respective APIs as seen below:-

ArcGIS: 
# Create project instance...
prjt = arcpy.mapping.MapDocument('current')

# project file path and name..
prjt.filePath

# project title
prjt.title

# project date saved
prjt.dateSaved

# project author
prjt.author

# project layer count
arcpy.mapping.ListLayers(prjt)

# project coordinate reference system
prjt.activeDataFrame.mapUnits

# set project working space/folder
arcpy.env.workspace

# list shp in working space/folder
arcpy.ListFeatureClasses('*.shp')

QGIS:
# Create project instance...
prjt = QgsProject.instance()

# project name..
prjt.fileName() 

# project folder
prjt.homePath()

# project layer count
prjt.count()

# project coordinate reference system
prjt.crs()
prjt.crs().geographicCrsAuthId()
prjt.crs().authid()

# project bounds
prjt.crs().bounds().asWktCoordinates()


5) Load vector layer onto the layer panel (table of contents)

ArcGIS: 
# Get the map document...
mxd = arcpy.mapping.MapDocument("CURRENT")

# Get active dataframe from the map document...
df = mxd.activeDataFrame

# Read and Add shp layer to the dataframe...
shp = r'C:\Users\Yusuf_08039508010\Documents\...\Abia_state.shp'
newlayer = arcpy.mapping.Layer(shp)

arcpy.mapping.AddLayer(df, newlayer, "BOTTOM")

print('Done...')


QGIS:
# Read the shapefile...
shp = r"C:\Users\Yusuf_08039508010\Documents\...\Abia_state.shp"
layer = QgsVectorLayer(shp, 'DisplayName', 'ogr')
 
# Add the layer to Layer Panel...
QgsProject.instance().addMapLayer(layer)


6) Load raster layer onto the layer panel (table of contents)

ArcGIS: 
# Get the map document...
mxd = arcpy.mapping.MapDocument("CURRENT")

# Get active dataframe from the map document...
df = mxd.activeDataFrame

# Read and Add raster layer to the dataframe...
raster_file = r"C:\Users\Yusuf_08039508010\Desktop\Working_Files\Fiverr\2021\012-December\SGI Exhibition\Maps\Maps\FPN_DEM.tif"
newlayer = arcpy.mapping.Layer(raster_file)

arcpy.mapping.AddLayer(df, newlayer, "BOTTOM") # Or: arcpy.MakeRasterLayer_management(raster_file, "FPNB")

print('Done...')



QGIS:
# Read the raster file
raster_file = r"C:\Users\Yusuf_08039508010\Desktop\Working_Files\Fiverr\2021\012-December\SGI Exhibition\Maps\Maps\FPN_DEM.tif"
layer = QgsRasterLayer(raster_file, 'DisplayName')
 
# Add the layer to the map (comment the following line if the loading in the Layers Panel is not needed)
QgsProject.instance().addMapLayer(layer)



7) Load table onto the layer panel (table of contents)

ArcGIS: 
# Get the map document...
mxd = arcpy.mapping.MapDocument("CURRENT")

# Get active dataframe from the map document...
df = mxd.activeDataFrame

# Read and Add CSV file to the dataframe...
csv_table = r"C:\Users\Yusuf_08039508010\Documents\...\jcode.csv"

newlayer = arcpy.MakeTableView_management(in_table=csv_table, out_view='DisplayName')
arcpy.mapping.AddLayer(df, newlayer, "BOTTOM")

print('Done...')



QGIS:
# Read the CSV file...
csv_table = r"C:\Users\Yusuf_08039508010\Documents\...\jcode.csv"

layer = QgsVectorLayer(csv_table, 'DisplayName', 'ogr')
 
# Add the layer to Layer Panel...
QgsProject.instance().addMapLayer(layer)



8) Determine the type of a shapefile

In this section we will write script to determine if a shapefile is a point. line or polygon type.

ArcGIS: 
# Get list of feature classes (shapefiles)...
fc_list = arcpy.ListFeatureClasses()

# Loop and print out the shape type from describe class
for f in fc_list:
    print(arcpy.Describe(f).shapeType)



QGIS:
layers_on_panel = QgsProject.instance().mapLayers()

for k, v in layers_on_panel.items():
    # Read the map layer...
    map_file = layers_on_panel[k]
    layer_name = map_file.name()
    layer = QgsVectorLayer(map_file.source(), layer_name, "ogr")
    
    layer_type = layer.geometryType()
    print(layer_name, layer_type)

The code above returns a number that corresponds to the list below that represent value of a shape type. On page 4 of the document "ESRI Shapefile Technical Description"


0 >> Null Shape
1 >> Point
3 >> PolyLine
5 >> Polygon
8 >> MultiPoint
11 >> PointZ
13 >> PolyLineZ
15 >> PolygonZ
18 >> MultiPointZ
21 >> PointM
23 >> PolyLineM
25 >> PolygonM
28 >> MultiPointM
31 >> MultiPatch



9) Save map canvas to image file

ArcGIS: 
# Define the current MapDocument obj...
prjt = arcpy.mapping.MapDocument('current')

# Export to png image...
arcpy.mapping.ExportToPNG(prjt, r"C:\Users\Yusuf_08039508010\Documents\...\Project.png")




QGIS:
# Save map canvas as image, a quick export of the current map canvas
iface.mapCanvas().resize(QSize(1280, 720)) # set canvas size
iface.mapCanvas().saveAsImage('Test123.png', None, 'PNG') # save img


10) Zoom map to layer extent

ArcGIS: 
# Zoom map canvas (dataframe) to layer extent
# Get current MXD project...
prjt = arcpy.mapping.MapDocument('current') # using current map, can also use a path to a mxd here

# Get active or a dataframe...
df = arcpy.mapping.ListDataFrames(prjt)[0]

# Get one layer from dataframe above
lyr = arcpy.mapping.ListLayers(prjt, '*', df)[0]

# Get the layer extent..
ext = lyr.getExtent()

# Set dataframe extent to the layer extent...
df.extent = ext



QGIS:
# Get the map canvas
canvas = iface.mapCanvas() # Or: canvas = qgis.utils.iface.mapCanvas()

# Define layer (active layer in this case)
vLayer = iface.activeLayer()

# Get the layer extent
e = vLayer.extent()

# Zoom the canvas to the layer extent...
canvas.zoomToFeatureExtent(e)

We can go on and on doing lots of useful stuff with these APIs. From the next section, lets take a look at geoprocessing task in the APIs. First we will start by list all the geoprocessing command available within the API.


11) List all geoprocessing command

ArcGIS: 
# Lists the geoprocessing toolboxes
arcpy.ListToolboxes('*')

[u'3D Analyst Tools(3d)', u'Analysis Tools(analysis)', u'Cartography Tools(cartography)', u'Conversion Tools(conversion)', u'Data Interoperability Tools(interop)', u'Data Management Tools(management)', u'Editing Tools(edit)', u'Geocoding Tools(geocoding)', u'Geostatistical Analyst Tools(ga)', u'Linear Referencing Tools(lr)', u'Multidimension Tools(md)', u'Network Analyst Tools(na)', u'Parcel Fabric Tools(fabric)', u'Samples(samples)', u'Schematics Tools(schematics)', u'Server Tools(server)', u'Spatial Analyst Tools(sa)', u'Spatial Statistics Tools(stats)', u'Tracking Analyst Tools(ta)', u'Space Time Pattern Mining Tools(stpm)']

Using the ListTools() method, we can get all the names of the arctool box commands as seen below; My version of ArcGIS 10.5 has about 902 commands.
# List of all ArcPy toolbox commands...
toolbox_list = arcpy.ListTools()
print(toolbox_list)

[u'InterpolateShape_3d', u'SurfaceVolume_3d', u'Idw_3d', u'Kriging_3d', u'NaturalNeighbor_3d', u'Spline_3d', u'TopoToRaster_3d', u'TopoToRasterByFile_3d', u'Trend_3d', u'Divide_3d', u'Float_3d', u'Int_3d', u'Minus_3d', u'Plus_3d', u'Times_3d', u'Lookup_3d', u'ReclassByASCIIFile_3d', u'ReclassByTable_3d', u'Reclassify_3d', u'Slice_3d', u'Aspect_3d', u'Contour_3d', u'ContourList_3d', u'Curvature_3d', u'HillShade_3d', u'Slope_3d', u'DecimateTinNodes_3d', u'ExtrudeBetween_3d', u'InterpolatePolyToPatch_3d', u'Layer3DToFeatureClass_3d', u'TinDomain_3d', u'TinEdge_3d', u'TinLine_3d', u'TinNode_3d', u'TinPolygonTag_3d', u'TinRaster_3d', u'TinTriangle_3d', u'RasterDomain_3d', u'RasterTin_3d', u'Import3DFiles_3d', u'MultiPatchFootprint_3d', u'LASToMultipoint_3d', u'TerrainToRaster_3d', u'TerrainToTin_3d', u'FeatureClassZToASCII_3d', u'PointFileInformation_3d', u'ContourWithBarriers_3d', u'RasterToMultipoint_3d', u'TerrainToPoints_3d', u'SurfaceContour_3d', u'PolygonVolume_3d', u'AddZInformation_3d', u'SurfaceAspect_3d', u'SurfaceDifference_3d', u'SurfaceSlope_3d', u'LocateOutliers_3d', u'FeatureTo3DByAttribute_3d', u'Intersect3DLineWithMultiPatch_3d', u'AddSurfaceInformation_3d', u'LandXMLToTin_3d', u'Near3D_3d', u'Inside3D_3d', u'Intersect3D_3d', u'IsClosed3D_3d', u'Union3D_3d', u'Difference3D_3d', u'CutFill_3d', u'SplineWithBarriers_3d', u'ConstructSightLines_3d', u'Skyline_3d', u'SkylineBarrier_3d', u'SkylineGraph_3d', u'LineOfSight_3d', u'Viewshed_3d', u'CopyTin_3d', u'CreateTin_3d', u'DelineateTinDataArea_3d', u'EditTin_3d', u'AddFeatureClassToTerrain_3d', u'AddTerrainPyramidLevel_3d', u'AppendTerrainPoints_3d', u'BuildTerrain_3d', u'ChangeTerrainReferenceScale_3d', u'ChangeTerrainResolutionBounds_3d', u'CreateTerrain_3d', u'DeleteTerrainPoints_3d', u'RemoveFeatureClassFromTerrain_3d', u'RemoveTerrainPyramidLevel_3d', u'ReplaceTerrainPoints_3d', u'ObserverPoints_3d', u'Buffer3D_3d', u'LasDatasetToTin_3d', u'ASCII3DToFeatureClass_3d', u'ChangeLasClassCodes_3d', u'SetLasClassCodesUsingFeatures_3d', u'StackProfile_3d', u'Intersect3DLineWithSurface_3d', u'EncloseMultiPatch_3d', u'SunShadowVolume_3d', u'Intervisibility_3d', u'Visibility_3d', u'FeaturesFromCityEngineRules_3d', u'ExportTo3DWebScene_3d', u'ClassifyLasByHeight_3d', u'LasPointStatsByArea_3d', u'LocateLasPointsByProximity_3d', u'Viewshed2_3d', u'ExtractLas_3d', u'MinimumBoundingVolume_3d', u'ClassifyLasGround_3d', u'RegularizeBuildingFootprint_3d', u'ClassifyLasBuilding_3d', u'TileLas_3d', u'Buffer_analysis', u'Clip_analysis', u'Erase_analysis', u'Identity_analysis', u'Intersect_analysis', u'SymDiff_analysis', u'Update_analysis', u'Split_analysis', u'Near_analysis', u'PointDistance_analysis', u'Select_analysis', u'TableSelect_analysis', u'Frequency_analysis', u'Statistics_analysis', u'CreateThiessenPolygons_analysis', u'SpatialJoin_analysis', u'MultipleRingBuffer_analysis', u'GenerateNearTable_analysis', u'Union_analysis', u'TabulateIntersection_analysis', u'PolygonNeighbors_analysis', u'SplitByAttributes_analysis', u'GraphicBuffer_analysis', u'CulDeSacMasks_cartography', u'FeatureOutlineMasks_cartography', u'IntersectingLayersMasks_cartography', u'SetRepresentationControlPointByAngle_cartography', u'CreateOverpass_cartography', u'CreateUnderpass_cartography', u'AlignMarkerToStrokeOrFill_cartography', u'DisperseMarkers_cartography', u'SetRepresentationControlPointAtIntersect_cartography', u'DetectGraphicConflict_cartography', u'AddRepresentation_cartography', u'CalculateRepresentationRule_cartography', u'DropRepresentation_cartography', u'RemoveOverride_cartography', u'SelectFeatureByOverride_cartography', u'SetLayerRepresentation_cartography', u'UpdateOverride_cartography', u'CalculateLineCaps_cartography', u'CalculatePolygonMainAngle_cartography', u'CalculateUTMZone_cartography', u'CalculateAdjacentFields_cartography', u'CalculateGridConvergenceAngle_cartography', u'ThinRoadNetwork_cartography', u'PropagateDisplacement_cartography', u'ResolveBuildingConflicts_cartography', u'ResolveRoadConflicts_cartography', u'AggregatePolygons_cartography', u'CollapseDualLinesToCenterline_cartography', u'SimplifyBuilding_cartography', u'SimplifyLine_cartography', u'SmoothLine_cartography', u'GridIndexFeatures_cartography', u'StripMapIndexFeatures_cartography', u'SimplifyPolygon_cartography', u'SmoothPolygon_cartography', u'AggregatePoints_cartography', u'ContourAnnotation_cartography', u'MapServerCacheTilingSchemeToPolygons_cartography', u'TiledLabelsToAnnotation_cartography', u'CreateCartographicPartitions_cartography', u'CollapseRoadDetail_cartography', u'DelineateBuiltUpAreas_cartography', u'CalculateCentralMeridianAndParallels_cartography', u'DeleteGridsAndGraticules_cartography', u'MakeGridsAndGraticulesLayer_cartography', u'MergeDividedRoads_cartography', u'ImportCoverageAnnotation_conversion', u'ImportCADAnnotation_conversion', u'RasterToASCII_conversion', u'RasterToFloat_conversion', u'RasterToPoint_conversion', u'RasterToPolygon_conversion', u'RasterToPolyline_conversion', u'FeatureClassToGeodatabase_conversion', u'RasterToGeodatabase_conversion', u'TableToGeodatabase_conversion', u'ASCIIToRaster_conversion', u'DEMToRaster_conversion', u'FeatureToRaster_conversion', u'FloatToRaster_conversion', u'FeatureClassToShapefile_conversion', u'TableToDBASE_conversion', u'FeatureclassToCoverage_conversion', u'FeatureClassToFeatureClass_conversion', u'TableToTable_conversion', u'ESRITranslator_conversion', u'USGSMPTranslator_conversion', u'XSLTransform_conversion', u'MDPublisher_conversion', u'PointToRaster_conversion', u'PolygonToRaster_conversion', u'PolylineToRaster_conversion', u'MetadataImporter_conversion', u'AddCADFields_conversion', u'ExportCAD_conversion', u'RasterToVideo_conversion', u'RasterToOtherFormat_conversion', u'SynchronizeMetadata_conversion', u'XMLSchemaValidator_conversion', u'ImportMetadata_conversion', u'MultipatchToCollada_conversion', u'ImportFromE00_conversion', u'ValidateMetadata_conversion', u'ValidateMetadataMultiple_conversion', u'ExportMetadataMultiple_conversion', u'ExportMetadata_conversion', u'WFSToFeatureClass_conversion', u'CADToGeodatabase_conversion', u'GPXtoFeatures_conversion', u'LasDatasetToRaster_conversion', u'TableToExcel_conversion', u'ExcelToTable_conversion', u'FeaturesToJSON_conversion', u'JSONToFeatures_conversion', u'MultipatchToRaster_conversion', u'UpgradeMetadata_conversion', u'CopyRuntimeGdbToFileGdb_conversion', u'PDFToTIFF_conversion', u'KMLToLayer_conversion', u'LayerToKML_conversion', u'MapToKML_conversion', u'AddRasterToGeoPackage_conversion', u'QuickExport_interop', u'QuickImport_interop', u'DeleteRows_management', u'CopyRows_management', u'CopyFeatures_management', u'Dissolve_management', u'MakeFeatureLayer_management', u'SaveToLayerFile_management', u'AddJoin_management', u'RemoveJoin_management', u'Copy_management', u'Delete_management', u'Rename_management', u'CreatePersonalGDB_management', u'CreateArcInfoWorkspace_management', u'CreateFolder_management', u'CreateFeatureDataset_management', u'PivotTable_management', u'CreateFeatureclass_management', u'CreateTable_management', u'MakeTableView_management', u'AddIndex_management', u'RemoveIndex_management', u'AddSpatialIndex_management', u'RemoveSpatialIndex_management', u'CreateDomain_management', u'DeleteDomain_management', u'AddCodedValueToDomain_management', u'DeleteCodedValueFromDomain_management', u'SetValueForRangeDomain_management', u'AssignDomainToField_management', u'RemoveDomainFromField_management', u'TableToDomain_management', u'DomainToTable_management', u'AddXY_management', u'SelectLayerByAttribute_management', u'SelectLayerByLocation_management', u'CalculateDefaultGridIndex_management', u'GetCount_management', u'CreateVersion_management', u'DeleteVersion_management', u'RegisterAsVersioned_management', u'UnregisterAsVersioned_management', u'AlterVersion_management', u'Analyze_management', u'CreateRelationshipClass_management', u'TableToRelationshipClass_management', u'FeatureToPoint_management', u'FeatureVerticesToPoints_management', u'FeatureToLine_management', u'FeatureToPolygon_management', u'PolygonToLine_management', u'SplitLine_management', u'DefineProjection_management', u'Eliminate_management', u'RepairGeometry_management', u'CreateTopology_management', u'AddFeatureClassToTopology_management', u'RemoveFeatureClassFromTopology_management', u'AddRuleToTopology_management', u'RemoveRuleFromTopology_management', u'ValidateTopology_management', u'SetClusterTolerance_management', u'MakeQueryTable_management', u'MakeXYEventLayer_management', u'UpdateAnnotation_management', u'AppendAnnotation_management', u'MakeRasterLayer_management', u'Flip_management', u'Mirror_management', u'ProjectRaster_management', u'Rescale_management', u'Rotate_management', u'Shift_management', u'Warp_management', u'Append_management', u'DeleteFeatures_management', u'MakeRasterCatalogLayer_management', u'AddField_management', u'AssignDefaultToField_management', u'CalculateField_management', u'DeleteField_management', u'MultipartToSinglepart_management', u'Integrate_management', u'Merge_management', u'FeatureCompare_management', u'FileCompare_management', u'RasterCompare_management', u'TableCompare_management', u'CreateCustomGeoTransformation_management', u'CreateFileGDB_management', u'UpgradeSpatialReference_management', u'Adjust3DZ_management', u'Compress_management', u'CompareReplicaSchema_management', u'CreateReplica_management', u'CreateReplicaFootPrints_management', u'CreateReplicaFromServer_management', u'ExportAcknowledgementMessage_management', u'ExportDataChangeMessage_management', u'ExportReplicaSchema_management', u'ImportMessage_management', u'ImportReplicaSchema_management', u'ReExportUnacknowledgedMessages_management', u'SynchronizeChanges_management', u'AddSubtype_management', u'RemoveSubtype_management', u'SetDefaultSubtype_management', u'SetSubtypeField_management', u'AddColormap_management', u'BuildRasterAttributeTable_management', u'DeleteColormap_management', u'DeleteRasterAttributeTable_management', u'BuildPyramids_management', u'CalculateStatistics_management', u'GetRasterProperties_management', u'CopyRaster_management', u'CreateRandomRaster_management', u'CreateRasterDataset_management', u'Mosaic_management', u'WorkspaceToRasterDataset_management', u'CopyRasterCatalogItems_management', u'CreateRasterCatalog_management', u'DeleteRasterCatalogItems_management', u'WorkspaceToRasterCatalog_management', u'CreateOrthoCorrectedRasterDataset_management', u'CreatePansharpenedRasterDataset_management', u'Clip_management', u'CompositeBands_management', u'Resample_management', u'ExportRasterWorldFile_management', u'GetCellValue_management', u'RasterCatalogToRasterDataset_management', u'ExtractSubDataset_management', u'TINCompare_management', u'MakeImageServerLayer_management', u'MakeWCSLayer_management', u'ApplySymbologyFromLayer_management', u'ExportRasterCatalogPaths_management', u'RepairRasterCatalogPaths_management', u'MigrateStorage_management', u'MosaicToNewRaster_management', u'Dice_management', u'SplitLineAtPoint_management', u'UnsplitLine_management', u'SplitRaster_management', u'EliminatePolygonPart_management', u'MakeGraph_management', u'SaveGraph_management', u'PointsToLine_management', u'ChangeVersion_management', u'RegisterWithGeodatabase_management', u'UpgradeGDB_management', u'CalculateDefaultClusterTolerance_management', u'DeleteIdentical_management', u'FindIdentical_management', u'ConsolidateLayer_management', u'ConsolidateMap_management', u'PackageLayer_management', u'PackageMap_management', u'ChangePrivileges_management', u'CreateSpatialReference_management', u'RasterToDTED_management', u'BearingDistanceToLine_management', u'TableToEllipse_management', u'XYToLine_management', u'ConvertCoordinateNotation_management', u'CompressFileGeodatabaseData_management', u'UncompressFileGeodatabaseData_management', u'ExtractPackage_management', u'SharePackage_management', u'BuildPyramidsandStatistics_management', u'MakeMosaicLayer_management', u'MinimumBoundingGeometry_management', u'AddRastersToMosaicDataset_management', u'BuildBoundary_management', u'BuildFootprints_management', u'BuildOverviews_management', u'BuildSeamlines_management', u'CalculateCellSizeRanges_management', u'ColorBalanceMosaicDataset_management', u'ComputeDirtyArea_management', u'CreateMosaicDataset_management', u'CreateReferencedMosaicDataset_management', u'DefineMosaicDatasetNoData_management', u'DefineOverviews_management', u'GenerateExcludeArea_management', u'ImportMosaicDatasetGeometry_management', u'RemoveRastersFromMosaicDataset_management', u'SynchronizeMosaicDataset_management', u'CalculateEndTime_management', u'ConvertTimeField_management', u'ConvertTimeZone_management', u'TransposeFields_management', u'AddGlobalIDs_management', u'WarpFromFile_management', u'ExportXMLWorkspaceDocument_management', u'ImportXMLWorkspaceDocument_management', u'AlterMosaicDatasetSchema_management', u'AnalyzeMosaicDataset_management', u'Compact_management', u'ClearWorkspaceCache_management', u'AnalyzeDatasets_management', u'RebuildIndexes_management', u'CheckGeometry_management', u'ReconcileVersions_management', u'CreateArcSDEConnectionFile_management', u'AddEdgeEdgeConnectivityRuleToGeometricNetwork_management', u'AddEdgeJunctionConnectivityRuleToGeometricNetwork_management', u'CreateGeometricNetwork_management', u'RemoveConnectivityRuleFromGeometricNetwork_management', u'RemoveEmptyFeatureClassFromGeometricNetwork_management', u'TraceGeometricNetwork_management', u'AddAttachments_management', u'DisableAttachments_management', u'EnableAttachments_management', u'RemoveAttachments_management', u'SetMosaicDatasetProperties_management', u'SetRasterProperties_management', u'MakeLasDatasetLayer_management', u'DownloadRasters_management', u'CreateEnterpriseGeodatabase_management', u'EnableEnterpriseGeodatabase_management', u'FeatureEnvelopeToPolygon_management', u'MakeQueryLayer_management', u'SetFlowDirection_management', u'CreateDatabaseConnection_management', u'DeleteMosaicDataset_management', u'CreateSpatialType_management', u'GenerateAttachmentMatchTable_management', u'ConsolidateLocator_management', u'PackageLocator_management', u'CreateDatabaseView_management', u'SortCodedValueDomain_management', u'DisableEditorTracking_management', u'EnableEditorTracking_management', u'TruncateTable_management', u'ConsolidateResult_management', u'PackageResult_management', u'UpgradeDataset_management', u'AddFilesToLasDataset_management', u'CreateLasDataset_management', u'LasDatasetStatistics_management', u'LasPointStatsAsRaster_management', u'RemoveFilesFromLasDataset_management', u'ExportMosaicDatasetPaths_management', u'RepairMosaicDatasetPaths_management', u'CreateDatabaseUser_management', u'JoinField_management', u'EditRasterFunction_management', u'BuildMosaicDatasetItemCache_management', u'CreateUnRegisteredFeatureclass_management', u'CreateUnRegisteredTable_management', u'BatchBuildPyramids_management', u'BatchCalculateStatistics_management', u'RecoverFileGDB_management', u'Sort_management', u'CreateMapTilePackage_management', u'MatchPhotosToRowsByTime_management', u'GeoTaggedPhotosToPoints_management', u'RegisterRaster_management', u'AddIncrementingIDField_management', u'CreateRole_management', u'ExportTileCache_management', u'GenerateTileCacheTilingScheme_management', u'ImportTileCache_management', u'ManageTileCache_management', u'DisableArchiving_management', u'EnableArchiving_management', u'MergeMosaicDatasetItems_management', u'SplitMosaicDatasetItems_management', u'ComputePansharpenWeights_management', u'DetectFeatureChanges_management', u'Project_management', u'BatchProject_management', u'AddGeometryAttributes_management', u'MigrateRelationshipClass_management', u'FindDisconnectedFeaturesInGeometricNetwork_management', u'ExportMosaicDatasetGeometry_management', u'ExportMosaicDatasetItems_management', u'CreateRuntimeContent_management', u'RebuildGeometricNetwork_management', u'VerifyAndRepairGeometricNetworkConnectivity_management', u'AddFieldConflictFilter_management', u'RemoveFieldConflictFilter_management', u'GenerateFgdbLicense_management', u'GenerateLicensedFgdb_management', u'ExportGeodatabaseConfigurationKeywords_management', u'ImportGeodatabaseConfigurationKeywords_management', u'AlterField_management', u'GeodeticDensify_management', u'ConfigureGeodatabaseLogFileTables_management', u'CreateRasterType_management', u'DeleteSchemaGeodatabase_management', u'DiagnoseVersionMetadata_management', u'DiagnoseVersionTables_management', u'RepairVersionMetadata_management', u'RepairVersionTables_management', u'AnalyzeToolsForPro_management', u'ExportTopologyErrors_management', u'CreateSQLiteDatabase_management', u'GenerateRasterFromRasterFunction_management', u'RecalculateFeatureClassExtent_management', u'GenerateTessellation_management', u'CreateFishnet_management', u'CreateRandomPoints_management', u'GeneratePointsAlongLines_management', u'UpdateEnterpriseGeodatabaseLicense_management', u'AnalyzeControlPoints_management', u'AppendControlPoints_management', u'ApplyBlockAdjustment_management', u'ComputeBlockAdjustment_management', u'ComputeCameraModel_management', u'ComputeControlPoints_management', u'ComputeTiePoints_management', u'BuildStereoModel_management', u'GeneratePointCloud_management', u'InterpolateFromPointCloud_management', u'ComputeMosaicCandidates_management', u'Densify_edit', u'ErasePoint_edit', u'ExtendLine_edit', u'FlipLine_edit', u'Snap_edit', u'TrimLine_edit', u'Generalize_edit', u'EdgematchFeatures_edit', u'GenerateEdgematchLinks_edit', u'GenerateRubbersheetLinks_edit', u'RubbersheetFeatures_edit', u'TransferAttributes_edit', u'TransformFeatures_edit', u'AlignFeatures_edit', u'CalculateTransformationErrors_edit', u'CreateCompositeAddressLocator_geocoding', u'CreateAddressLocator_geocoding', u'GeocodeAddresses_geocoding', u'RebuildAddressLocator_geocoding', u'RematchAddresses_geocoding', u'StandardizeAddresses_geocoding', u'ReverseGeocode_geocoding', u'GALayerToGrid_ga', u'GACalculateZValue_ga', u'GAGetModelParameter_ga', u'GASetModelParameter_ga', u'GANeighborhoodSelection_ga', u'GAMovingWindowKriging_ga', u'GASemivariogramSensitivity_ga', u'GACreateGeostatisticalLayer_ga', u'GALayerToContour_ga', u'GALayerToPoints_ga', u'GaussianGeostatisticalSimulations_ga', u'SubsetFeatures_ga', u'IDW_ga', u'LocalPolynomialInterpolation_ga', u'GlobalPolynomialInterpolation_ga', u'CrossValidation_ga', u'KernelInterpolationWithBarriers_ga', u'DiffusionInterpolationWithBarriers_ga', u'RadialBasisFunctions_ga', u'CreateSpatiallyBalancedPoints_ga', u'DensifySamplingNetwork_ga', u'ExtractValuesToTable_ga', u'EmpiricalBayesianKriging_ga', u'ArealInterpolationLayerToPolygons_ga', u'CalibrateRoutes_lr', u'CreateRoutes_lr', u'DissolveRouteEvents_lr', u'LocateFeaturesAlongRoutes_lr', u'MakeRouteEventLayer_lr', u'OverlayRouteEvents_lr', u'TransformRouteEvents_lr', u'MakeNetCDFRasterLayer_md', u'SelectByDimension_md', u'RasterToNetCDF_md', u'MakeNetCDFTableView_md', u'TableToNetCDF_md', u'MakeNetCDFFeatureLayer_md', u'FeatureToNetCDF_md', u'MakeOPeNDAPRasterLayer_md', u'MakeRouteLayer_na', u'AddLocations_na', u'Directions_na', u'MakeClosestFacilityLayer_na', u'MakeServiceAreaLayer_na', u'MakeODCostMatrixLayer_na', u'CalculateLocations_na', u'AddFieldToAnalysisLayer_na', u'IncreaseMaximumEdges_na', u'CreateTurnFeatureClass_na', u'PopulateAlternateIDFields_na', u'TurnTableToTurnFeatureClass_na', u'UpdateByAlternateIDFields_na', u'UpdateByGeometry_na', u'BuildNetwork_na', u'UpdateAnalysisLayerAttributeParameter_na', u'MakeVehicleRoutingProblemLayer_na', u'Solve_na', u'MakeLocationAllocationLayer_na', u'DissolveNetwork_na', u'SolveVehicleRoutingProblem_na', u'GenerateServiceAreas_na', u'UpdateTrafficData_na', u'UpdateTrafficIncidents_na', u'CopyTraversedSourceFeatures_na', u'FindClosestFacilities_na', u'SolveLocationAllocation_na', u'FindRoutes_na', u'GenerateOriginDestinationCostMatrix_na', u'MakeParcelFabricLayer_fabric', u'MakeParcelFabricTableView_fabric', u'LoadTopologyToParcelFabric_fabric', u'AppendParcelFabric_fabric', u'CopyParcelFabric_fabric', u'CreateDiagram_schematics', u'UpdateDiagram_schematics', u'UpdateDiagrams_schematics', u'CreateSchematicFolder_schematics', u'ConvertDiagram_schematics', u'DeleteGlobeServerCache_server', u'ManageGlobeServerCacheTiles_server', u'SendEmailWithZipFileAttachment_server', u'ExtractDataTask_server', u'ExtractDataAndEmailTask_server', u'ExtractData_server', u'UploadServiceDefinition_server', u'StageService_server', u'SignInToPortal_server', u'SignOutFromPortal_server', u'ExportWebMap_server', u'ConvertMapServerCacheStorageFormat_server', u'CreateMapServerCache_server', u'DeleteMapServerCache_server', u'ExportMapServerCache_server', u'GenerateMapServerCacheTilingScheme_server', u'ImportMapServerCache_server', u'ManageMapServerCacheScales_server', u'ManageMapServerCacheTiles_server', u'ManageMapServerCacheStatus_server', u'MXDToWebMap_server', u'GetLayoutTemplatesInfo_server', u'UpgradeMapServerCacheStorageFormat_server', u'Con_sa', u'Pick_sa', u'SetNull_sa', u'KernelDensity_sa', u'LineDensity_sa', u'PointDensity_sa', u'Corridor_sa', u'CostAllocation_sa', u'CostBackLink_sa', u'CostDistance_sa', u'CostPath_sa', u'EucAllocation_sa', u'EucDirection_sa', u'EucDistance_sa', u'PathAllocation_sa', u'PathBackLink_sa', u'PathDistance_sa', u'ExtractByAttributes_sa', u'ExtractByCircle_sa', u'ExtractByPoints_sa', u'ExtractByPolygon_sa', u'ExtractByRectangle_sa', u'ExtractValuesToPoints_sa', u'Sample_sa', u'Aggregate_sa', u'BoundaryClean_sa', u'Expand_sa', u'MajorityFilter_sa', u'Nibble_sa', u'RegionGroup_sa', u'Shrink_sa', u'Thin_sa', u'DarcyFlow_sa', u'DarcyVelocity_sa', u'ParticleTrack_sa', u'PorousPuff_sa', u'Basin_sa', u'Fill_sa', u'FlowAccumulation_sa', u'FlowDirection_sa', u'FlowLength_sa', u'Sink_sa', u'SnapPourPoint_sa', u'StreamLink_sa', u'StreamOrder_sa', u'StreamToFeature_sa', u'Watershed_sa', u'Idw_sa', u'Kriging_sa', u'NaturalNeighbor_sa', u'Spline_sa', u'TopoToRaster_sa', u'TopoToRasterByFile_sa', u'Trend_sa', u'CellStatistics_sa', u'Combine_sa', u'EqualToFrequency_sa', u'GreaterThanFrequency_sa', u'HighestPosition_sa', u'LessThanFrequency_sa', u'LowestPosition_sa', u'Popularity_sa', u'Rank_sa', u'Abs_sa', u'BitwiseAnd_sa', u'BitwiseLeftShift_sa', u'BitwiseNot_sa', u'BitwiseOr_sa', u'BitwiseRightShift_sa', u'BitwiseXOr_sa', u'Divide_sa', u'Exp_sa', u'Exp10_sa', u'Exp2_sa', u'Float_sa', u'Int_sa', u'Ln_sa', u'Log10_sa', u'Log2_sa', u'BooleanAnd_sa', u'BooleanNot_sa', u'BooleanOr_sa', u'BooleanXOr_sa', u'CombinatorialAnd_sa', u'CombinatorialOr_sa', u'CombinatorialXOr_sa', u'EqualTo_sa', u'GreaterThan_sa', u'GreaterThanEqual_sa', u'IsNull_sa', u'LessThan_sa', u'LessThanEqual_sa', u'NotEqual_sa', u'Test_sa', u'Minus_sa', u'Mod_sa', u'Negate_sa', u'Plus_sa', u'Power_sa', u'RoundDown_sa', u'RoundUp_sa', u'Square_sa', u'SquareRoot_sa', u'Times_sa', u'ACos_sa', u'ACosH_sa', u'ASin_sa', u'ASinH_sa', u'ATan_sa', u'ATan2_sa', u'ATanH_sa', u'Cos_sa', u'CosH_sa', u'Sin_sa', u'SinH_sa', u'Tan_sa', u'TanH_sa', u'BandCollectionStats_sa', u'ClassProbability_sa', u'CreateSignatures_sa', u'Dendrogram_sa', u'EditSignatures_sa', u'IsoCluster_sa', u'MLClassify_sa', u'PrincipalComponents_sa', u'BlockStatistics_sa', u'Filter_sa', u'FocalFlow_sa', u'FocalStatistics_sa', u'LineStatistics_sa', u'PointStatistics_sa', u'WeightedOverlay_sa', u'CreateConstantRaster_sa', u'CreateNormalRaster_sa', u'CreateRandomRaster_sa', u'Lookup_sa', u'ReclassByASCIIFile_sa', u'ReclassByTable_sa', u'Reclassify_sa', u'Slice_sa', u'Aspect_sa', u'Contour_sa', u'ContourList_sa', u'HillShade_sa', u'ObserverPoints_sa', u'Slope_sa', u'Viewshed_sa', u'TabulateArea_sa', u'ZonalFill_sa', u'ZonalGeometry_sa', u'ZonalGeometryAsTable_sa', u'ZonalStatistics_sa', u'ZonalStatisticsAsTable_sa', u'AreaSolarRadiation_sa', u'PointsSolarRadiation_sa', u'SolarRadiationGraphics_sa', u'WeightedSum_sa', u'Diff_sa', u'InList_sa', u'Over_sa', u'ContourWithBarriers_sa', u'FuzzyMembership_sa', u'FuzzyOverlay_sa', u'IsoClusterUnsupervisedClassification_sa', u'ZonalHistogram_sa', u'CutFill_sa', u'ExtractByMask_sa', u'RasterCalculator_sa', u'SplineWithBarriers_sa', u'Curvature_sa', u'ExtractMultiValuesToPoints_sa', u'Visibility_sa', u'RescaleByFunction_sa', u'Viewshed2_sa', u'ClassifyRaster_sa', u'ComputeSegmentAttributes_sa', u'SegmentMeanShift_sa', u'TrainMaximumLikelihoodClassifier_sa', u'TrainIsoClusterClassifier_sa', u'TrainSupportVectorMachineClassifier_sa', u'ComputeConfusionMatrix_sa', u'CreateAccuracyAssessmentPoints_sa', u'TrainRandomTreesClassifier_sa', u'UpdateAccuracyAssessmentPoints_sa', u'CostConnectivity_sa', u'LocateRegions_sa', u'RemoveRasterSegmentTilingArtifacts_sa', u'HighLowClustering_stats', u'SpatialAutocorrelation_stats', u'ClustersOutliers_stats', u'HotSpots_stats', u'CentralFeature_stats', u'DirectionalMean_stats', u'ExportXYv_stats', u'MultiDistanceSpatialClustering_stats', u'CalculateDistanceBand_stats', u'AverageNearestNeighbor_stats', u'DirectionalDistribution_stats', u'MeanCenter_stats', u'StandardDistance_stats', u'CollectEvents_stats', u'GeographicallyWeightedRegression_stats', u'OrdinaryLeastSquares_stats', u'GenerateSpatialWeightsMatrix_stats', u'ConvertSpatialWeightsMatrixtoTable_stats', u'MedianCenter_stats', u'GroupingAnalysis_stats', u'ExploratoryRegression_stats', u'IncrementalSpatialAutocorrelation_stats', u'OptimizedHotSpotAnalysis_stats', u'SimilaritySearch_stats', u'GenerateNetworkSpatialWeights_stats', u'OptimizedOutlierAnalysis_stats', u'ConcatenateDateAndTimeFields_ta', u'MakeTrackingLayer_ta', u'TrackIntervalsToFeature_ta', u'TrackIntervalsToLine_ta', u'CreateSpaceTimeCube_stpm', u'EmergingHotSpotAnalysis_stpm', u'LocalOutlierAnalysis_stpm', u'VisualizeSpaceTimeCube2D_stpm', u'VisualizeSpaceTimeCube3D_stpm']

We can get the names and other details (such as func_name, func_doc, func_defaults, func_globals, func_dict) of those commands and possible save to CSV table for firendly useage.
for tool in toolbox_list:
	print ( eval("arcpy.{0}.func_name".format(tool)) )
	print ( eval("arcpy.{0}.func_doc".format(tool)) )
	print ( eval("arcpy.{0}.func_defaults".format(tool)) )
	print ( eval("arcpy.{0}.func_globals".format(tool)) )
	print ( eval("arcpy.{0}.func_dict".format(tool)) )
        # Note that 'eval' function here is used the evalute the python expression which comes in the dynamic string
	print('-'*10)



QGIS:
# List all geoprocessing command, as at June 2022 there are 990 commands on my machine
geopro_commands = QgsApplication.processingRegistry().algorithms()

# Print out the provider, name and display name
for alg in geopro_commands:
    print("{}:{} --> {}".format(alg.provider().name(), alg.name(), alg.displayName()))


# Lets create a table that contains organized details of all the processing algorithms
provider_list = [ alg.provider().name() for alg in geopro_commands ]
name_list = [ alg.name() for alg in geopro_commands ]
displayName_list = [ alg.displayName() for alg in geopro_commands ]
group_list = [ alg.group() for alg in geopro_commands ]
helpurl_list = [ alg.helpUrl() for alg in geopro_commands ]
# See more at: https://qgis.org/pyqgis/3.0/core/Processing/QgsProcessingAlgorithm.html

import pandas as pd

df = pd.DataFrame(provider_list, columns=['Provider'])

df['Name'] = name_list
df['Display Name'] = displayName_list
df['Group'] = group_list
df['Help URL'] = helpurl_list

# Save to CSV file
df.to_csv('Processing_Algorithms.csv', index=False)



Other useful attributes of each of the processing algorithm command you may care to know are the help string and the expect parameters as seen below:-
helpstr_list = [ alg.shortHelpString() for alg in geopro_commands ]
parameter_count_list = [ len(alg.parameterDefinitions()) for alg in geopro_commands ]
parameter_name_list = [ [ n.name() for n in alg.parameterDefinitions() ] for alg in geopro_commands ]

Now that we have seen list of geoprocessing commands available on both API, let do some geoprocessing task.

12) Buffer Point features

ArcGIS: 
thId()




QGIS:
thId()



13) The documentation

ArcGIS: 
thId()




QGIS:
thId()




14) The documentation

ArcGIS: 
thId()




QGIS:
thId()




.









No comments:

Post a Comment