ArcGIS建模Model_Builder_第1頁
ArcGIS建模Model_Builder_第2頁
ArcGIS建模Model_Builder_第3頁
ArcGIS建模Model_Builder_第4頁
ArcGIS建模Model_Builder_第5頁
已閱讀5頁,還剩74頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、Model Bu訂der產(chǎn)生一個(gè)模型選擇 Arc to olbox,右鍵,NewToolboxoLoad SettingsArcToolb-New ToolboxAdd ToolboxEnviroiun entsHi de Locked ToolsSave Sttings| I |VW+ Statistics+ 尊jl Cartography Tools+ 爾| Conversion Tools+ |需j Data Management Tools+ Geocoding Tools+ | | Geostatistical Analyst+ 1 Linear Referencing Tool $

2、 Spatial Analyst Tools+ Spatial Statisti cs Tool -I- Toolbox (2):】 Model編輯Model+ Spati al AnslyEt Tools 田 越)Spatial Stati sti cs Tool T 轉(zhuǎn)| Toolbox (2)= Jj-u MnrlplOpen.Batch.Edit.電 CopyX DeleteRenameHelpEdit Documentation.-,Froperti esFavor1tez 、ElementTools參數(shù)完備參數(shù)不完備Variable1. Variable (變量)Data數(shù)據(jù)文件變

