O'Reilly logo

ArcGIS By Example by Hussein Nasser

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Calculating the tree removal cost

In this section, we will continue working on our cost calculator class and add more functionalities to it. We will add the ability to calculate the number of trees under a certain excavation and then we will also calculate the cost of removing those trees based on their type.

Calculating the number of trees

To calculate the number of trees, we will need to perform a spatial query on the tree feature class to find all trees under the current selected excavation.

  1. If necessary, open Visual Studio Express in administrator mode; we need to do this since our project is actually writing to the registry this time, so it needs administrator permissions. To do that, right-click on Visual Studio and click on Run as administrator ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required