Wednesday, September 10, 2014

Data Driven Pages in ArcGIS

When we need to create large scale maps such as 1:1000, 1:5000 etc... it is not possible always to export entire map into a single A4 or A3 size page. Therefore we can use Data Driven Page option in the ArcGIS which include Grid Map Index as a key to the Map.

Step 1,

Right Click on the ArcGIS Tool Bars area - Add Data Driven Pages Tool bar to your ArcGIS Desktop.



Step 2,

Add data you prefer for this project and make sure to change the scale in to large scale such as 1:5000 1:2000 etc... The change your view to 'Layout View', You can see your entire map in not visible withing the map area.


Step 3,

Go to Arc ToolBox - Cartography Tools - Data Driven Pages - Grid Index Features


Step 4,

Assign output feature class and select Input features as you need, you can add any amount of data layers. Then Tick both check boxes (Generate polygon Grid that intersects input feature layers or datasets and Use page unit and Scale). Then Map scale will automatically assign the layers map scale (Here I have used 1:5000 for layers hence Grid Index Features also automatically assigned 1:5000 scale). Then assign the size of your map sheet need. Here I have assign 20 cm for both Polygon Width and Height. Use drop down box to assign the unit you need, (Make sure for your layers also you have use the same unit such as km, m or cm etc...)Then assign number of Rows and Columns you required for your gird. Keep other optional features as it is. then Press 'OK'


Step 5,

Now your map Index has been created, 



Step 6,

This is the attribute table of the created Map Index, you can see it has given Page Name and the Page number for each Grid. 



Step 7,

Now we have to use Data Driven Pages Tool bar to assign our created Map Index to our data layers.
Click on Set Up data Driven Pages then in the Index layer "layer" select created Map Index, for the Name field select "Page name" of the Map index attribute.  and assign Page Number for the Sort field.



Step 8,

In the "Set Up Data Driven Pages" select Extent Tab, and then assign 100% as the Best Fit. Press "OK"



Step 9,

Now if you click on the Next page option you map shift to the next page, 


Step 10,

Now we have to show the map page in the Grid Index, for that add new data frame, 


Step 11, 

Add your map index to the new data frame.



Add Extended Indicator for new layer, 



Step 12,

Now you can see its indicate what page of the map on the Map Index, now we can add Data Driven Page Name to the Map to improve the readability of the map. 


Step 13,

Now we have to export Data Driven Pages to  PDF, for that simply go to Files- Export map  then select PDF, once you select PDF you have to tick on the All pages option the "Options". 


Once you exported to PDF you can see your map how it reefers to the Map Index. 







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.