ArcPy开发教程1-面向ArcGIS的Python语言基础

ArcPy开发教程1-面向ArcGIS的Python语言基础

联系方式:向日葵,135-4855-4328xiexiaokui#qq.com

第一节课 时间2019年2月26日 上午第一节

讲解:ArcPy概念

操作:

IDLE交互式编程

IDLE脚本编程

ArcGIS交互式编程

背景知识:工作空间,Work space:

arcgis当前工作路径,包括文件夹,个人地理数据库,文件地理数据库,即数据保存的位置

要素类,Feature class

某一个空间数据,例如道路,河流,居民点,行政边界(shp是典型要素类)

案例:查找某一个workspace里的featureclass

 

IDLE运行脚本:ArcCode/ch1/ ListFeatureClasses.py

 

import arcpy

arcpy.env.workspace = "d:/book/ArcpyBook/data/CityOfSanAntonio.gdb"

fcList = arcpy.ListFeatureClasses()

for fc in fcList:

print(fc)

 

arcgis python运行上述代码

 

作业:

1. 手写代码,并在IDLE中运行:

2. 在ArcGIS Python窗口中运行上个练习的代码

3. 手写代码,并在IDLE中运行:计算r=100圆的面积

4. 在arcgis python窗口中运行上述代码

 

5.在IDLE打开并运行:查找某一个workspace里的featureclass

参考脚本文件:ArcpyCode/Ch1/ListFeatureClasses.py

6. 在arcgis python窗口复制并运行上个练习

 

联系方式:向日葵,135-4855-4328xiexiaokui#qq.com

 

转载于:https://www.cnblogs.com/xiexiaokui/p/10436538.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
12: Arc GIS API for Pythonb'Chapter 12: Arc GIS API for Python'b'Introduction to the Arc GIS API for Python'b'Creating a Jupyter Notebook'b'Starting the Arc GIS API for Python'b'Adding an item to a web map'b'Importing a CSV with pandas'b'Summary'6: The arcpy.mapping Moduleb'Chapter 6: The arcpy.mapping Module'b'Using Arc Py with map documents \xc3\x82\xc2\xa0'b'Summary'7: Advanced Analysis Topicsb'Chapter 7: Advanced Analysis Topics'b'Using Network Analyst'b'The Network Analyst module'b'Accessing the Spatial Analyst extension'b'Summary'8: Introduction to Arc GIS Onlineb'Chapter 8: Introduction to Arc GIS Online'b'Arc GIS Online'b'Summary'9: Arc Py and Arc GIS Onlineb'Chapter 9: Arc Py and Arc GIS Online'b'Arc GIS Online REST services'b'URL parameters'b'Feature sets'b'Arc GIS Online tokens'b'Putting it all together'b'Summary'10: Arc REST Python Packageb'Chapter 10: Arc REST Python Package'b'Introducing the Arc REST module'b'Arc GIS Online administration'b'Querying hosted feature services'b'Summary'11: Arc Py and Arc GIS Prob'Chapter 11: Arc Py and Arc GIS Pro'b'Introducing\xc3\x82\xc2\xa0Arc GIS Pro'b'Installing and configuring Arc GIS Pro'b'The Arc GIS Pro Python window'b'Python 2.7 and Python 3.5 with Arc Pro'b'Conda and Arc GIS Pro'b'Reviewing Conda basics'b'Summary'1: Introduction to Python for Arc GISb'Chapter 1: Introduction to Python for Arc GIS'b'Python as a programming language'b'The basics of Python programming'b'Data types'b'Other important concepts'b'Important Python modules'b'How Python executes a script'b'Integrated Development Environments (IDEs)'b'Python folder structure'b'Summary'2: Creating the First Python Scriptb'Chapter 2: Creating the First Python Script'b'Prerequisites'b'Model Builder'b'Exporting the model and adjusting the script'b'String manipulation'b'The Arc Py tools'b'The final script'b'Summary'3: Arc Py Cursors - Search, Insert, and Updateb'Chapter 3: Arc Py Cursors - Search, Insert, and Update'b'Pythonfunctions\xc3\x82\xc2\xa0\xc3\xa2\xc
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值