SlideShare a Scribd company logo
1 of 10
Geoprocessing  GIS Ð ×' Ñ  Tools Modeling   Python / "  ü &Ó 5'  /Ó /Ó 3     /" ArcGIS 10  ü  / By diligentpig $UF*,6  3KRQ ' GeoVisualization Geoprocessing Ð  > ×  9.0  ,' ArcGIS  þ  5' ü  Python  Ð ñ Ü  Python ü ArcPy GeoData   '
By diligentpig Python  ArcGIS Ñ 9.2  ,'  arcgisscripting module   9.3  ,'  Python List ArcGIS 10  /  ArcPy site-package arcgisscripting module   Ñð ArcPy /"  ÞÐ > % > ' / Python %# %#=# %# > ArcPy   800+ Ü/   Geoprocessing Tools     , Python IDE  Þ ! cursors   geometry   /  classes % NumPy /  NumPyArrayToRaster   RasterToNumPyArray   Ý  DUFJLVVFULSWLQJ Ñ DUFS# 9.3 import arcgisscripting gp = arcgisscripting.create(9.3) array1 = gp.createobject("array") # 10.0 import arcpy array2 = arcpy.Array() Python Window
By diligentpig ArcGIS 10  Python Window  ' Python  Python ,'  command line window   Þ+ /  ArcPy Þ Command  ø%'" command  line Python  Window C  &  Python & ' > Python Window   ArcPy Þ  ü  tools environments   Ü/ Python 3ü ! 6 3  Python Window Þ IDE   PythonWin ! ü Interactive Window   >     !   Python     " Geoprocessing tools   > Python  &  Python Window  &  Python Ð  Python Window Ñ&  Python IDE
By diligentpig & /  Ù  ÑE >  ö  Ý ÐÑ  ArcPy Python Window ' à  Ý  / *HRSURFHVVLQJ WRROV >>>  import  arcpy >>> arcpy.env.workspace = r'C:serssrichinaesktopemo_arcgis10pythonataS A_Data.gdb' >>> arcpy.Buffer_analysis(&quot;Cities&quot;,&quot;Cities_buffer&quot;,&quot;5 Kilometer&quot;) <Result 'C:UsersesrichinaDesktopdemo_arcgis10pythondat aUSA_Data.gdbCities_buffer'> >>> E /  Buffer Python Window  >>> / 5  3 7LS  $UF3!
By diligentpig 7LS  > ArcGIS 10 Python Window  &  r'C:serssrichinaesktopemo_arcgis10pythonata SA_Data.gdb' Catalog FeatureClass Python  Window  /  7LS  % &quot;  C  & fcs  &  Python  List   u unicode   Ý  $XWRPDWLRQ
By diligentpig >>>  import  arcpy >>> arcpy.env.workspace = r'C:serssrichinaesktopemo_arcgis10pythonataS A_Data.gdb' >>>  for  feature  in arcpy.SearchCursor(&quot;States&quot;,&quot;STATE_NAME = 'California'&quot;): ... arcpy.Clip_analysis(&quot;States&quot;,feature.Shape,&quot;California&quot;) ... >>> 'Ý  /  SearchCursor ×  States California Feature  + States Clip × / California 7LS    ø&quot; ArcToolbox  Clip Ó  % Ð6& /  Python  5' &quot;Ù Clip %   >>> fcs = arcpy.ListFeatureClasses() >>> fcs.remove(&quot;California&quot;) >>>  for  fc  in  fcs: ... arcpy.Clip_analysis(fc,&quot;California&quot;,fc+&quot;_clip&quot;) ... >>> Ñ'  Ð  for / / California FeatureClass   &quot; 7LS  3KRQ :LQGRZ  / 3KRQ ü /  remove  ø% California D  fcs  &  Python  List   7LS  %DFNJURXQG *HRSURFHVVLQJ
By diligentpig ArcGIS  10  Background  Geoprocessing Geoprocessing ArcGIS Ü/ CPU Ð  D &/  ArcGIS 3  ' Geoprocessing 'Ý  Þ+ ArcMap   Background Geoprocessing ' > + 'Ý  Ü/ for '  ArcPy  Modules D ' Ñø%  ArcPy  3  /' Python 5' ü  arcpy.mapping   Mapping module   .mxd   .lyr   /' &quot;  PDF  arcpy.sa   Spatial Analyst module  /' /  ArcGIS 10 ArcPy.Raster ë % arcpy.ga   Geostatistical Analyst module  /' Ô  modules ' &quot;' à  ÑE× Mapping module Ý Ý  / 0DSSLQJ 0RGXOH ü ã% >>>  import  arcpy, arcpy.mapping >>> mxd = arcpy.mapping.MapDocument(&quot;current&quot;) >>> df = arcpy.mapping.ListDataFrames(mxd)[0] >>> updatelyr = arcpy.mapping.ListLayers(mxd)[0] >>> sourcelyr = arcpy.mapping.Layer(r'C:eli.lyr') >>> arcpy.mapping.UpdateLayer(df,updatelyr,sourcelyr,True)
By diligentpig >>> /  mapping  module  MapDocument mxd /  Ü/  current C  ArcMap  &quot; /  ListDataFrames  ø%  List mxd  DataFrame /Ó mxd  Ð  DataFrame  &quot; /  Ð DataFrame   updatelyr  & Ð  /  &Ð sourcelyr â  1 3 UpdateLayer  ø% lyr ã%  True % ã% &&quot; D % & '  &quot; Ñ >>> arcpy.RefreshContents() >>> arcpy.RefreshGraphics() >>> &quot;
By diligentpig 7LS  arcpy.RefreshContents()  /  '  ArcMap TOC MapView  &quot;  LayoutView  arcpy.RefreshGraphics() /'  Tip8  â   /  MapDocument save/saveACopy 'â mxd  &quot;  ã%  Ý  &quot;
By diligentpig 'Ý  C:XDs % mxd Python &quot; &quot;  Ð  PDF mxd  Ð 7LS  3KRQ :LQGRZ 6DYH /RDG â .py Python  Window  > C  Load .py &quot;&quot; Python Window    save .py   + â Ü/  ArcGIS 10 Python  5'  Geoprocessor ArcPy   arcgisscripting  % Ñ  Python ü Python Module /  % # 5' >  Ñ Python  5' Ñ  &quot;Ù /' ArcGIS 10  ' Python

