AGENDA Effective Geodatabase Management Presentation Title Using Automation Mohsen Kamal Name of Speaker Company Name
Agenda Introducing the geodatabase What is a Schema? Schema Creation Options Geoprocessing Automation Model builder Python What is New in 10.1
Geodatabase Core ArcGIS Data model A comprehensive model for representing and managing GIS data A physical store of geographic data. A transactional model for managing GIS workflows.
What s in a geodatabase? GIS behavior Rules Tools Elements Single-user Geodatabase Multiuser
Geodatabase functionality Single-user Subtypes Attribute domains Default attribute values Multiuser Attachments Topology Relationship classes
What is schema?
Photo credit aius Source: flickr.com
Schema Information collected to meet business needs It tells your story Real world things that you want to understand
Geodatabase Schema represents the Feature classes Tables Relationship classes Topology Geometric networks Network datasets Terrains Domains Subtypes real world
Geodatabase Elements Geodatabase Feature dataset Spatial reference Feature classes Polygon Line Point Annotation Relationship classes Route Dimension Representations Tables Raster datasets Raster catalogs Behavior Connectivity rules Relationship rules Topology rules Toolboxes Attribute defaults Attribute domains Geometric networks Topology Network datasets Tool Model Script Additional geodatabase elements Survey datasets Terrain datasets Schematics
Geodatabase Schema Creation Options
Creating and modifying geodatabase schema Lots of options: ArcMap/ArcCatalog wizards Templates (data models) UML XML workspaces Geoprocessing
Creating and modifying geodatabase schema Lots of options: ArcMap/ArcCatalog wizards Templates (data models) UML XML workspaces Geoprocessing
ArcCatalog wizards ArcCatalog Templates UML XML Geoprocessing Pro: Create any supported dataset type Modify schema in place Familiar environment Con: Non-repeatable No scheduling No documentation
Demo : ArcMap/ArcCatalog Wizards
Templates ArcCatalog Templates UML XML Geoprocessing Pro: Design work has been done by industry experts Well documented Map & Apps samples Cons: Generic Need to customize? Not available for every use case/industry
Demo : Using Templates
UML ArcCatalog Templates UML XML Geoprocessing Pro: Documentation Visualization May be required to share with other (non-gis) departments Con: Does not support all data types
Demo : Using UML
XML ArcCatalog Templates UML XML Geoprocessing Really just an interchange format. Not useful for modification or creation from scratch
Demo : Using XML
Geoprocessing ArcCatalog Templates UML XML Geoprocessing Pros: GIS pro s are comfortable with Geoprocessing One environment for creation, loading, analysis Customizable/flexible Cons: Limited diagramming Difficult to share with non GIS
What is Geoprocessing? The ArcGIS system for managing and manipulating data Based on a framework of data transformation Solve real-world spatial problems Model processes and systems Ask questions; get results
The Geoprocessing Language Toolboxes Tools
The Geoprocessing Framework Search Tools ModelBuilder Python Window Scripts
Finding Tools Catalog Search ArcToolbox Geoprocessing Menu
Geodatabase Tools Schema creation tools in the Data Management toolset. Many tools to create geodatabase objects
Ways to use tools System tools Perform a specific task Model tools and Script tools Perform a group of tasks over and over Utilize like system tools
What is ModelBuilder? Tool for encapsulating workflows Reusable Sharable Why use ModelBuilder? Automate and manage geoprocessing workflows Run complex succession of processes as one tool Plug in additional tools and parameters as needed See a visual representation of analysis operations
Creating a New Model ModelBuilder button ArcMap Standard toolbar - Launches ModelBuilder with a new, unsaved model Inside a Custom toolbox - Right-click > New Model ModelBuilder button ArcMap Geoprocessing Menu - Launches ModelBuilder with a new, unsaved model
Model Properties Name Cannot have spaces Label How it appears in ArcToolbox Can include spaces Description Detailed information about the model Good practice when sharing Relative Path Good practice when sharing Open Model > Model Menu > Model Properties
Model Elements Three types of elements: Variables Tools Connectors
Running a Model as a Tool Double-click tool or Right-click > Open a model from its toolbox opens the model tool dialog These ARE models: No parameters; click OK to run Parameters; populate required, click OK
Parameters Table Location Create Table Output Table P Parameter Model Parameters name becomes will have the a parameter P next label on to the them tool dialog Table Name Model Parameters will have a P next to them
Demo : Geoprocessing Framework Creating Models
Python and Geodatabases Python Is the programming language for Geoprocessing. ArcPy site package is used to access Geoprocessing functionality.
Things you need to know Familiar with using Python for geoprocessing Arcpy, Python lists, looping, string manipulation, data types. Familiar with Enterprise geodatabase concepts Versions, replicas, connection files, data ownership.
Where Python Can Help? Create users and roles Change privileges Create versions Reconcile versions Post versions Delete versions Create replicas Synchronize replicas Unregister as versioned Register as versioned Compress database Email notifications
Scheduling your script to run Using Windows task scheduler you can automate when your script will be run. This is especially useful for tasks that need to be run on a regular basis.
Demo : Using Python Script
New at ArcGIS 10.1
New at ArcGIS 10.1 Tools: Create Enterprise Geodatabase Create Geometric Network Enable Attachments Create Database View Add topology rules to versioned data Create Versioned View Sort Coded Value Domain
What s new at 10.1 (Cont.) Tools: Analyze Datasets Rebuild Indexes Reconcile Versions Python functions: ListVersions ListReplicas ListUsers (lists connected users) DisconnectUsers Describe will return the current release of a geodatabase
Esri Training for Desktop Developers Instructor-Led Courses Introduction to Geoprocessing Scripts Using Python Programming ArcGIS Desktop Using Add-Ins Web Course Using Python in ArcGIS Desktop 10
QUESTIONS?