GISHydroNXT System Documentation
#*********************************************************************************
# Author: UMD
# Date: 24-07-2018
# Modified: n/a
# Classes: AreaOfInterest() ; DataSelectionFrame()
# Functions: n/a
# Modules: arcpy
# Comments: n/a
#*********************************************************************************
class AreaOfInterest(object):
"""Implementation for GISHydroNXT_addin.tool1 (Tool)"""
def __init__(self):
self.enabled = True
self.checked = False
self.cursor = 5
self.shape = "Rectangle"
def onRectangle(self, rectangle_geometry):
"""Initiated, when the rectangle is drawn and the mouse button is released.
The rectangle is an extent object. County quads will be visible in the startup mxd file as a reference, to draw conservative rectangle."""
# optfolder will be created once user select data of interest (moved under "Data of Interest" class)
arcpy.env.scratchWorkspace = scratchfolder
arcpy.env.workspace = optfolder
global extent
extent = rectangle_geometry
dlg1 = DataSelectionFrame()