Пример #1
0
	def run(self, text):
		if BackPath.is_valid():
			current_path = BackPath.get_end()
			destination_path = BackPath.get_start()
			if (current_path and destination_path):
				BackPath.set_start(current_path)
				BackPath.set_end(destination_path)
				ProjectFile.show(destination_path)
Пример #2
0
 def run(self, text):
     if BackPath.is_valid():
         current_path = BackPath.get_end()
         destination_path = BackPath.get_start()
         if (current_path and destination_path):
             BackPath.set_start(current_path)
             BackPath.set_end(destination_path)
             ProjectFile.show(destination_path)
Пример #3
0
def show_search_results(files):
	result = True
	if (0 == len(files)):
		result = False
	elif (1 == len(files)):
		ProjectFile.show(files[0])
		BackPath.set_end(files[0])
	else:
		show_files_in_quick_panel(files)
	return result
Пример #4
0
def show_search_results(files):
    result = True
    if (0 == len(files)):
        result = False
    elif (1 == len(files)):
        ProjectFile.show(files[0])
        BackPath.set_end(files[0])
    else:
        show_files_in_quick_panel(files)
    return result
Пример #5
0
def main():
    input = ComLine(sys.argv[1:])
    verts = FindVertices(input.args.points, input.args.streams,
                         input.args.code)
    print verts.vertices
    print verts.splits
    lines = FindLines(verts.vertices, verts.splits, input.args.code)
    exNodes = ExportTable(verts.vertices, "nodes.txt")
    exNodes.export(input.args.code)
    exBranches = ExportTable(verts.splits, "branches.txt")
    exBranches.export(input.args.code)

    #project the files into UTM Zone 12N - files must be in projected coordinate system for calculating stream length
    #need to add a command line option for changing the projection
    projection = "NAD 1983 UTM Zone 12N"
    prStreams = ProjectFile(verts.splits, projection)
    proj_streams = prStreams.define_projection()
    prSites = ProjectFile(input.args.points, projection)
    proj_sites = prSites.define_projection()

    #calculate stream distance
    dist_streams = CalculateDistance(proj_streams)
    dist_streams.calcdist()
Пример #6
0
def select_file(files, index):
	if index > -1 and len(files) > index:
		path = files[index]
		ProjectFile.show(path)
		BackPath.set_end(path)
Пример #7
0
def select_file(files, index):
    if index > -1 and len(files) > index:
        path = files[index]
        ProjectFile.show(path)
        BackPath.set_end(path)