Lesson 7: XML Schemas

Similar documents
XML Schema of the Geodatabase

Lesson 12: ArcGIS Server Capabilities

Enterprise Architect. User Guide Series. Geospatial Models. Author: Sparx Systems Date: 15/07/2016 Version: 1.0 CREATED WITH

Enterprise Architect. User Guide Series. Geospatial Models

Using the Geodatabase

Introduction to Geodatabase and Spatial Management in ArcGIS. Craig Gillgrass Esri

Utility Network Management in ArcGIS: Migrating Your Data to the Utility Network. John Alsup & John Long

Esri Geodatabase (File Geodatabase API) Reader/Writer

Object modeling and geodatabases. GEOG 419: Advanced GIS

Key Terms. Attribute join Target table Join table Spatial join

Topology in the Geodatabase an Introduction. Erik Hoel Doug Morgenthaler

Topology in the Geodatabase: An Introduction

AutoCAD Map 3D and ESRI ArcSDE

Name: Date: June 27th, 2011 GIS Boot Camps For Educators Lecture_3

ArcGIS Pro Editing. Jennifer Cadkin & Phil Sanchez

Finding Your Way with ArcGIS Network Analyst. Frederic Schettini Michael Rice

Integrating CAD Data with ArcGIS

Geodatabase and Object Model Design Using CASE Tools. Julio Andrade Erik Hoel

Geog 469 GIS Workshop. System Requirements - Data

Welcome to NR402 GIS Applications in Natural Resources. This course consists of 9 lessons, including Power point presentations, demonstrations,

Arcgis 10 Manually Move Labels

An Esri White Paper July 2010 Use GIS Data ReViewer to Inspect ArcFM Feeder Manager Circuits

QGIS Workshop Su Zhang and Laura Gleasner 11/15/2018. QGIS Workshop

Accessing and Administering your Enterprise Geodatabase through SQL and Python

Python Scripting: Michael Potts, GISP. Geodatabase Administrator.

Spatial Data Standards for Facilities, Infrastructure, and Environment (SDSFIE)

Mississippi Public Schools 2015

Deploying and Using ArcGIS Explorer for Petroleum Users Bern Szukalski ESRI Redlands

ArcGIS software architecture

Introduction to QGIS: Student Workbook

Answer the following general questions: 1. What happens when you right click on an icon on your desktop? When you left double click on an icon?

Network Analyst extension. Oi Origin-Destination i (OD) Cost Matrix

Geography 281 Map Making with GIS Project Two: Map Design Issues in ArcMap

Lab 3: Digitizing in ArcGIS Pro

ArcGIS Pro Editing: An Introduction. Jennifer Cadkin & Phil Sanchez

Spatial Data Standards for Facilities, Infrastructure, and Environment (SDSFIE)

Assimilating GIS-Based Voter Districting Processes in Maricopa County, Arizona

QGIS Workshop Su Zhang and Laura Gleasner 11/10/2016. QGIS Workshop

Lesson 2: Data Models, Database Models, and Data Modeling GEOG482/582 / My Course / University of Washington

Overcoming Challenges While Migrating SDE Versions

ArcMap - EXPLORING THE DATABASE Part I. SPATIAL DATA FORMATS Part II

ArcGIS Extension User's Guide

Your Prioritized List. Priority 1 Faulted gridding and contouring. Priority 2 Geoprocessing. Priority 3 Raster format

Introduction to QGIS: Instructor s Notes

Data Interoperability Extension Tutorial

Lesson 4: Training Model & User Interface Components

Objectives Learn how to import and display shapefiles with and without ArcObjects. Learn how to convert the shapefiles to GMS feature objects.

Editing Versioned Geodatabases : An Introduction

LAB 1: Introduction to ArcGIS 8

Spatial Data Standards for Facilities, Infrastructure, and Environment (SDSFIE)

LSGI 521: Principles of GIS. Lecture 5: Spatial Data Management in GIS. Dr. Bo Wu

Moving Dynamic Segmentation to the Server: Linear Referencing for Web- Based Applications

