Introduction to ArcGIS Model Builder

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone welcome to another RJ's tutorial in today's tutorial I will introduce you to the ik GS model builder and in this tutorial I will show you how to use the ArcGIS model builder in order to automate a series of your processing tasks so in order to demonstrate the capabilities of our J's model builder what I'm going to do is I'm going to use this shape file as you can see over here I have loaded a shape file called Netherlands which shows the provinces of Netherlands and over here if I activate this shape file it shows you the rail tracks of Netherlands and if you see over here I have a folder called provinces where I have all the shape files of each of these provinces if I turn this off and for example if I drag and drop this Limburg shape file you can see that I have the boundary of the Limbourg province similar if I drag and drop the you turret province you can see that I have the boundary of the userid province so in this exercise what I'm going to do is actually I'm going to clip this rail tracks shape file using a given boundary of a province and after that the resulting the resulting shapefile of the rail tracks I'm going to convert it into a KMZ file and I'm going to visualize that in Google Earth and that whole process I'm going to automate it using the ArcGIS model builder so let me go ahead and turn these two layers off and the very first thing that I'm going to do is I'm going to create I'm going to go to my working folder you can see over here that I have a folder called model builder I'm going to go to I'm going to right-click over there and go to new and create a new toolbox and this toolbox I'm going to name it as to KMZ converted and then what I'm going to do is I'm going to right click on these two KMZ convert a tool box which we just created and go to new and select new model so this is the interface that we have in order to create our new model all right now what I'm going to do is I'm actually going to import my rail tracks shape file so there are a couple of ways of actually importing a shapefile into this into your model builder one way to do is actually to simply just drag it and drop it over here and now you can see that we have one shape file called rail tracks and then I'm going to import one of these provinces into my interface as well let's use the Limbourg province and I'm going to use that as my second shapefile where I'm just going to drag it and drop it over here so now you can see that we have two shapefiles the first one is the rail tracks and then I have the Limbourg shapefile which is the shape file that I'll be using in order to clip this rail tracks shapefile alright now let's go to search and simply search for the clip tool and from here you can simply navigate to to the location where you can actually locate the clip tool and now you just simply drag this clip tool and drop it over here alright now what I'm going to do is I'm going to use this connect tool and I'm going to connect a connection from rail tracks all the way into the clip and this is going to be my input feature and now I'm going to make the second connection from this Limburg province shapefile into the clip tool and that I'm going to specify as the clip features tool alright now you can see that even the color of the clip tool got changed which means that we successfully linked all the input files that's required by the tool in order to execute its geoprocessing task and let's come to the output over here just double-click on that and I'm going to change the the output location to these outputs and I'm going to name it as clipped real all right click apply and ok and now you can simply execute this model by simply pressing run over here and you can see over here that it's completed already and you sort of start seeing this shadow which was not there before and if you see this shadow that means that the command actually got executed and even if you navigate to the location where you specified if you'll also be able to see the generated shapefile I'm just going to navigate to this outputs folder and now over here you can see that and you can see over here that this click trail shapefile actually got generated now let's have a look I'll just turn these two layers off and if I just drag it and drop it over here you can see that it got clipped if I increase the thickness a little bit and probably activate this one now you can see the clip shapefile is already here now now the next thing that I want to do is actually I want to convert this shapefile into a layer so how do you do that you can simply search you come to your search panel and you search for make feature layer tool and you again go to the tool box and this is the tool that you can use in order to make a feature layer so what I'm going to do over here is actually before converting this shapefile into a KMZ file I'm just going to convert this shapefile into a layer so how do you do that similarly to the previous step you just go to your tool and drag it and drop it over here and now this tool by itself is to make feature layer tool you can even double click on this one and then you can see actually what the inputs and the outputs are going to be and by now you might be able to guess that the input for this make feature layer tool is going to be our result resulting a clipped click trail shape file so what I'm going to do is I'm just going to make another connection from this tool to this tool and specify that as the input features and as you might expect it sort of lights up with with its colors which sort of gives us the indication that it already it already made the connection with the with the input file that it requires in order to execute once we decide to execute the the geoprocessing task alright so this one I'm just going to use the select button and probably rename this one asked clipped Braille Lyr which indicates that it's the clipped rail layer and then click OK and finally I'm going to use the K layer to KMZ tool you can just again go to your search panel and search for layer 2 k MC it's this tool and now you can simply drag it and drop it over here and you can even double click again in this tool just to have have a look at what are the inputs and outputs are going to be and you're going to specify this clip rail layer as the input to your layer to KMZ tool how do you do that just go to your connect tool and make a connection from here to here and that's going to be your input layer you can you can go to the Select tool again and just rename this one to be to be a name of your choice and just make sure that you you maintain the the format of the file which is KMZ alright looks fine to me and now finally what we can do is we can just go ahead and click run looks like it got executed without any issue let's close this one and let's navigate to the folder and see all right now let's navigate to the folder and see whether we successfully created that owner yes now you can see that we successfully created this KMZ file over here now if i open google it before you can see that we already have loaded up one cape KMZ which shows the the provinces of netherlands and now if i just go over here and double click on this one and now you can see that we sort of managed to click the entire rail network of Netherlands using a province of our choice in this case it was Limburg and you can even further improve the visual representation of this of this game she filed by going to the particular km sefa and go to properties go to style I'm just going to go with a light blue color and probably increase the width a little bit all right all right now let's come back to our GIS interface and let's do some slight modifications now as you can see over here this model is a bit of a rigid model by rigid model what I mean is that we already specified sort of a defined input shape file in this case it's the rail track shape file and also over here and you can see that we sort of pre assigned the the shape file of the pro means that we can that we that that we would like to use in order to clip the the rail track shape file so we're going to just have a bit of a flexibility by sort of adding and utility where every time when we run the model we sort of get the liberty to choose what kind of inputs that we are going to specify and we are going to let the model run over over these three steps which is first clipping and then making a feature layer and then converting that feature layer into a KMZ so the way to do that would be use you click on your first input shape file and over here you can see an option called model parameter activate that you can see a small P letter over here and over here go to model parameter and activate that and also you go to the output right click and then activate the model parameter and now what I'm going to do is actually I'm going to rename this this input shape file to be something like rail tracks input and over here instead of specifying it to be the name of the province I'm just going to make it a bit more general by just specifying the name to be province which sort of gives the opportunity for the user to choose the province instead of letting somebody else define the province for you and over here I'm just going to rename the output to be something like well I'm just going to leave it as click trail all right now you can save your model and you can just go ahead and close it and navigate back to the place where you saved your model in this case this is my model and now you can just click open right now you can see that we have two inputs the rail tracks input and the province and also we have the option to specify our output location as well so as the rail tracks input I'm just going to select the rail tracks as my rail tracks input and as the province this time I'm just going to select a different province let's say I'm just going to use North Holland province and the output location I'm just going to specify it to be in the outputs folder and I'm going to rename it and I'm going to name it as not Halle not jamesy right now let's click okay seems like the model ran without any shoe so we can just go ahead and close this let's navigate back to the output folder and now you can see that it generated this not Holland KMZ file so let's double click on this and as you see over here we successfully generated the rail tracks which belongs to just the North Holland province now what I can do is I can again go ahead and then probably improve the the visual representation I'm just going to select a different color this time maybe red alright all right so I think you got the basic idea of this exercise now in case if you need to make any sort of a change to your to your model you can just right click over here and then go to edit and you can make the sort of edits that you would like to have so just before we wrap up this tutorial I would like to whenever you switch on this model parameter you sort of create this input to be a variable where you get the opportunity where you get the choice to actually choose choose a shape file by yourself every time you decide to run the model all right so I hope you got an idea about how the model builder of angeas works if you have any questions regarding this tutorial please come in them down below I will try to reply to them as soon as possible and I hope that you would also like to follow along this tutorial and then probably do the whole process by yourself and if you would like to do that I have also included the shape files required for that for that exercise down in the description below as well just feel free to go ahead and download it and then practice by yourself and if you enjoyed this tutorial consider subscribing to my channel you will be able to see interesting GIS related tutorials in the upcoming days I'll see you in the next one
Info
Channel: GeoDelta Labs
Views: 22,975
Rating: 4.9787798 out of 5
Keywords: Google, Earth, KMZ, Shapefile, Convert, How to, Introduction, to, ArcGIS, ArcMap, QGIS, GIS, Geography, Rainfall, Geology, file, format, layer
Id: ONt2OIQ55ig
Channel Id: undefined
Length: 15min 23sec (923 seconds)
Published: Mon Jul 15 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.