-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
ArcGIS Blueprints
By :
Efficient search and rescue operations will require that groups of personnel be assigned to specific areas. In this section, we'll create a tool that will allow Search and Rescue analysts to sketch polygon features that represent specific areas that will then be assigned to search groups. The following steps will help you to create Search Sector tool:
Close ArcMap if required.
In Windows Explorer, return to the working directory that stores the Python add-in for this project and open the addin_addin.py file from the Install folder in your Python development environment.
Find the SearchSector class and remove all the methods with the exception of the __init__ and onLine() methods.
In the __init__ method, set the self.shape property to LINE, as shown here, along with a cursor type:
self.shape = "LINE" self.cursor = 3
In the onLine() method, set the workspace environment variable:
def onLine(self, line_geometry):
arcpy.env.workspace = "C:\ArcGIS_Blueprint_Python...
Change the font size
Change margin width
Change background colour