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.
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(4131)
Ego Is the Enemy by Ryan Holiday(3993)
Offensive Shellcode from Scratch by Rishalin Pillay(3681)
Exploring Deepfakes by Bryan Lyon and Matt Tora(3274)
Robo-Advisor with Python by Aki Ranin(3057)
Learning C# by Developing Games with Unity 2021 by Harrison Ferrone(2876)
Speed Up Your Python with Rust by Maxwell Flitton(2853)
Liar's Poker by Michael Lewis(2812)
Agile Security Operations by Hinne Hettema(2807)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic and Jasmin Redzepagic(2807)
OPNsense Beginner to Professional by Julio Cesar Bueno de Camargo(2806)
Extreme DAX by Michiel Rozema & Henk Vlootman(2791)
Essential Cryptography for JavaScript Developers by Alessandro Segala(2743)
Elevating React Web Development with Gatsby by Samuel Larsen-Disney(2735)
Python for ArcGIS Pro by Silas Toms Bill Parker(2648)
AI-Powered Commerce by Andy Pandharikar & Frederik Bussler(2643)
Incident Response Techniques for Ransomware Attacks by Oleg Skulkin(2630)
Cryptography Algorithms by Massimo Bertaccini(2628)
Distributed .NET with Microsoft Orleans by Bhupesh Guptha Muthiyalu Suneel Kumar Kunani(2628)