Skip to content

Commit

Permalink
change phyghtmap occurences to pyhgtmap in coding
Browse files Browse the repository at this point in the history
- todo: remove documentation about installing phyghtmap
  • Loading branch information
treee111 committed Nov 20, 2023
1 parent 46bc0ff commit dad7184
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions wahoomc/osm_maps_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ def generate_elevation(self, use_srtm1):
or self.o_osm_data.force_processing is True:
self.log_tile_info(tile["x"], tile["y"], tile_count)
timings_tile = Timings()
cmd = ['phyghtmap']
# TODO: remove chapter wahooMapsCreator/docs/QUICKSTART_ANACONDA.md#additional-programs-for-generating-contour-lines
# when switching to pyhgtmap
cmd = ['pyhgtmap']
cmd.append('-a ' + f'{tile["left"]}' + ':' + f'{tile["bottom"]}' +
':' + f'{tile["right"]}' + ':' + f'{tile["top"]}')
cmd.extend(['-o', f'{out_file_elevation}', '-s 10', '-c 100,50', elevation_source,
Expand All @@ -355,7 +357,7 @@ def generate_elevation(self, use_srtm1):
cmd.append('--earthexplorer-password=' + password)

run_subprocess_and_log_output(
cmd, f'! Error in phyghtmap with tile: {tile["x"]},{tile["y"]}. Win_macOS/elevation')
cmd, f'! Error in pyhgtmap with tile: {tile["x"]},{tile["y"]}. Win_macOS/elevation')
self.log_tile_debug(tile["x"], tile["y"], tile_count, timings_tile.stop_and_return())

tile_count += 1
Expand Down
6 changes: 4 additions & 2 deletions wahoomc/setup_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ def check_installation_of_programs_credentials_for_contour_lines():
\nPlease refer to the Quickstart Guide of wahooMapsCreator for instructions:\n- https://github.com/treee111/wahooMapsCreator/blob/develop/docs/QUICKSTART_ANACONDA.md#additional-programs-for-generating-contour-lines \
\nor create an issue:\n- https://github.com/treee111/wahooMapsCreator/issues"

if not is_program_installed("phyghtmap"):
# TODO: remove chapter wahooMapsCreator/docs/QUICKSTART_ANACONDA.md#additional-programs-for-generating-contour-lines
# when switching to pyhgtmap
if not is_program_installed("pyhgtmap"):
sys.exit(
f"phyghtmap is not installed. {text_to_docu}")
f"pyhgtmap is not installed. {text_to_docu}")

username, password = read_earthexplorer_credentials()

Expand Down

0 comments on commit dad7184

Please sign in to comment.