More Related Content

Viewers also liked

Balanced scorecard final
Balanced scorecard finalBalanced scorecard final
Balanced scorecard finaljrjonline
 
Ficha 488956 497405 497426_administracion del soporte tecnico (1)
Ficha 488956 497405 497426_administracion del soporte tecnico (1)Ficha 488956 497405 497426_administracion del soporte tecnico (1)
Ficha 488956 497405 497426_administracion del soporte tecnico (1)kvnprz07
 
Metodos integracion
Metodos integracionMetodos integracion
Metodos integracionL Sánchez R
 
E trends & Future Technologies
E trends & Future TechnologiesE trends & Future Technologies
E trends & Future TechnologiesTim Bruysten
 
Bus modelsandvaluegeneration
Bus modelsandvaluegenerationBus modelsandvaluegeneration
Bus modelsandvaluegenerationDarius Dunlap
 
Onopia - Business Model Innovation et Business Model Canvas
Onopia - Business Model Innovation et Business Model CanvasOnopia - Business Model Innovation et Business Model Canvas
Onopia - Business Model Innovation et Business Model CanvasOnopia
 
Aprovechamiento rso uencolombia
Aprovechamiento rso uencolombiaAprovechamiento rso uencolombia
Aprovechamiento rso uencolombiaRaychi Rodriguez
 
Monografía de Análisis de Estados Financieros.
Monografía de Análisis de Estados Financieros.Monografía de Análisis de Estados Financieros.
Monografía de Análisis de Estados Financieros.Dianet Rocio Segura Diaz
 
M/Powerbook 'Jong talent; nieuw realisme op de arbeidsmarkt'
M/Powerbook 'Jong talent; nieuw realisme op de arbeidsmarkt'M/Powerbook 'Jong talent; nieuw realisme op de arbeidsmarkt'
M/Powerbook 'Jong talent; nieuw realisme op de arbeidsmarkt'ManpowerGroup Nederland
 
http://ainsamadi.blogspot.com/2013/03/panduan-pelaksanaan-dan-modul-program m...
http://ainsamadi.blogspot.com/2013/03/panduan-pelaksanaan-dan-modul-program m...http://ainsamadi.blogspot.com/2013/03/panduan-pelaksanaan-dan-modul-program m...
http://ainsamadi.blogspot.com/2013/03/panduan-pelaksanaan-dan-modul-program m...Noor Aini Samsusah
 
