Programming ArcGIS with Python Cookbook Second Edition by 2015

Programming ArcGIS with Python Cookbook Second Edition by 2015

Author:2015
Language: eng
Format: mobi, epub
Publisher: Packt Publishing


The functionality of the Make Table View tool is equivalent to the Make Feature Layer tool. The difference is that it works against standalone tables instead of feature classes.

Remove the following line of code:flayer = arcpy.MakeFeatureLayer_management("Burglary","Burglary_Layer")

Add the following line of code in its place:tView = arcpy.MakeTableView_management("Crime2009Table","Crime2009TView")

You can check your work by examining the c:\ArcpyBook\code\Ch7\CreateTableView.py solution file.

Run the script to see the table view added to the ArcMap table of contents.



Download



Copyright Disclaimer:
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.