geodatabase: automating your geodata schema with …€¦ · python demos. summary. hosted feature...

17
Geodatabase: Automating Your Geodata Schema with Geoprocessing Jillian Penney

Upload: others

Post on 27-Sep-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Geodatabase: Automating Your Geodata

Schema with GeoprocessingJillian Penney

Page 2: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Assumptions

• Geodatabase fundamentals

• Experience with geoprocessing (GP) and Python

• Need to create new data or modify deployed data

• Please hold questions until the end of the session

• There will be a link at the end to download code

Page 3: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Overview

• Schema creation

• Modifying deployed data

Page 4: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Benefits of Using Geoprocessing

• No recreating schema or reloading data

• Schedule changes to take place at appropriate time

• Change documentation

Page 5: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

What tools should I use?

• Look in the Data Management toolbox

• Many tools to create and modify

geodatabase items

Page 6: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Using Python

• Cross-platform

• Programming logic

- Custom validation

• Modular

• Scheduling

• Free

Utilizing Python scripts and arcpy

Page 7: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Getting started…

Requirements

Prototype

Requirements

Prototype

Deployment

Page 8: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Create Schema Demo

• Add fields

• Add domain and subtypes

• Add contingent values

• Add an attribute rule

• Ready to edit and deploy

Creating new schema with GP

Page 9: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Modify Schema Demo

• Modifying data that has been deployed

• Use GP to plan your changes

• Minimize downtime

- Feature Services by reference

- Also applicable for Desktop editing

- Schedule to run at preferred time

Rolling out schema changes using GP

Page 10: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Create & modify geodatabase schema

Python Demos

Page 11: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Summary

Page 12: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Hosted feature layer considerations

• Add & delete fields – you can use GP in Pro!

• Enable attachments

• Add Domains

Page 13: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Hosted feature layer considerations

• Coded value domain • Range domain

Page 14: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Other considerations

• Ability to run models in Python using arcpy.AddToolbox()

• Ability to manage connections to enterprise geodatabase

- arcpy.AcceptConnections()

- arcpy.ListUsers()

- arcpy.DisconnectUser()

• Use a task scheduler to run scripts overnight

- Windows Task Scheduler

- Linux cron job

Page 15: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Summary

• Lots of functionality available via Geoprocessing

• Use where most comfortable

• Geoprocessing pane

• ModelBuilder

• Python

• Easy way to document schema creation and modifications

• Minimize downtime

Page 16: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Other sessions

• Esri Best Practices:

Implementing an Enterprise

Geodatabase

• Enterprise Geodatabase:

Automating Administration Tasks

Using Python

• Geodatabase: Setting Up Your

Geodata Schema in ArcGIS Pro

• Geodatabase: Ensuring Data

Quality with Attribute Rules and

Contingent Values

WORKSHOP LOCATION

• SDCC - Room 31 A

• SDCC – Expo Demo Theater 4

• SDCC – Expo Demo Theater 4

• SDCC – Ballroom 06 E

TIME FRAME

• Wednesday 2:30-3:30 pm

• Wednesday 4-4:45 pm

• Thursday 10-10:45 am

• Thursday 12:15-1 pm

• Thursday 4-5 pm

Page 17: Geodatabase: Automating Your Geodata Schema with …€¦ · Python Demos. Summary. Hosted feature layer considerations •Add & delete fields –you can use GP in Pro! •Enable

Please Share Your Feedback in the App

Download the Esri

Events app and find

your event

Select the session

you attended

Scroll down to

“Survey”

Log in to access the

survey

Complete the survey

and select “Submit”