Guia de aprendizaje diagnostico
Guia de aprendizaje  diagnosticoGuia de aprendizaje  diagnostico
Guia de aprendizaje diagnosticosamy meza alvarez
 
Guia fund. teoricos Elaboracion Guias Aprendizaje
Guia fund. teoricos Elaboracion Guias AprendizajeGuia fund. teoricos Elaboracion Guias Aprendizaje
Guia fund. teoricos Elaboracion Guias AprendizajeEduardo Cuervo
 

Viewers also liked (20)

redaccion universitaria
redaccion universitariaredaccion universitaria
redaccion universitaria
 
Balanced scorecard final
Balanced scorecard finalBalanced scorecard final
Balanced scorecard final
 
Ficha 488956 497405 497426_administracion del soporte tecnico (1)
Ficha 488956 497405 497426_administracion del soporte tecnico (1)Ficha 488956 497405 497426_administracion del soporte tecnico (1)
Ficha 488956 497405 497426_administracion del soporte tecnico (1)
 
Capitulo1
Capitulo1Capitulo1
Capitulo1
 
Antihipertensivos
AntihipertensivosAntihipertensivos
Antihipertensivos
 
Metodos integracion
Metodos integracionMetodos integracion
Metodos integracion
 
E trends & Future Technologies
E trends & Future TechnologiesE trends & Future Technologies
E trends & Future Technologies
 
Bus modelsandvaluegeneration
Bus modelsandvaluegenerationBus modelsandvaluegeneration
Bus modelsandvaluegeneration
 
Onopia - Business Model Innovation et Business Model Canvas
Onopia - Business Model Innovation et Business Model CanvasOnopia - Business Model Innovation et Business Model Canvas
Onopia - Business Model Innovation et Business Model Canvas
 
Cadena Custodia
Cadena CustodiaCadena Custodia
Cadena Custodia
 
Aprovechamiento rso uencolombia
Aprovechamiento rso uencolombiaAprovechamiento rso uencolombia
Aprovechamiento rso uencolombia
 
Monografía de Análisis de Estados Financieros.
Monografía de Análisis de Estados Financieros.Monografía de Análisis de Estados Financieros.
Monografía de Análisis de Estados Financieros.
 
Sist. gestión de calidad
Sist. gestión de calidadSist. gestión de calidad
Sist. gestión de calidad
 
M/Powerbook 'Jong talent; nieuw realisme op de arbeidsmarkt'
M/Powerbook 'Jong talent; nieuw realisme op de arbeidsmarkt'M/Powerbook 'Jong talent; nieuw realisme op de arbeidsmarkt'
M/Powerbook 'Jong talent; nieuw realisme op de arbeidsmarkt'
 
Proyecto formativo
Proyecto formativoProyecto formativo
Proyecto formativo
 
http://ainsamadi.blogspot.com/2013/03/panduan-pelaksanaan-dan-modul-program m...
http://ainsamadi.blogspot.com/2013/03/panduan-pelaksanaan-dan-modul-program m...http://ainsamadi.blogspot.com/2013/03/panduan-pelaksanaan-dan-modul-program m...
http://ainsamadi.blogspot.com/2013/03/panduan-pelaksanaan-dan-modul-program m...
 
Guia 01
Guia 01Guia 01
Guia 01
 
Guia de aprendizaje diagnostico
Guia de aprendizaje  diagnosticoGuia de aprendizaje  diagnostico
Guia de aprendizaje diagnostico
 
Guia fund. teoricos
Guia fund. teoricosGuia fund. teoricos
Guia fund. teoricos
 
Guia fund. teoricos Elaboracion Guias Aprendizaje
Guia fund. teoricos Elaboracion Guias AprendizajeGuia fund. teoricos Elaboracion Guias Aprendizaje
Guia fund. teoricos Elaboracion Guias Aprendizaje
 

Similar to Arcgis 10中的python

Python And GIS - Beyond Modelbuilder And Pythonwin
Python And GIS - Beyond Modelbuilder And PythonwinPython And GIS - Beyond Modelbuilder And Pythonwin
Python And GIS - Beyond Modelbuilder And PythonwinChad Cooper
 