Esri s ArcGIS Enterprise. Today s Topics. ArcGIS Enterprise. IT4GIS Keith T. Weber, GISP GIS Director ISU GIS Training and Research Center

8 Querying and Selecting Data

Appendix C: GIS Standards and Procedures

GEOG 487 Lesson 7: Step- by- Step Activity

Display Layers in Geosoft 3D View

SPATIAL DATA MODELS Introduction to GIS Winter 2015

Esri s Spatial Database Engine. Today s Topics. ArcSDE. A spatial database engine that works on

Creating and Editing a New Shapefile

Selecting by Attributes and Location in ArcGIS Pro

The names of other companies and products herein are trademarks or registered trademarks of their respective trademark owners.

Data Interoperability An Introduction

PODS Lite. Technical Overview and Guide

TRAINING GUIDE. Data Quality Tools for GIS and Lucity Spatial

PODS Lite version 1.1. Executive Summary

Lab 3: Digitizing in ArcMap

Introduction to ArcCatalog

Linear Referencing in ArcGIS : Practical Considerations for the Development of an Enterprisewide GIS

LocatorHub. Migrating LocatorHub to Version 5.0. The Transition from ArcObjects Based Plug-Ins to ArcGIS for Server Services

Tutorial 1: Finding and Displaying Spatial Data Using ArcGIS

Understanding and Using Geometry, Projections, and Spatial Reference Systems in ArcGIS. Rob Juergens, Melita Kennedy, Annette Locke

Python: Working with Feature Data. Ghislain Prince David Wynne

SBGN-ML. Milestone 1

An Esri White Paper June 2011 Using ArcGIS Data Reviewer to Inspect ArcFM Feeder Manager Circuits

Why use an RDBMS? ❽ Data maintenance ❽ Standardized access ❽ Multi-user access ❽ Data protection

What s s Coming in ArcGIS 10 Desktop

What s New for Developers in ArcGIS Maura Daffern October 16

2D/3D Geometric Transformations and Scene Graphs

ArcGIS Basics Working with Labels and Annotation

Mapping Census data in QGIS

Geodatabases. Dr. Zhang SPRING 2016 GISC /03/2016

GIS Exercise 10 March 30, 2018 The USGS NCGMP09v11 tools

ArcGIS Network Analyst and Network Dataset. Jim McKinney ESRI

GEOG 487 Lesson 4: Step-by-Step Activity

DRAFT DRAFT WORKSPACE EXTENSIONS

Data Interoperability An Introduction

This support note will discuss several methods of creating no spray zones for Sentinel GIS>

Geog 469 GIS Workshop. System Requirements

Esri Geodatabase Reader/Writer

Geospatial Databases: Metadata, Standards, and Infrastructure

ArcSDE architecture and connections

Integrating ArcGIS to Enterprise Oracle Spatial Using Direct Connect

Leveraging SAP HANA and ArcGIS. Melissa Jarman Eugene Yang

PUG List. Raster Analysis 3D Analysis Geoprocessing. Steve Kopp

FHWA GIS Safe Bike Routes Tools Version 4.0. User Guide

Quick Guide to MapWindow GIS Desktop Application

Application of the Catalogue and Validator tools in the context of Inspire Alberto Belussi, Jody Marca, Mauro Negri, Giuseppe Pelagatti

ArcGIS Server: publishing geospatial data to the web using the EEA infrastructure

An Introduction to Data Interoperability

Transcription:

Schema Tags <Field xsi:type="esri:field"> <Name>OBJECTID</Name> <Type>esriFieldTypeOID</Type> <IsNullable>false</IsNullable>... </Field> GEOG 482 / 582 : GIS Data Management Lesson 7: XML Schemas

Overview Learning Objective Questions: 1. Why use label tags for XML Schema? 2. What are the two components of a workspace document? 3. What composes a RecordSet Document? 4. What composes a Data Changes Document? 5. What is a data element inheritance hierarchy? 6. What is geometry inheritance? Lesson Preview Learning objective questions act as the lesson outline. Questions beg answers. Reading: http://downloads2.esri.com/support/whitepapers/ao_/xml _Schema_of_Geodatabase.pdf

