geodatabase: automating your geodata schema with …€¦ · python demos. summary. hosted feature...
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/1.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/2.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/3.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/4.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/5.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/6.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/7.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/8.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/9.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/10.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/11.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/12.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/13.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/14.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/15.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/16.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022011919/60132b5facc6b868237576c6/html5/thumbnails/17.jpg)
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”