Beholding the giant pyramid of application development; why Ajax applications...
Beholding the giant pyramid of application development; why Ajax applications...Beholding the giant pyramid of application development; why Ajax applications...
Beholding the giant pyramid of application development; why Ajax applications...Javeline B.V.
 
Web APIs & Google APIs
Web APIs & Google APIsWeb APIs & Google APIs
Web APIs & Google APIsPamela Fox
 
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]Chris Toohey
 
GTAC: AtomPub, testing your server implementation
GTAC: AtomPub, testing your server implementationGTAC: AtomPub, testing your server implementation
GTAC: AtomPub, testing your server implementationDavid Calavera
 
Building Complex GUI Apps The Right Way. With Ample SDK - SWDC2010
Building Complex GUI Apps The Right Way. With Ample SDK - SWDC2010Building Complex GUI Apps The Right Way. With Ample SDK - SWDC2010
Building Complex GUI Apps The Right Way. With Ample SDK - SWDC2010Sergey Ilinsky
 
Schenker - DSL for quickly creating web applications in Perl
Schenker - DSL for quickly creating web applications in PerlSchenker - DSL for quickly creating web applications in Perl
Schenker - DSL for quickly creating web applications in PerlJiro Nishiguchi
 
Yahoo! Mail antispam - Bay area Hadoop user group
Yahoo! Mail antispam - Bay area Hadoop user groupYahoo! Mail antispam - Bay area Hadoop user group
Yahoo! Mail antispam - Bay area Hadoop user groupHadoop User Group
 
Introduction To Lamp
Introduction To LampIntroduction To Lamp
Introduction To LampAmzad Hossain
 
Tilting Google Maps and MissileLauncher
Tilting Google Maps and MissileLauncherTilting Google Maps and MissileLauncher
Tilting Google Maps and MissileLauncherTatsuhiko Miyagawa
 
Illuminated Hacks -- Where 2.0 101 Tutorial
Illuminated Hacks -- Where 2.0 101 TutorialIlluminated Hacks -- Where 2.0 101 Tutorial
Illuminated Hacks -- Where 2.0 101 Tutorialmikel_maron
 
FRDCSA Temporal Planning and Inferencing for Task Management through the Verb...
FRDCSA Temporal Planning and Inferencing for Task Management through the Verb...FRDCSA Temporal Planning and Inferencing for Task Management through the Verb...
FRDCSA Temporal Planning and Inferencing for Task Management through the Verb...aindilis
 
GTUG Android iglaset Presentation 1 Oct
GTUG Android iglaset Presentation 1 OctGTUG Android iglaset Presentation 1 Oct
GTUG Android iglaset Presentation 1 OctJohan Nilsson
 
Rendering OpenStreetMap Data using Mapnik
Rendering OpenStreetMap Data using MapnikRendering OpenStreetMap Data using Mapnik
Rendering OpenStreetMap Data using MapnikGraham Jones
 
Mapnik Sotm 2007
Mapnik Sotm 2007Mapnik Sotm 2007
Mapnik Sotm 2007artemp
 

Similar to Arcgis 10中的python (20)

Python And GIS - Beyond Modelbuilder And Pythonwin
Python And GIS - Beyond Modelbuilder And PythonwinPython And GIS - Beyond Modelbuilder And Pythonwin
Python And GIS - Beyond Modelbuilder And Pythonwin
 
Beholding the giant pyramid of application development; why Ajax applications...
Beholding the giant pyramid of application development; why Ajax applications...Beholding the giant pyramid of application development; why Ajax applications...
Beholding the giant pyramid of application development; why Ajax applications...
 
Web APIs & Google APIs
Web APIs & Google APIsWeb APIs & Google APIs
Web APIs & Google APIs
 
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
 
GTAC: AtomPub, testing your server implementation
GTAC: AtomPub, testing your server implementationGTAC: AtomPub, testing your server implementation
GTAC: AtomPub, testing your server implementation
 
Building Complex GUI Apps The Right Way. With Ample SDK - SWDC2010
Building Complex GUI Apps The Right Way. With Ample SDK - SWDC2010Building Complex GUI Apps The Right Way. With Ample SDK - SWDC2010
Building Complex GUI Apps The Right Way. With Ample SDK - SWDC2010
 
