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

Querying the regions


When dealing with real projects, often your data is not located in single database. You might need to connect to multiple databases or import those pieces of data into a single database in order to access. In this section, we will bring a second geodatabase, which contains the regions, connect to it from code, and retrieve the results to populate it in our form.

Connecting to the region's geodatabase

The regions feature class is located in another geodatabase that we have just added in this chapter. To prepare that feature class for access, follow these steps:

  1. Copy the entire bestaurants folder in the supporting files for this chapter, B04847_07_Files\bestaurants\ to the C:\ArcGISByExample\.

  2. From the Start menu, run ArcCatalog.

  3. Connect to the C:\ArcGISByExample\ folder and browse to C:\ArcGISbyExample\Data\bestaurants\Belize_Regions.gdb.

  4. Preview the Regions feature class in table view, as shown in the following screenshot. Note that we have seven regions named A to G. The...