Basic Concepts of XML Schema 1. Why use label tags for XML Schema? Schema description of database elements Different representations can be used to describe a geodatabase using extensible Markup Language (XML) elements. Label tags are the foundation of XML. Tags are used because of the flexibility of representation. All information that relates to a database schema is exported to XML as data elements (definitions and data). Key terms XML Tags One way would be to represent a field using one XML attribute for each property of a geodatabase field as below: <Field xsi:type="esri:field"> xsi=xml schema ID <Name>OBJECTID</Name> <Type>esriFieldTypeOID</Type> <IsNullable>false</IsNullable>. </Field> Note: a <tag> opens a string and a </tag> closes a string

Each property of the field Alternatively, each property of the field could be represented using several more XML elements as follows: <Field xsi:type="esri:field"> <Name>OBJECTID</Name> <Type>esriFieldTypeOID</Type> <IsNullable>false</IsNullable> <Length>4</Length> <Precision>0</Precision> <Scale>0</Scale> <Required>true</Required> <Editable>false</Editable> <AliasName>OBJECTID</AliasName> <ModelName>OBJECTID</ModelName> </Field> Key terms Property Link to details of field properties in geodatabase

Difference between two XML representations In the first example, one XML tag for each property, but no specific data value tags are used. In the second example, an XML tag with data values is used to specify detail. Key terms Property A schema specifies that a field XML element should have a sequence of children elements the first element is called Name (a string), the second is called Type (an enumeration value), and so on. The geodatabase exchange format uses XML elements to specify the content of the schema definition. Tags are used to label the elements and the element data values when appropriate.

Domain and RangeDomain Remember a domain is a collection of allowable data values Domain has name: for naming reference field type: specifies allowable operations on a field (a way of implementing scales of measurement) Key terms Domain RangeDomain Types can be derived from other types, most commonly by adding extra attributes to the base type. Domains are a good example of type inheritance. A RangeDomain is derived from it and adds two more elements, MinValue and MaxValue See next slide for graphic

Domain and RangeDomain Note the domain on left-side graphic is yellow box on right-side graphic Esri, 2008. XML Schema of the Geodatabase, p. 3 http://downloads2.esri.com/support/whitepapers/ao_/xml_schema_of_geodatabase.pdf

CodedValueDomain Esri,2008 XML Schema of the Geodatabase, p. 3 http://downloads2.esri.com/support/whitepapers/ao_/xml_schema_of_geodatabase.pdf

2. What are the two components of a workspace document? Exporting a geodatabase to XML generates a workspace document. The XML element Workspace in the XML schema contains two child elements: WorkspaceDefinition and WorkspaceData WorkspaceDefinition contains workspace type, the version being exported (if the export based on ArcSDE ), an array of domains (zero to many domains), and an array of data elements on slide 10. Domain is an abstract type as described before (i.e., range and coded-value domains) DataElement is an abstract type whose derived types are used to describe the schema of geodatabase constructs, e.g. tables as slide 11. Key terms Workspace document Workspace definition WorkspaceData WorkspaceData element may have zero to many child DatasetData elements of type AnyDatasetData. Two XML types are derived from AnyDatasetData: TableData RasterDatasetData.

Workspace document composed of WorkspaceDefinition WorkspaceData Key terms Workspace, WorkspaceDefinition WorkspaceData Esri,2008 XML Schema of the Geodatabase, p. 5 http://downloads2.esri.com/support/whitepapers/ao_/xml_schema_of_geodatabase.pdf

TableData Key terms TableData DatasetName DatasetType Data Fields Records Consider the Recordset Tags (for record set document, slide 13) Esri,2008 XML Schema of the Geodatabase, p. 5 http://downloads2.esri.com/support/whitepapers/ao_/xml_schema_of_geodatabase.pdf

RasterDatasetData Consider the RasterData tag hierarchy StorageDef, File, Bytes Esri,2008 XML Schema of the Geodatabase, p. 6 http://downloads2.esri.com/support/whitepapers/ao_/xml_schema_of_geodatabase.pdf