Schenker - DSL for quickly creating web applications in Perl
Schenker - DSL for quickly creating web applications in PerlSchenker - DSL for quickly creating web applications in Perl
Schenker - DSL for quickly creating web applications in Perl
 
Yahoo! Mail antispam - Bay area Hadoop user group
Yahoo! Mail antispam - Bay area Hadoop user groupYahoo! Mail antispam - Bay area Hadoop user group
Yahoo! Mail antispam - Bay area Hadoop user group
 
Introduction To Lamp
Introduction To LampIntroduction To Lamp
Introduction To Lamp
 
OpenStreetMap (en Zzzinc)
OpenStreetMap (en Zzzinc)OpenStreetMap (en Zzzinc)
OpenStreetMap (en Zzzinc)
 
Tilting Google Maps and MissileLauncher
Tilting Google Maps and MissileLauncherTilting Google Maps and MissileLauncher
Tilting Google Maps and MissileLauncher
 
Illuminated Hacks -- Where 2.0 101 Tutorial
Illuminated Hacks -- Where 2.0 101 TutorialIlluminated Hacks -- Where 2.0 101 Tutorial
Illuminated Hacks -- Where 2.0 101 Tutorial
 
FRDCSA Temporal Planning and Inferencing for Task Management through the Verb...
FRDCSA Temporal Planning and Inferencing for Task Management through the Verb...FRDCSA Temporal Planning and Inferencing for Task Management through the Verb...
FRDCSA Temporal Planning and Inferencing for Task Management through the Verb...
 
GTUG Android iglaset Presentation 1 Oct
GTUG Android iglaset Presentation 1 OctGTUG Android iglaset Presentation 1 Oct
GTUG Android iglaset Presentation 1 Oct
 
Rendering OpenStreetMap Data using Mapnik
Rendering OpenStreetMap Data using MapnikRendering OpenStreetMap Data using Mapnik
Rendering OpenStreetMap Data using Mapnik
 
Mapnik Sotm 2007
Mapnik Sotm 2007Mapnik Sotm 2007
Mapnik Sotm 2007
 
Grails and Dojo
Grails and DojoGrails and Dojo
Grails and Dojo
 
02 create first-map
02 create first-map02 create first-map
02 create first-map
 
Writing Pluggable Software
Writing Pluggable SoftwareWriting Pluggable Software
Writing Pluggable Software
 
The State of GeoServer
The State of GeoServerThe State of GeoServer
The State of GeoServer
 

Recently uploaded

MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 

Recently uploaded (20)

Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 

