calculate_distance
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| calculate_distance [2023/04/21 13:45] – irladmin | calculate_distance [2023/04/21 13:48] (current) – irladmin | ||
|---|---|---|---|
| Line 51: | Line 51: | ||
| | | ||
| if (len(road_list) == 0): | if (len(road_list) == 0): | ||
| - | print " | + | print(" |
| return None | return None | ||
| | | ||
| Line 65: | Line 65: | ||
| node_road = getNodeByName(nodes_data, | node_road = getNodeByName(nodes_data, | ||
| if (not node_road): | if (not node_road): | ||
| - | print SCRIPT_NAME, | + | print(SCRIPT_NAME, |
| return [] | return [] | ||
| | | ||
| Line 73: | Line 73: | ||
| pixelsize = dataset.GetGeoTransform()[1] | pixelsize = dataset.GetGeoTransform()[1] | ||
| | | ||
| - | print SCRIPT_NAME, | + | print(SCRIPT_NAME, |
| | | ||
| road_cells = []; | road_cells = []; | ||
| Line 82: | Line 82: | ||
| road_cells.append(cell); | road_cells.append(cell); | ||
| - | print SCRIPT_NAME, | + | print(SCRIPT_NAME, |
| | | ||
| distances=[] | distances=[] | ||
| Line 104: | Line 104: | ||
| | | ||
| for i in range(CELLS_PRINTING): | for i in range(CELLS_PRINTING): | ||
| - | print SCRIPT_NAME, | + | print(SCRIPT_NAME, |
| | | ||
| | | ||
calculate_distance.1682084738.txt.gz · Last modified: 2023/04/21 13:45 by irladmin