Book Image

ArcGIS By Example

By : Hussein Nasser
Book Image

ArcGIS By Example

By: Hussein Nasser

Overview of this book

Table of Contents (17 chapters)
ArcGIS By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preparing the excavation cost calculator


Calculating the excavation cost requires us to know of some parameters and basic cost units. These units are prepared by the Yharnam team in the Yharnam geodatabase in the following table:

Item

Item type

Unit

Cost $

ROCK

SOIL

m3

10

SAND

SOIL

m3

5

TYPE1

TREE

Number

5

TYPE2

TREE

Number

10

TYPE3

TREE

Number

50

The cost of removing a single tree depends on its type and is stored in the preceding table. The cost of removing 1 cubic meter of soil depends also on the type of soil. We will develop all these algorithms in the coming sections. Note that the numbers in the table are not real and are here just for the sake of example.

Creating the excavation cost calculator class

We will be writing a lot of code related to the excavation cost calculation, and it is wise to use an object oriented to our advantage. We will create the ExcavationCostCalculator class that will hold our method. Follow these steps:

  1. If you are continuing from the...