Reader small image

You're reading from  Learning ArcGIS Geodatabases

Product typeBook
Published inJun 2014
Publisher
ISBN-139781783988648
Edition1st Edition
Right arrow
Author (1)
Hussein Nasser
Hussein Nasser
author image
Hussein Nasser

Hussein Nasser is an Esri award-winning senior GIS solution architect working in the GIS field since 2006. He is the author of three books in the ArcGIS technology: Administering ArcGIS for Server, Learning ArcGIS Geodatabases, and Building Web Applications with ArcGIS, all by Packt Publishing. In 2007, he won the first place at the annual ArcGIS Server Code Challenge, conducted at the Esri Developer Summit in Palm Springs, California. In 2014, he started the IGeometry YouTube channel, where he periodically publishes educational GIS videos.
Read more about Hussein Nasser

Right arrow

Designing the geodatabase schema


Before we start creating the geodatabase, we need to design a template that includes the tables, fields, and data types for the Bestaurants project. This template is called the geodatabase schema.

Note

A schema is a metadata template that describes the tables, fields, and field types in a particular database.

So, let's design the logical schema for the Bestaurants project. We will start with a very simple design where we create the basic atom dataset in the geodatabase, the feature class.

Note

The feature class is one of the basic objects in a geodatabase. This object class is a table with a shape attribute, which could be a point, line, or a polygon.

According to the case study, we need to create a geodatabase that accommodates diners, cafes, restaurants, bars, and lounges. So, we can create each one of them in a separate feature class, and then we need to give appropriate fields for each feature class. Take a few moments to answer these questions: what feature classes will you include in the geodatabase? What attributes will you use for each class? What are the data types for these attributes? Take a look at the following table:

Feature class

Field

Field type

Diners

NAME

Text

WEBSITE

Text

RATING

Short Integer

SHAPE

Geometry

Cafes

NAME

Text

WEBSITE

Text

RATING

Short Integer

SHAPE

Geometry

Restaurants

NAME

Text

WEBSITE

Text

CUISINE

Text

RATING

Short Integer

SHAPE

Geometry

Bars_and_Lounges

NAME

Text

WEBSITE

Text

RATING

Short Integer

SHAPE

Geometry

There are a lot of ways to design the schema for a geodatabase. There are really good ways that keep your geodatabase healthy in the long run, and there are bad ways that are inefficient. This design is a simple one; it is not the ultimate, and you might come up with a better design. The only reason I selected this is for its simplicity, and there is definitely plenty of room for improvement. You will learn how to create an efficient schema design in Chapter 3, Modeling Geodatabases, as you are introduced to more geodatabase datasets.

As you can see, we have merged the bars and lounges into one single feature class. We have used point geometry to represent these feature classes since it is easier to sketch, which could be identified with a Global Positioning System (GPS) device. These feature classes are also fast to draw, and we don't really care about the boundaries. However, it all depends on your requirements; whether it is necessary to identify the boundary of a certain feature or not. You may use polygon geometry if you want to.

Note

GPS is a space-based satellite navigation system that provides location and time information, whereas a feature is a single record or object in a feature class which has a set of attributes and geometric shapes.

Previous PageNext Page
You have been reading a chapter from
Learning ArcGIS Geodatabases
Published in: Jun 2014Publisher: ISBN-13: 9781783988648
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Hussein Nasser

Hussein Nasser is an Esri award-winning senior GIS solution architect working in the GIS field since 2006. He is the author of three books in the ArcGIS technology: Administering ArcGIS for Server, Learning ArcGIS Geodatabases, and Building Web Applications with ArcGIS, all by Packt Publishing. In 2007, he won the first place at the annual ArcGIS Server Code Challenge, conducted at the Esri Developer Summit in Palm Springs, California. In 2014, he started the IGeometry YouTube channel, where he periodically publishes educational GIS videos.
Read more about Hussein Nasser