Title: Bringing it all Together
1Bringing it all Together !?
- Dean Djokic, ESRI
- David Maidment
2What is it ?
- Integration of data, data models, and analyses in
a functional system
WRAP
RAS
GIS
SWAT
MIKE 11
HMS
MIKE 21
Other
3 4Integration Issues
- Data providers
- Data consumers
- (often both)
- Unspecified at the beginning of the integration
exercise - Proprietary
- Independence from integration platform
- Development out of control
- Maintenance curse
- Complexity increase (multiplicative)
5Integration Issues(direct interfacing)
N
WRAP
RAS
MIKE 11
SWAT
MIKE 21
HMS
GIS
Other
N (N - 1) Bi-directional
6Integration Issues(intermediary interfacing)
N
WRAP
RAS
MIKE 11
SWAT
XML
MIKE 21
HMS
GIS
Other
2 N Bi-directional
7Integration Issues(number of required interfaces)
8An XML-Based Generic System for Spatial Data
Exchange
Extension of GOODES approach Dean Djokic, Zhumei
Qian, Xinnong Zhou Environmental System Research
Institute Redlands, CA
9Why XML-Based Spatial Data Exchange
- Semantic tags for spatial data are user specified
- Easy customization of data structure for
different systems - Data structure is extensible
- Good for data distribution on Internet
(multi-platform) - Existing technologies for XML management
(parsers, editors, viewers, components, checkers,
converters, ) economy of development
10System Design of the XML-Based Exchange System
- Architecture
- A central exchange mechanism accompanied by
customizable XML structures - Three components
- Central data exchange mechanism embedded in GIS
(ArcMap-based) - Customizable control XML structure for import
- Customizable control XML structure for export
11Import
Customizable Import XML Structure
Import Data as XML Document
GIS
External Data Analysis Package
Central Exchange Mechanism
Export
Import Engine
Export GIS Data as XML Document
Export Engine
Customizable Export XML Structure
12Central XML-Driven Spatial Data Exchange Mechanism
- GIS Import Engine
- Transform data from various XML data exchange
structures into spatial data in a user-defined
data model - An intermediate XML to XML conversion might be
required - Input data exchange structure and geodatabase
design are managed by import control XML - GIS Export Engine
- Transform spatial data from a user-defined data
model into various XML data exchange structures - Output data exchange structure and geodatabase
design are managed by export control XML
13Anatomy of an Interface (1)
14Anatomy of an Interface (2)
15Anatomy of an Interface (3)
16Anatomy of an Interface (4)
17Anatomy of an Interface (5)
18Data Export Process
Export XML Structure I
- Read XML structure
- Determine what needs to be exported
- Determine output data structure
- Generate output data
GIS
Export Data I as XML Document
Export Engine
Spatial Data I
Export XML Structure II
Spatial Data II
Export Data II as XML Document
19A Close Look of Export Process
GIS Data
Determine Data Structure
Output Data
Export
XML Structure
- System reads export control XML
- Determines output data structure
- Generates output
20Customization of Data Export
- Customization is via node attributes in control
XML structure - Node attributes fall into two categories
- Describe data model customization
- SourceType, DataLocation, Identity,
IdentityValue, and DataFrame - Follow the logic of spatial database (ESRI
geodatabase in this prototype) - Describe data representation style
- Name, Entries, and Target
- Completely user defined
21Control XML in Export Process
Sample Control XML
ltNode1 NameStreamNetwork SourceTypeFeatureLay
er IdentityLayerName IdentityValueReaches
gt ltNode2 NameStream SourceTypeFeature
EntriesMultiple gt ltNode3
NameStreamID SourceTypeFeatureTable
IdentityFieldName IdentityValueReach_ID
TargetAttribute /gt lt/Node2gt lt/Node1gt
Sample Output Data
ltStreamNetworkgt ltStream StreamID1 /gt
ltStream StreamID2 /gt lt/StreamNetworkgt
22Export Workflow
23Data Import Process
Import XML Structure I
- Read in data
- Read control XML structure
- Validate import data structure against the
control structure - Generate spatial data
- Store spatial data in a geodatabase
Import Data as XML Document
GIS
Import Engine
Import XML Structure II
Spatial Data I
Spatial Data II
Import Data as XML Document
24Model Connections to ArcHydro
TIWSS Texas Integrated Water Simulation System
Tim Whiteaker Center for Research In Water
Resources August, 2002
25Variety of Models Input Formats
- Record-Parameter List
- Modify Particular Records
26WRAP Inputs (-SIM, -HYD, CON-SIM)
- Brazos.DAT basic input file
- Brazos.INF naturalized streamflows
- Brazos.EVA net evaporation-precipitation
- Brazos.DIS flow distribution and watershed
parameters
27Input Records in GIS
- Brazos.DAT
- CP Records
- NextDownID
- Brazos.DIS
- WP Records
- Control Point Identifier
- Drainage Area
- Curve Number
- Mean Precipitation
28A Central GeoDatabase
3,316 Control Points
29XMLThe Extensible Markup Language
A meta-markup language for text documents XML
documents with data in strings of text surrounded
by text markup that describes the data Users can
define the elements they need. In Water Resources
elements like Control Points can be defined An
XML document can be used as a config file for any
program to take action based on it Due to its
extensibility platform independent character
XML is being recognized as The new standard for
data exchange
30From GIS to XML
Applications to extract GIS data and format it as
a XML document, are being develop by ESRI
(XML-Based Converters)
31Control XML Structure
The application extracts the data based on a
Control XML file that specifies the data to be
extracted and the XML structure in which will be
organized
32GIS Data with XML Structure
After running the application, the extracted data
is placed in a XML document from which data can
be exchanged with any modeling system by parsing
the XML structure
33The Document Object ModelDOM
- To parse a XML document
- To readily manipulate the Data XML document file
and retrieve all the needed GIS values - A Visual Basic Application that takes advantage
of DOM to retrieve the data and write it back
following any format prescribed by any modeling
system, e.g., WRAP, SWAT, etc.
34From XML to WRAP
Exporting Geospatial and Time Series Data into
WRAP
35Generic Data Exchange XML-Based Structure
36Example of Input Files
Existing Brazos.dat File
Existing Brazos.dis File
Updated Brazos.dis File
Updated Brazos.dat File