Professional Documents
Culture Documents
Why Do This?
Pushing real-time data into an ArcSDE geodatabase for imme- Real-time data is becoming more and more prevalent in the world
diate consumption by end users can be challenging. However, around us and therefore in greater demand within GIS applications.
with the advent of Microsofts SQL Server 2008 and Esri sup- So how can real-time data be pushed to an ArcSDE geodatabase?
port for the built-in SQL Server 2008 spatial data types, real- Th ird-party applications, such as Informatica and Safe Softwares
time updating of ArcSDE feature classes in SQL Server 2008 FME, can do this. Both products work very nicely (Ive used them
has gotten easier. By utilizing the SQL Server geometry and both) but can be too costly for many organizations. ArcObjects can
geography data types, SQL stored procedures, and triggers, also be used, but not all organizations have access to a developer
we can essentially bypass the Esri ArcSDE stack and push at- capable of creating an application for updating ArcSDE. Instead, lets
tribute and spatial updates directly to nonversioned feature look at a simpler method using SQL to directly update the feature
class tables. Simple to complex insertions and updates can class table.
be performed through SQL, allowing us to provide (upon map
refresh or redraw) instant feature class updates to end users. Using the SQL Server Geometry and
Geography Data Types
By default, ArcSDE databases in SQL Server use the ArcSDE com-
pressed binary type for feature geometry storage within the SHAPE
field. To use the Microsoft geometry and geography data types in-
stead for feature geometry storage, we need to specify them when
creating our feature class. Since we cannot change the geometry
field type of an existing feature class, we will create a new feature
class and specify the GEOGRAPHY configuration keyword during
the process.
In ArcCatalog, create a new polygon feature class as you normally
A Word of Caution would, but when you get to the database storage configuration, use
What we are about to tackle can either the GEOGRAPHY or GEOMETRY configuration keyword in-
be very dangerous, as changes to stead of taking the DEFAULTS option. We will use GEOGRAPHY,
nonversioned data cannot be rolled which instructs ArcSDE to use the GEOGRAPHY binary data type,
back. It is highly recommended to store our spatial information in the SHAPE field (Figure 1).
that the methodology about to be
discussed be thoroughly tested in
a development and/or testing envi-
ronment before ever being attempt-
ed in production.
Next, we can add a spatial index using the Add Spatial Index
ArcToolbox tool. (Other ways to set the spatial extent and spatial
indexes can be found in the ArcGIS documentation.)
Further Reading
Aitchison, Alastair. 2009. Beginning Spatial
with SQL Server 2008. New York City, NY:
Apress. 459 pp.
ArcGIS 10 Resource Center help topics
( r e s o u r c e s . a r c g i s . c o m /c o n t e n t /
web-based-help)
Search for these phrases: GeoCollector for ArcPad
ArcSDE and Microsoft spatial types
Editing nonversioned geodatabase data in GeoCollector for ArcPad is an end-to-end field data collection
SQL Server using SQL solution that merges Esri mobile geographic information system (GIS)
Concurrency and locking technology with Trimble professional-grade global GPS capabilities.
MSDN (msdn.microsoft.com): Search for
This offer includes Trimbles GeoExplorer 6000 series and two choices
spatial data type method reference
of accuracy (after postprocessing)
About the Author 10-cm capable (GeoCollector XH)
Over the last nine years, 50-cm capable (GeoCollector XT)
Chad Cooper has
worked in many tech- You can also include Floodlight satellite
nical roles in state gov- shadow reduction technology, which
ernment, the private enhances GNSS performance to deliver
sector, and higher edu- more positions and better accuracies in
cation. He is currently a geospatial research difficult conditions.
and development specialist with the Center
for Advanced Spatial Technologies at the This is an exclusive offer from Esri and
University of Arkansas, Fayetteville, where is packaged for US customers.
he can be found doing anything from trans-
lating data to writing code to experiment-
ing with web applications. He also consults
through his company, Cooper GeoSolutions
(www.coopergeo.com).