Monday, July 21, 2014

ModelBuilder in ArcGIS

ModelBuilder is an application use to create, edit, and manage models.Models are workflows that string together sequences of geoprocessing tools, feeding the output of one tool into another tool as input. ModelBuilder can also be thought of as a visual programming language for building workflows.

In this exercise I have used ModelBuilder for our last  exercise Create Stream Line Network Using Digital Elevation Model in ArcMap. (http://effective-gis.blogspot.com/2014/07/create-stream-line-network-using_16.html)

Step 1,

Right Click Your Geo Database - New - ToolBox to create new modelbuilder and name as you required. 


Step 2,

 Right Click on the created toolbox - New - Model


Step 3, 

this is the Model window of the ModelBuilder, once you create a model you have to save it and you can Edit it when you need. 


Step 4,

Go to ArcGIS ToolBox and select the Tool you need and drag in to the Model. Here I have used Terrain to Raster Tool. 


Step 5,

Now you can see that Terrain to Raster Tool have been added to the Model. Now we have to give the inputs to the Tool. For that Double click on the Tool. 

Same as in ArcMap you have to just the data you required and enter required parameters. 



Now you Tool containing data which can process to get a output. 


Step 6,

Add Flow direction tool, for this as a Input we have to assign Terrain to Raster's output. Same as we did earlier double click on the Flow Direction Tool.


 For this as a Input we have to assign Terrain to Raster's output. Same as we did earlier double click on the Flow Direction Tool. (we do not required data for output drop raster)


Now both Tools are connected since we have use "Terrain to Raster" output as a input to the "Flow Direction" (If you press the "Auto Layout" option in the Model's tool bar your Model will automatically arrange in to a order)


You have to run the model to get the output to use as inputs for the other Tools (Before Running the model you can validate the model)



Step 7,

Now we have to use Flow Accumulation Tool to this Model. 


Select Flow Direction's output as a Input.



All three Tools are connected together 


Step 8,

Now Add "CON" tool to the ModelBuilder


Add Input as Flow Accumulation's output.



Step 9,

Now we have to add stream line tool to the Model, Select CON's output as input to the Stream Line.





Step 10,

Now we have to add Stream to Feature Tool for the model. 


Add inputs to the Stream to Feature Tool


Step 11,

Run the model. you will get the output to your Geo database. Add to ArcMap.














Wednesday, July 16, 2014

Create Stream Line Network Using Digital Elevation Model in ArcMap

When we need to find out the Stream line using DEM, first of all we have to find out the flow direction. For this we can use Flow Direction Tool in the ArcGIS. This tool determine the direction of flow from every cell in the raster.


Following is the mechanism use in Flow Direction

maximum_drop = change_in_z-value / distance * 100

Step 1,

ArcToolbox - Spatial Analyst Tools - Hydrology - Flow Direction


Step 2,

Add your Raster file as  input





Step 3,

Once we have the Flow Direction, then we have to identify the Flow Accumulation. Flow Accumulation is a measurement of the amount of water accumulated in overland flow over a surface. For this we can use Flow Accumulation Tool in ArcMap.

ArcToolbox - Spatial Analyst Tools - Hydrology - Flow Accumulation

Step 4,

Select Flow Direction output as Input, Select "Integer" as Output Data type



Step 5, 

As a result we will get number of stream lines, therefore we have to filter the number of stream lines. For this we can use "Con" tool in the ArcGIS. The "Con"tool allows you to control the output value for each cell based on whether the cell value is evaluated as true or false in a specified conditional statement.

ArcToolbox - Spatial Analyst Tools - Conditional - Con

Select Flow Accumulation output as Input and then enter your Expression,
(I have used Value >= 1000 here)


Step 6,

Now we have to create the Stream Link, for this we can use "Stream Link"
Tool in the ArcGIS

ArcToolbox - Spatial Analyst Tools - Hydrology - Stream Link


Select Con output as the Input and Flow Direction also,




Step 7,


Now we have to create feature data set for this Stream line for our GIS
Operations. for that we can use Stream to Feature tool in ArcGIS.

ArcToolbox - Spatial Analyst Tools - Hydrology - Stream to Feature




Now you have a feature data set of your Stream Network. You can remove the
small stream lines by using Select by Attribute option in the Attribute table. 



Lay your Stream Network top of your DEM, you can sea how the stream line
flow according to elevation of the surface.



Monday, July 14, 2014

Terrain to Raster

Creating Raster by using Terrain 


Step 1,

Open Terrain model using ArcMap

 (Use this link for creating new terrain http://effective-gis.blogspot.com/2013/12/create-digital-terrain-model.html)



Step 2,

Go to ArcToolbox - 3D Analyst Tools - Conversion - From Terrain - Terrain to Raster

Step 3,

Use your Terrain as "Input Terrain" change "Sampling Distance " as you required...


Step 4,

Press "OK"

Step 5,

You can change the colors using Symbology 






Thursday, July 10, 2014

How to Convert OpenStreetMap data (.gpx) in to Shapefile (ESRI)

When we needs to add OpenStreetMap data (.gpx) data into ArcMap we have to convert it into Shapefiles where we have to use different converters to do so, Here I have used simplest way to convert OpenStreetMap data (.gpx) data into ESRI Shapefile by opening OpenStreetMap data (.gpx) data through  QGIS.

Step 1,

Open QGIS



Step 2,

then go to Layers - Add Vector Layer


Step 3,

Brows to your OpenStreetMap data (.gpx) and select file type as 'All Files',


Step 4, 

Select vector layer you wants to add (In this case I have used routes)

Step 5,

You can see your downloaded road network.



Step 6,

 Right click on your layer - Save as - ESRI Shapefile 





Step 7,

Select Coordinate system you need


Step 8,

Open ArcMap - Add layer


Step 9,

Even if you open the attribute table you can find the Road names...