Arcgis 10中的python

  • 1. Geoprocessing GIS Ð ×' Ñ Tools Modeling Python / &quot; ü &Ó 5' /Ó /Ó 3 /&quot; ArcGIS 10 ü / By diligentpig $UF*,6 3KRQ ' GeoVisualization Geoprocessing Ð > × 9.0 ,' ArcGIS þ 5' ü Python Ð ñ Ü Python ü ArcPy GeoData '
  • 2. By diligentpig Python ArcGIS Ñ 9.2 ,' arcgisscripting module 9.3 ,' Python List ArcGIS 10 / ArcPy site-package arcgisscripting module Ñð ArcPy /&quot; ÞÐ > % > ' / Python %# %#=# %# > ArcPy 800+ Ü/ Geoprocessing Tools , Python IDE Þ ! cursors geometry / classes % NumPy / NumPyArrayToRaster RasterToNumPyArray Ý DUFJLVVFULSWLQJ Ñ DUFS# 9.3 import arcgisscripting gp = arcgisscripting.create(9.3) array1 = gp.createobject(&quot;array&quot;) # 10.0 import arcpy array2 = arcpy.Array() Python Window
  • 3. By diligentpig ArcGIS 10 Python Window ' Python Python ,' command line window Þ+ / ArcPy Þ Command ø%'&quot; command line Python Window C & Python & ' > Python Window ArcPy Þ ü tools environments Ü/ Python 3ü ! 6 3 Python Window Þ IDE PythonWin ! ü Interactive Window > ! Python &quot; Geoprocessing tools > Python & Python Window & Python Ð Python Window Ñ& Python IDE
  • 4. By diligentpig & / Ù ÑE > ö Ý ÐÑ ArcPy Python Window ' à Ý / *HRSURFHVVLQJ WRROV >>> import arcpy >>> arcpy.env.workspace = r'C:serssrichinaesktopemo_arcgis10pythonataS A_Data.gdb' >>> arcpy.Buffer_analysis(&quot;Cities&quot;,&quot;Cities_buffer&quot;,&quot;5 Kilometer&quot;) <Result 'C:UsersesrichinaDesktopdemo_arcgis10pythondat aUSA_Data.gdbCities_buffer'> >>> E / Buffer Python Window >>> / 5 3 7LS $UF3!
  • 5. By diligentpig 7LS > ArcGIS 10 Python Window & r'C:serssrichinaesktopemo_arcgis10pythonata SA_Data.gdb' Catalog FeatureClass Python Window / 7LS % &quot; C & fcs & Python List u unicode Ý $XWRPDWLRQ
  • 6. By diligentpig >>> import arcpy >>> arcpy.env.workspace = r'C:serssrichinaesktopemo_arcgis10pythonataS A_Data.gdb' >>> for feature in arcpy.SearchCursor(&quot;States&quot;,&quot;STATE_NAME = 'California'&quot;): ... arcpy.Clip_analysis(&quot;States&quot;,feature.Shape,&quot;California&quot;) ... >>> 'Ý / SearchCursor × States California Feature + States Clip × / California 7LS ø&quot; ArcToolbox Clip Ó % Ð6& / Python 5' &quot;Ù Clip % >>> fcs = arcpy.ListFeatureClasses() >>> fcs.remove(&quot;California&quot;) >>> for fc in fcs: ... arcpy.Clip_analysis(fc,&quot;California&quot;,fc+&quot;_clip&quot;) ... >>> Ñ' Ð for / / California FeatureClass &quot; 7LS 3KRQ :LQGRZ / 3KRQ ü / remove ø% California D fcs & Python List 7LS %DFNJURXQG *HRSURFHVVLQJ
  • 7. By diligentpig ArcGIS 10 Background Geoprocessing Geoprocessing ArcGIS Ü/ CPU Ð D &/ ArcGIS 3 ' Geoprocessing 'Ý Þ+ ArcMap Background Geoprocessing ' > + 'Ý Ü/ for ' ArcPy Modules D ' Ñø% ArcPy 3 /' Python 5' ü arcpy.mapping Mapping module .mxd .lyr /' &quot; PDF arcpy.sa Spatial Analyst module /' / ArcGIS 10 ArcPy.Raster ë % arcpy.ga Geostatistical Analyst module /' Ô modules ' &quot;' à ÑE× Mapping module Ý Ý / 0DSSLQJ 0RGXOH ü ã% >>> import arcpy, arcpy.mapping >>> mxd = arcpy.mapping.MapDocument(&quot;current&quot;) >>> df = arcpy.mapping.ListDataFrames(mxd)[0] >>> updatelyr = arcpy.mapping.ListLayers(mxd)[0] >>> sourcelyr = arcpy.mapping.Layer(r'C:eli.lyr') >>> arcpy.mapping.UpdateLayer(df,updatelyr,sourcelyr,True)
  • 8. By diligentpig >>> / mapping module MapDocument mxd / Ü/ current C ArcMap &quot; / ListDataFrames ø% List mxd DataFrame /Ó mxd Ð DataFrame &quot; / Ð DataFrame updatelyr & Ð / &Ð sourcelyr â 1 3 UpdateLayer ø% lyr ã% True % ã% &&quot; D % & ' &quot; Ñ >>> arcpy.RefreshContents() >>> arcpy.RefreshGraphics() >>> &quot;
  • 9. By diligentpig 7LS arcpy.RefreshContents() / ' ArcMap TOC MapView &quot; LayoutView arcpy.RefreshGraphics() /' Tip8 â / MapDocument save/saveACopy 'â mxd &quot; ã% Ý &quot;
  • 10. By diligentpig 'Ý C:XDs % mxd Python &quot; &quot; Ð PDF mxd Ð 7LS 3KRQ :LQGRZ 6DYH /RDG â .py Python Window > C Load .py &quot;&quot; Python Window save .py + â Ü/ ArcGIS 10 Python 5' Geoprocessor ArcPy arcgisscripting % Ñ Python ü Python Module / % # 5' > Ñ Python 5' Ñ &quot;Ù /' ArcGIS 10 ' Python