ArcPy and ArcGIS Geospatial Analysis with Python
Perform GIS analysis faster by automating tasks, such as selecting data or buffering data, by accessing GIS tools using scriptingAccess the spatial data contained within shapefiles and geodatabases, for updates, analysis and even transformation between spatial reference systemsProduce map books ArcPy and ArcGIS-Geospatial Analysiswith PythonTable of contentsArcPy and ArcGIs-Geospatial Analysis with PythonCreditsabout the authorAbout the reviewerswww.packtpub.comSupport files, eBooks, discount offers, and moreWhy subscribe?Free access for packt account holdersPrefaceWhat this book coversWhat you need for this bookWho this book is forConventionsReader feedbackCustomer supportDownloading the example codeDownloading the color images of this bookErrataPiracyQuestions1Introduction to Python for ArcGISOverview of pythonPython as a programming languageInterpreted languageStandard(built-in libraryThe glue languageWrapper modulesThe basics of PythonImport statementsVariablesFor loopsIf/Elif/else statementsWhile statementsCommentsData typesStringsIntegersFloatsstspiEsoctonariesIterable data typesOther important conceptsIndentationFunctionsKeywordsNamespacesZero-based indexingImportant python Modules for gis analysisThe arcPy moduleThe Operating system(os) moduleThe Python System(sYS) moduleThe Xlrd and xlwt modulesCommonly used built-in functionsCommonly used standard library modulesSummary2. Configuring the Python EnvironmentWhat is aPython scriptHow Python executes a scriptWhat is the Python interpreter?Where is the Python interpreter located?Which Python interpreter should be used?How does the computer know where the interpreter is?Make python scripts executable when clicked onIntegrated Development Environments(IDEsIDLEPython WinAptana Studio 3IDE summaryPython folder structureWhere modules resideUsing Python's sys module to add a moduleThe sys. path append methodSummary3. Creating the First Python ScriptPrerequisitesModelbuilderCreating a model and exporting to PythonModeling the Select and Buffer toolsAdding the Intersect toolTallying the analysis resultsExporting the model and adjusting the scriptThe automatically generated scriptFile paths in PythonContinuing the script anal ysis: the arcPy toolsThe Intersect tool and string manipulationThe string manipulation method 1-string additionThe string manipulation method 2-string formatting #1The string manipulation method 3-string formatting #2Adjusting the ScriptAdding the Csv module to the scriptAccessing the data: USing a cursore final scriSummary4. Complex ArcPy Scripts and generalizing FunctionsPython functions-Avoid repeating codeTechnical definition of functionsA first functionFunctions with parametersUsing functions to replace repetitive codeMore generalization of the functionsSummary5. ArcPy Cursors- Search, Insert, and UpdateThe data access moduleAttribute field interactionsUpdate cursorsUpdating the shape fieldAdjusting a point locationDeleting a row using an Update CursorUsing an Insert CursorInserting a polyline geometrynserting a polygon geometrySummary6Working with ArcPy Geometry ObjectsArcPy geometry object classesArcPy Point objectsArcPy Array objectsArcPy Polyline objectsArcPy Polygon objectsPolygon obiect buffersOther Polygon object methodsArcPy geometry objectsArcPy Point Geometry objectsSummary7. Creating a Script ToolAdding dynamic parameters to a scriptDisplaying script messages using arcpy AddMessageAdding dynamic components to the scriptCreating a Script toollabelling and defining parametersAdding data typesAdding the Bus Stop feature class as a parameterAdding the Census Block feature class as a parameterAdding the Census Block field as a parameterAdding the output spreadsheet as a parameterAdding the spreadsheet field names as a parameterAdding the sol statement as a parameterAdding the bus stop fields as a parameterInspecting the final scriptRunning the Script ToolSummary8. Introduction to ArcPy mappingUsing ArcPy with map documentsInspecting and replacing layer sourcesFixing the broken linksFixing the links of individual layersExporting to PDF from an MXDAdjusting map document elementsAutomated map document adjustmentThe variablesThe map document object and the text elementsThe layer obiectsReplacing the data sourcesAdjusting layer visibilityGenerating a buffer from the bus stops feature classtersecting the bus stop buffer and census blocksPopulating the selected bus stop and buffer feature classesUpdating the text elementsExporting the adjusted map to PDeRunning the script in the python WindowSummary9. More ArcPy. Mapping TechniquesUsing arcpy. mapping to control Layer objectsLayer object methods and propertiesDefinition queriesControlling the data frame window extent and scaleAdding a Layer objectExporting the mapsSummary10. Advanced Geometry Object MethodsCreating a Python moduleThe init py fileAdding advanced analysis componentsAdvanced polygon obiect methodGenerating random points to represent populationUsing the functions within.scriptCreating an XLS using XLWTSummary11. Network Analyst and Spatial Analyst with ArcPyThe Network Analyst extensionUsing network analystCreating a Feature Datasetporting the datasetsCreating the Network DatasetAccessing the Network dataset using arcP.Breaking down the scriptThe Network Analyst moduleAccessing the Spatial Analyst ExtensionAdding elevation to the bus stopsUsing Map algebra to generate elevation in feetAdding in the bus stops and getting elevation valuesThe final resultSummary12. The End of the beginningGetting field information from feature classesAccessing the ListFields propertiesList comprehensionsCreating the field information functionsQuerying feature class informationGenerating File Geodatabases and feature classesGenerating a feature classSetting up the script tool parametersEnvironmental settingsResolution and tolerance settingsSummaryIndex
下载地址
用户评论
下载下来看一看
很好的国外学习资料
资源很好,就是空白页太多了,但内容好像是全的
不错,就是空白页太多了
这本书非常棒,淘宝上都要十几块钱才能买得到的电子版!
很好的 学习资源,可是有空白页
资源不错,谢谢了
很有用的英文书,学习中,谢谢!
不多的好东西啊,对我学习很有用,谢谢帮忙
很好的国外学习资料,正在学习,谢谢!