SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
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
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 

Kürzlich hochgeladen (20)

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
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
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . 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