首页 ArcGIS 10中的Python

ArcGIS 10中的Python

举报
开通vip

ArcGIS 10中的Python �������� Geoprocessing�� GIS ������ �� �� � Tools� Modeling��Python ���� ����Python l ������ !��" l #$ %&'(�)*+��,-.�/*+�0,12" l 345" l %67" l 89:;?�@� A ArcGIS 10B��@CD( EFGHB I�� By diligentpig �������� � � ���� GIS JKL2MNOP� GeoVisualization...

ArcGIS 10中的Python
�������� Geoprocessing�� GIS ������ �� �� � Tools� Modeling��Python ���� ����Python l ������ !��" l #$ %&'(�)*+��,-.�/*+�0,12" l 345" l %67" l 89:;<" l +=>?�@� A ArcGIS 10B��@CD( EFGHB I�� By diligentpig �������� � � ���� GIS JKL2MNOP� GeoVisualization �� ��":�� Geoprocessing QRSTUV��OP PythonWXY� 9.0Z2�TA ArcGISBP[��?T Python���\]^:_` 12WX�abc@def ������ !��" #$ %&'(�)*+��,-.�/*+�0,12" �@CD(ghi Python ^�b�j kl ArcPy � ����� GeoVisualization� GeoData� QRSTUV��OP BP[��?T ���\]^:_` 12WX�abc@def kl�2mno By diligentpig Python � ArcGIS ������� ��9.2 ���������� arcgisscripting module�9.3 ������� Python������ !"# List $%�&'�ArcGIS 10�( ArcPy site-package)*+,� arcgisscripting module� �)*-./0�123�ArcPy4�5(6789:;<=>?�@ABC( Python)DEFGHIJ�GHKL�GHMFNOEPQRSTU� VW ArcPy�X�NY l Z[\W 800+� Geoprocessing Tools� l ]^�_`a(bc� l �Xde� Python IDE�78fg�hijk� l cursors�geometry�lm classesn�o�� l NumPy�C(YNumPyArrayToRaster�RasterToNumPyArray� l pp � ������� ��� ���� ��� �� # 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����*q� Python WindowBrs]^� Pythontu�vU 5 Python�wxy�+,�z{ ��� command line window|}X~�N ( ArcPy78� Command€GB‚ command line�ƒ„�� Python Window ��…��]0�N†‡ˆ� Python ‰Š�‹�N†)Œ=Ž�,]0� VW Python Window�X�NY l Z[ ArcPy78�i�‘’ tools“ environments� l a(”•� Python]–i� l j—˜g�™štu�Python Window78 ”•›$ IDE| ! PythonWin � Interactive Window„fg�hijk“,QR)Di� l ;<œuX�ƒ� l j—“žŸ Python� l  ‡E‚ Geoprocessing tools� l ;<¡¢ Python��TU£� l pp ¤¥¦§�†�Python Window† Python�9¨wxy�©M Python Window ª«¬­®¯�}v°±†5�²,”•� Python IDE�³X¤¥)D´µ, By diligentpig TU� ¶�·†¤¥(¸v¹� .º»VW¼¨ ‡�½¾�tu9. ArcPy“ Python Window&¿ÀÁT UÂB�ÃC� � ������� ���� �������� � >>> import arcpy >>> arcpy.env.workspace = r'C:\Users\esrichina\Desktop\demo_arcgis10python\data\US A_Data.gdb' >>> arcpy.Buffer_analysis("Cities","Cities_buffer","5 Kilometer") >>> � Python Window��Ä>>>Å7ÆÇȺÉ�3Ê,�Ë�Ì( BufferTÍ� 5ÎϯPÐmD 5ÑÒ�ÓÔÕ� Ö×ØÙYÚÛÜÝÞ �hijk“)ß�bcà By diligentpig Ö×ØáY;<�âAã�à � ArcGIS 10� Python Window��âAã�äåæI0ç� !Y Ä r'C:\Users\esrichina\Desktop\demo_arcgis10python\data \USA_Data.gdb'Å è¨âA�é Catalogêt��ëì FeatureClassí� Python Window�Ë �mD� Ö×ØîYïÇð“Gï]0�äµñòóô õöà !3P�fcs† Python� List$%�äµ�…�”÷ø �ùúûüêýó þÆ�”]0|u,� unicode„� � ������������� By diligentpig >>> import arcpy >>> arcpy.env.workspace = r'C:\Users\esrichina\Desktop\demo_arcgis10python\data\US A_Data.gdb' >>> for feature in arcpy.SearchCursor("States","STATE_NAME = 'California'"): ... arcpy.Clip_analysis("States",feature.Shape,"California") ... >>> �½��zC( SearchCursor �ƒ� States PÐ����÷5 California � Feature�Èé”P�U5ã��ë States PÐ�‚ Clip U��=mDq� California­ �PÐ� Ö×Ø�Y� � Uà ¦§�!'��õ�ArcToolbox��ClipTÍ���¨�Gã�9�†PÐ� =C( Python ����¹i�� E²¸PÐ�¥��P�U5 Clip �G�‚ U� >>> fcs = arcpy.ListFeatureClasses() >>> fcs.remove("California") >>> for fc in fcs: ... arcpy.Clip_analysis(fc,"California",fc+"_clip") ... >>> �.B��9¨ for����(qmD� CaliforniaPÐ���TU� �� ”v FeatureClass�餥!�"R UQRS� Ö×Ø#Y��ÝÞ$%&'à(×')&*�Ì(ÝÞ$%&'�ià !3�fcs† Python� List$%äµ�( remove€Gé CaliforniaPÐ+,� -¸.��”•PÐ�/�� Ö×Ø0Y12Ü34Û&5')à67&ØÛ&Ü788×'4à By diligentpig ArcGIS 10 ���� Background Geoprocessing �9:�;?ë ArcGIS�‚ U�=a(­@ CPU�ÄA9¨� šÅ|ôB3†C ArcGISMF� 3¨�š„B)DD��‚� GeoprocessingTU� �½�c�‚PÐ�� X~�N U ArcMap�Background Geoprocessing& EÈóF�GHêý�Vk� ³��½�‹�a(^I� for��éJ¨KL¿°MB� ArcPy��Modules ,��N‘O�¬­$�€G�ArcPy�·qr� 3¨PQ(B`S Python ����iY arcpy.mappingYMapping module��R� UEPbc|.mxd„“PÐ|.lyr„ S��]0�(BQRSEPbc�ã�õöTU�T¢ PDFEPUn� arcpy.saYSpatial Analyst module�(B�‚� IJTU� !C( ArcGIS 10 �qr� ArcPy.Raster$�‚VWPX�,G=Yn� arcpy.gaYGeostatistical Analyst module�(B�‚EFZ[IJ� è\ modulesé5Á�TUÂB{]^«�ÃC� .º_`J¨Mapping module�½¾� � ������ ���������� � !"#$%&'� >>> import arcpy, arcpy.mapping >>> mxd = arcpy.mapping.MapDocument("current") >>> df = arcpy.mapping.ListDataFrames(mxd)[0] >>> updatelyr = arcpy.mapping.ListLayers(mxd)[0] >>> sourcelyr = arcpy.mapping.Layer(r'C:\heli.lyr') >>> arcpy.mapping.UpdateLayer(df,updatelyr,sourcelyr,True) By diligentpig >>> C( mapping module�� MapDocument$�N²åëÎÏ mxdba�� (�è�a(ÄcurrentÅb…ï��Ʋåë³{ ArcMap �cdõ��EPbc ��(�ListDataFrames€GóN List$%"#ÎÏ mxd� DataFrame�U¿� Cefg mxd�.«9¨ DataFrame�]N(h��R�²¸i9� DataFrame� updatelyr †ë³{EPbc��9¨PÐ��(�fg†9¯PÐ�sourcelyr �jkl¤¥m–�PÐÇn�UpdateLayer€GëPÐ lyro�p�qo�True �G�Æ.qoPÐ�Çn� ã�{Y �†‚3Ê,È��rPÐÇn°s«äS�ôB3tPÐÇncdu oä��5�väSþÆ�B�·¤¥‚N.�wY >>> arcpy.RefreshContents() >>> arcpy.RefreshGraphics() >>> ‚ÈY By diligentpig Ö×ØxY]0yqà arcpy.RefreshContents() ( B y q ArcMap � TOC � ] 0 � arcpy.RefreshGraphics()(ByqMapViewz LayoutView��]0� Tip8YjkEPbc �N(MapDocument$� save/saveACopy�ƒBjkë mxd]p�qo� � (�)$*+,-� By diligentpig �½� C:\MXDsba{�k|«}~ mxdba�3Ê Python,�R�é ba{�‘O�]«EPbcõöD9¨ PDFba�¨ mxd9€� Ö×؁YÝÞ$%&'à(×')&*� ‚2ƒ7“ „&2)à P�,jkD�.py ba�� Python Window ��VWù…�Load é.py ba��,R�…��È�‚Ìœz‚�‹�é Python Window��r« TU saveD.pyba�jkNÈa(� †&YArcGIS 10� Python������q� Geoprocessor‡‡ArcPy�vë l«� arcgisscriptingp�ˆ­rs“o��� Python�&¿‹f‰Š��qr �‹¨ Python Modulei�Œ´7>m?Ž�I����;<‘QRS� �¯�±’Xë Python��“”�•��¹–«FC—˜ ArcGIS 10�ÂB�* q Pythontu�
本文档为【ArcGIS 10中的Python】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_646987
暂无简介~
格式:pdf
大小:625KB
软件:PDF阅读器
页数:10
分类:
上传时间:2010-10-02
浏览量:60