3. What composes a RecordSet Document? The rows from a single feature class or table can be exported as simple features to a RecordSet Document. Features are exported as simple features, and no additional geodatabaserelated information is written to the output file. Exporting to a record set document is analogous to exporting to a shapefile. For example, complex edge features in a geometric network will be exported as simple features, and relationships to features in other tables will not be exported. Key terms Fields Records Esri,2008 XML Schema of the Geodatabase, p. 7 http://downloads2.esri.com/support/whitepapers/ao_/xml_schema_of_geodatabase.pdf

4. What composes a Data Changes Document? Data Changes Document contains edits. ArcGIS disconnected editing framework allows you to check out data from a database into a separate geodatabase, then edit the data without having a live connection to the parent database. Key terms Disconnected editing Check out data Check in data Once editing is done, it is possible to export only the changes (not all the data) to an XML file. This file can be used to subsequently check in data changes to the parent database. The root element of a data changes document is UpdateGram (see next graphic)

UpdateGram Key terms UpdateGram Esri,2008 XML Schema of the Geodatabase, p. 7 http://downloads2.esri.com/support/whitepapers/ao_/xml_s chema_of_geodatabase.pdf

XML Types in a Schema XML types are used to create the three kinds of XML documents - Workspace, RecordSet, and Data Changes - described earlier. DataElement Arrays DEDataset DEGeoDataset DEFeatureDataset DETable, DEFeatureClass, and DERasterCatalog Fields and Field Subtype DETopology DEGeometricNetwork Remember that a type has a set of operations defined for the type to create information for that type.

DataElement A set of ArcObjects classes originally added to ArcGIS 9. These objects describe all aspects of a dataset in a geodatabase. For example, the DataElement for a feature class captures the name, feature type, fields, indexes, subtypes, and other characteristics of a feature class through an inheritance hierarchy (slide 18). There are data elements for most geodatabase items. Key terms ArcObject classes Parent Types Abstract Types Remember All information that relates to a database schema is exported to XML as data elements (definitions and data). Shown in graphic (next slide) is part of the hierarchy of XML types that correspond to the data element ArcObjects. The generalization triangles (arrow heads) point to the parent types, and the names in italics denote abstract types.

5. What is a DataElement inheritance hierarchy? Child element inherits characteristics of parent element Esri,2008 XML Schema of the Geodatabase, p. 10 http://downloads2.esri.com/support/whitepapers/ao_/xml_schema_of_geodatabase.pdf

DENetworkDataset Abstract types of the Network Dataset NetworkDirections EdgeFeatureSources NetworkSourceDirections Shields StreetNameFields JunctionFeatureSources SystemJunctionSources TurnFeatureSources EvaluatedNetworkAttributes AttributeParameters NetworkAttributes NetworkAssignments

More abstract types DECadastralFabric DERepresentationClass DETerrain TerrainDataSources TerrainPyramidLevelZT TerrainPyramidLevelWindowSize Controllers and Memberships DERelationshipClass Index and Indexes DERasterDataset and DERasterBand DERasterCatalog DEToolbox RecordSet RasterData

6. What is geometry inheritance? Geometry inheritance hierarchy showing parent-child relationships of types. Parent above, child below. Esri,2008 XML Schema of the Geodatabase, p. 46 http://downloads2.esri.com/support/whitepapers/ao_/xml_schema_of_geodatabase.pdf

Geometry In feature classes, the shape field contains the geometry for each feature. Geometry Types: Point and Multipoint Envelope Segment, Line, CircularArc, and EllipticArc Path and Ring Polycurve, Polyline, and Polygon 3D Geometry XMLPersistedObject XmlPropertySet Complex geometry relies upon inheritance hierarchy. For specific details of all types, see XML Schema of Geodatabase, starting on page 44 of.pdf

Summary In this lesson, you learned about 1. Label tags for XML Schemas 2. Two components of a workspace document 3. Composition of a RecordSet Document 4. Composition of a Data Changes Document 5. Data element inheritance hierarchy 6. Geometry inheritance hierarchy

Contact me at nyerges@uw.edu if you have questions or comments about this lesson. GEOG 482/582: GIS Data Management END Lesson 7: XML Schemas