Python for ArcGIS Pro by Silas Toms Bill Parker
Author:Silas Toms, Bill Parker
Language: eng
Format: epub
Tags: COM043000 - COMPUTERS / Networking / General, COM051360 - COMPUTERS / Programming Languages / Python, COM005000 - COMPUTERS / Enterprise Applications / General
Publisher: Packt
Published: 2022-04-22T04:20:42+00:00
In the next cell, you will loop through the layers and use a conditional to test whether the layer isBroken. If a layer isBroken, you will print out the name and connectionProperties property for that layer. connectionProperties is a read-only property, so you cannot update it by writing new values to it; you have to use the updateConnectionProperties method for this.
Type in the following:
for layer in layers: if layer.isBroken is True: print(layer.name) print(layer.connectionProperties)
Run the cell. The results of the print statement are the name of the layer as a string and the connection properties as a dictionary:
UniqueStops_Summer21 {'dataset': 'UniqueStops_Summer21', 'workspace_factory': 'File Geodatabase', 'connection_info': {'database': 'C:\PythonBook\Chapter7_old\Chapter7\TransitData.gdb'}} Summer21RouteShape {'dataset': 'Summer21RouteShape', 'workspace_factory': 'File Geodatabase', 'connection_info': {'database': 'C:\PythonBook\Chapter7_old\Chapter7\TransitData.gdb'}}
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Exploring Deepfakes by Bryan Lyon and Matt Tora(7073)
Robo-Advisor with Python by Aki Ranin(6966)
Offensive Shellcode from Scratch by Rishalin Pillay(5760)
Ego Is the Enemy by Ryan Holiday(4815)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4392)
Microsoft 365 and SharePoint Online Cookbook by Gaurav Mahajan Sudeep Ghatak Nate Chamberlain Scott Brewster(4340)
Python for ArcGIS Pro by Silas Toms Bill Parker(3845)
Elevating React Web Development with Gatsby by Samuel Larsen-Disney(3539)
Machine Learning at Scale with H2O by Gregory Keys | David Whiting(3242)
Learning C# by Developing Games with Unity 2021 by Harrison Ferrone(3228)
Speed Up Your Python with Rust by Maxwell Flitton(3189)
Liar's Poker by Michael Lewis(3172)
OPNsense Beginner to Professional by Julio Cesar Bueno de Camargo(3160)
Extreme DAX by Michiel Rozema & Henk Vlootman(3135)
Agile Security Operations by Hinne Hettema(3092)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic and Jasmin Redzepagic(3082)
Essential Cryptography for JavaScript Developers by Alessandro Segala(3050)
Cryptography Algorithms by Massimo Bertaccini(2965)
AI-Powered Commerce by Andy Pandharikar & Frederik Bussler(2947)