3、量Value數(shù)值變量,包括數(shù)字、字符串、空間參考坐標(biāo)系、空間范圍等。Data分為兩類:Projcet data:可以添加到Model中的Derived data:派生數(shù)據(jù),由一個(gè)工具產(chǎn)生。Data VariabfesProjectDitlaDerivedDataC懇toTableProject data - (tela that you provxle to the fnodeLDerived data 一 data created in lhe mcxiel by tcxsls.遽>肝CMofNew dMived dOJta I 也畐 w dmsrse 二3-SL s仝-be writ

4、ten B dw'kValue Variable (數(shù)值變量)輸給工具的,例如Buffer中的距離。前一個(gè)工具派生出來,并且可以傳給后一 個(gè)工具。2對(duì)于一個(gè)Tool,雙擊,彈出設(shè)置菜單,可以自動(dòng)產(chǎn)生Project Data與Derived Data,但是Value不自動(dòng)產(chǎn)生。(因?yàn)閂alue通常比較多,而且有些不需要產(chǎn)生)。所以需要用戶自定義Value。滬 Buffer定義Value的方式是選擇Tool,右鍵-Make variable->From Parameters.Disters value cr field)CJtYou can make a variabte from

5、a toofs parameter by right drcking on the tool.Create Latel ViewMsgesE TypeEdit DocumerB1RunFrom BviramentDlSOTTvt*3在Model Builder內(nèi),右鍵->Create Variable產(chǎn)生一個(gè)變量。>lodel口回岡Model 馭it Vi ew Window Helpsj a朗闔劃創(chuàng)器舊蠶|悶細(xì)理|上| !選擇數(shù)據(jù)類型Create VariableSelect the variable data typ巳Record setRelationship ClassRe

6、mapRoute Measure Event PropertiesSemiVariogramShapefileSpatial ReferenceSQL ExpressionStringOKCancel例子:產(chǎn)生變量并且賦值A(chǔ)dd FieldModel Edit View tfiniow HelpQj亶 劇電I羈 吉I喇團(tuán):出汨兩紳創(chuàng)*|訂1Field Name勺回|%fidnajne%zJField TypeIlongzJField Preci aion (optional)1Field Scale(°FQi o&«lL)rIxut TablaCancelApply

7、Show Help »雙擊Add Field工具,可以選擇park, shp 峙Stringo但是Boolean必須通過Connector實(shí)現(xiàn),而且必須在arcmap Too 1 s op tio n'geoprocessing、選中modelbuilder在已經(jīng)擁有Data與Value變量的情況下,如 果不是直接打開變量對(duì)話框而是打開Tools對(duì) 話框修改變量值,貝!):如果修改了Data變量值,產(chǎn)生一個(gè)新的變 量,原來的變量不再連接。如果修改了Value變量,則不產(chǎn)生新的變量,而原來變量不再連接。BufferEl"BufferIap-ut Featurest e

8、mp exlT r oad2.;hpOutput feature ClassP: 'kt empexl7roal2 Bu.££er. shpDistance ralue or field.Linear unitUrtknownfieldZlDissolve Type (optional)|ndneZlDissolve Field(s)optional)Side Type (optionol)full "5n.d Type (optional)Kouim通過 tools 修改(buffer)n xQ » 訓(xùn)電|龜|制回:訊:| <3|紳越冏|

9、 21 !road2 BufInput tur«esroad2. shpIodelModel Edit View Window Helpfer. shpChitput Iature Class二回|r AtempKexlTrad2_Bu££er. shp | 色 |Distance ralue or fi<eld.J金Liontm1F ioCpfletersHI1 OKCancelApply|Show Help »Vroad2 Butroad2_Buffor.shp通過tools修改通過tools修改(buffer)(buffer)In-line

10、Variable substitirtion變量代替在建模過程中的變量傳遞問題O 通過%變量名%實(shí)現(xiàn)。r1“ Calculate FieldPx"!Input Tableputput Fztur& Class (2)叵1Fi eld NamezJExpressionaj("Hni ti al value%zd 91<匸-工:一OKCancelApplyExpression Type (optional)Show Help » |口回區(qū)in-line variableModel Eiit View Window Helpsj a|糾圈龜I 器|r|:|

11、x|刨紳樹冏I和2Initia lvalue:、連接符 Connectors有四種連接符Data connectorconnects data and value variables to tools.Environment connectorconnects a variable containing an environment setting (data or value) to a tool.Precondition connectora connection from a variable to a tool. The tool will execute only when the

12、contents of the precondition variable are currentFeedback connectorthe output of a tool will be fed back into the same tool as input處理過程的狀態(tài)in one ofEach process in a model is three startes:Not-ready-torunReady-to-runHas-been-runnot-ready-to-ru n (白色)ready-to-ru n (沒有陰影)Has run (有陰影)Precondition Vari

13、able (條件變量)選中tool,右鍵單擊選擇某一個(gè)變量。或者利用Connector首先保證 Arcmap-tools - >0ption- >Geoprocessing 選中了Modelbuilding。利用Connector工具,選擇一個(gè)Variable指向 Tool,彈出下面菜單。Select ParameterSeled which parameter you want to associate the variable with:Field I $Nuliable (ParameterField IsRequired (ParameterJ半d field names

14、(Environment (Precondition)Cancel利用布爾型或整型變量控制條件 產(chǎn)生一個(gè)布爾型或整型變量,直接當(dāng)成 Precondition,然后當(dāng)成Tool的一個(gè)參數(shù)。> Model 1Model Edit Vi ew Window Kelpsj s朗電i®i如gjjHJU 觀i阿 21 ±IodelModel Edit View Window Helpy| s|制判髦|創(chuàng)囲已|淚兀|刨紳逾冏I 21 >|執(zhí)行ModelRun 執(zhí)行Ready to run的Process Run Entire Model 執(zhí)行所有的Model 選中一個(gè)Proc

15、ess執(zhí)行.ModelRunEdit View Window Kel:Run Entire ModelValidate Entire ModelSaveDelete Iiiterniedia.te DataPrint Setup.Print Preview.PrintRep ort.Model Properties.Di agrairi Properties.ExportIrrip ort三、Model Parameters模型參數(shù)指的是模型運(yùn)行時(shí)所需要輸入的各參數(shù)。一個(gè)模型可以沒有模型參數(shù)。用來控制與用戶進(jìn)行交互操作。如果要設(shè)置模型參數(shù),選擇一個(gè) Var iable,點(diǎn)擊右鍵-Mode 1

16、Parameter,出現(xiàn)一。 表明這變成了 一個(gè)模型參數(shù)。當(dāng)沒有模型參數(shù)時(shí),在Arctoolbox下面雙擊 該模型,提示:> Kodel回岡Tliis tool lias no parametei s.OKCancelEnvironments.Show Help >>如果有模型參數(shù),則該參數(shù)會(huì)自動(dòng)彈出, 并且讓用戶選擇設(shè)置。Model Eiit Viev WinJow Helpgj畫釦圈髦|電|器|E3|;dx|刨卿阿k|*Tk改變model parameters的順序 通過Model Property改變。Modelbuilder->model->propert

17、yodel PropertiesGeneral Parameters | Environments | Help | Iteration |Parameters used by this model:| Data TypeName梯撫握鼎攜!艷涮外丨INI III ii們| |koadl.shpFeatue Laver±1職消應(yīng)用)變量名就是彈出窗口對(duì)應(yīng)的顯示名稱所以名稱要給的有意義。CancelEnYiKmenk| Shew Help >> |» bufferDistance waive or field>' Linear unitMetersC

18、 Field50口回岡2dj Input Featureclas:I1C-ancelErwisnmenh. | Show Help » |Output數(shù)據(jù)通常需要指定為modelparameters。否則被當(dāng)作臨時(shí)數(shù)據(jù)刪掉。為了查看結(jié)果或者傳遞給下一個(gè)工具使用, 必須將輸出結(jié)果設(shè)為model parameter.數(shù)據(jù)交互輸入例如一個(gè)點(diǎn)的坐標(biāo),或者一個(gè)范圍。輸入變量的類型為:Feature Set或者 Record Set。這兩個(gè)數(shù)據(jù)的Schema與Symbology必須從其 他文件中導(dǎo)入。首先產(chǎn)生一個(gè)Feature Set選中該Feature Set,右鍵->Property導(dǎo)

19、入Schema與Symbology (利用一個(gè)已有的 Lyr),定義完之后,這些信息就保存了,F(xiàn)eature Set Properties職消 I 應(yīng)用) I該文件改變也不影響。將輸入、輸出以及Feature Set均設(shè)置為 Model Parameters。并且改變Par ame t er s的順序。選擇Model Property進(jìn)行設(shè)置。Iodel PropertiesEiLvironniGntsKelpIterstion |General ParametersParameter? used by this model;保存,并在ArcMap中ArctoolBox運(yùn)行。選中Output

20、Featureclass變量, 右鍵>add to displayo結(jié)果自動(dòng)則在Model Builder窗口下運(yùn)行, 添加到當(dāng)前窗口。結(jié)果顯示結(jié)果可以按照定義好的Symbo logy進(jìn)行顯示。 Import的文件必須是.lyr,或者是Arcmap中 打開的文件。選擇輸出文件,右鍵->PropertyOutput distance raster PropertiesGeneral | Data Type Layer Symbology |How a variable is drawn in a map or on a globe may be defined by importin

21、g the symbology properties of an existing map layer or layer File.Import the symbology from:I3 司v數(shù)據(jù)確認(rèn)Vai i dat i on在執(zhí)行一個(gè)Model之前,首先執(zhí)行一遍確認(rèn)程 序,保證所有的數(shù)據(jù)都是準(zhǔn)確的。Model- >validate Entire Model.jM IodelModelEdit View Window Help回岡過程數(shù)據(jù)(Intermediate Data)模型參數(shù)數(shù)據(jù)不能被當(dāng)成過程數(shù)據(jù) 派生數(shù)據(jù)通常自動(dòng)被當(dāng)成過程數(shù)據(jù) 過程數(shù)據(jù)在執(zhí)行完之后自動(dòng)刪除。可以被刪除,節(jié)省

22、空間,提高效率。> Model口回岡Print Setp.Print Preview.Print.Rep ort.Model FropertiesDi agraffi Properties.Eicp ortImportCloseModel Edit Yiev Liadov Kelp可后|貂賂|劃 國(guó)MilE3|髭IX|刨細(xì)越|阿 霾 冒road1 shpView Heasaes.Create LabelLt? 1 u o a c c T 九奄XBerthe.Switch to picture synbolDisplay properties.gfroperties.vIncomplete

23、 Data當(dāng)派生數(shù)據(jù)沒法預(yù)料,但后面又作為輸入數(shù)據(jù)時(shí),需要特殊處理。(1)當(dāng)成已知來操作(2)部分運(yùn)行ProcessF1< PV |醐涮|:|-|s:舉 1® ¥ ¥ Bi11|dPH 憐u/ 航M HPX PPW |兇口rk.TPOI </ss-xDd in a jj.ndj.nnf p、 TOT TTBfT/(Ills -is J.ITOT infT乙PEox r33uresTa冒羋啓目團(tuán)曲 PITnq ppojv .同Look in: |固 T oolboxesd 1 sslalBlNjneType處My ToolboxesAddCancelZl

24、 t-l ahlttl is:nnag|Name;I ToolboxesAddShow of type:添加工具瀏覽 ArctoolboxSystem ToolboxesN ame:| System T oolboxesShow of type:NmeI Type|Aj|Toolboxes.fkrctfeb Servi cesArctfeb Services FolderCoordinate SystemsCoordinate Systems FolderJ§Database Connect ionsDatabase Connections Folder.1CQDatbasc: Se

25、rversDatabase: Servers韋C;Folder ConnectionFolder Connection必F:lFolder Connection: ArcTutorFolder Connectionjj|F:tempFolder CoruiectionVLook in: | Catalog0®顯示所有可能的連接ArcMap 一too 1 s>0p t i on->Geop:roce s sing選中 ModelBu 訂 der 以后建立鏈接就有提示。OptionsRaster | CAD | Table Of Contents General I Data

26、 View | Layout ViewData InteroperabilityTablesGeoprocessingGeneral廠 Overwrite the outputs of geoprocessing operationsV Log geoprocessing operations to a history modelSelect ParameterMy ToolboxesSpecify the location of the lMy Toolboxes* folder:|C:Documents and Setting$wrfWpplication DataXESRIV 呂Rese

27、tSelect which parameter you 曲呂nt to associate the variable with:Environment SettingsChange the current environment settings.Environments.Distance value or field (Parameter) XY Resolution Environment SeUing) W Tolerance (Environment Setting) Z Resolution (Environment Setting) Z T oleranee (Environmen

28、t Setting (Precondition)n connecting elements, display valid parameters when more one is available.顯示結(jié)果Display/Temporary Data" Add results of geoprocessing operations to the display 廠 Results are temporary by default0®0®OK Cancel «F取消應(yīng)用)編輯Element選擇Element-右鍵。尤其是Rename應(yīng)用較多。Managed

29、Add To DisplayIntermedi ateCi電弘七電L-belVi Messsigs.MCut電 CopyXBeleteRename.Switch to picture symbolBi splay proper ties. ?ff?ropertie£.保存Model選擇Arctoolbox,右鍵->Save Setting ->to DefauIt。否則只能保存在MXD中。選擇這個(gè)Toolbox右鍵-Save As 9. 0/9. 1NewAdd«elp!Edi t BocumGntatLon.Propertes.Save As 9.0/9.1.

30、1ToolR=) Copy TasteTublish To ArcGIS Server倉G込X Rew 尊L皿一 尊 Spat 尊 Sp at -匕igeneralKrialysi!I)總 中國(guó):國(guó)由:凹由由:由:由曰®-:®-:日ArcToolbox囁| 3D Analyst Tools 霸j) Analysis Toolsj connect沃 ModelCartography Tools 第 Goaf 覇| lUt磴 0 GeovLabel選擇一個(gè)Element,右鍵-Crea/te Label或者直接產(chǎn)生一個(gè)不與E1 eraen t關(guān)聯(lián)的Lab e 1。 雙擊Labe

31、l,進(jìn)行編輯,按住Shift鍵回車 可以輸入多行。希 田:田:田田田:田:田;田田田;田;田田Arctoolbox的SearchArcToolboxox3D Analyst Tools Analysis Tools Cartography Tools C Oliver si on ToolsData ManagemeiLt Tools Geocoding ToolsGeostalistical Analyst Linear Referencing Tool Spatial Analyst Tools Spatial Statistics Tool TooIBok (2)TooIBok (7)Toolbox (8)ArcToolboxType in the word(§) to search For:buffersSearc

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論