Skip to content

Comments

i.ortho.target: Rename location and mapset options to target#3131

Merged
petrasovaa merged 5 commits intoOSGeo:mainfrom
wenzeslaus:i_ortho_location_project_renames
Mar 22, 2024
Merged

i.ortho.target: Rename location and mapset options to target#3131
petrasovaa merged 5 commits intoOSGeo:mainfrom
wenzeslaus:i_ortho_location_project_renames

Conversation

@wenzeslaus
Copy link
Member

i.ortho.target has option target_location and mapset_location. This renames them to target_project and target_mapset, so the new names are consistent. While mapsets are in locations (projects), there seems to be no reason for the word location in mapset_location because it is G_OPT_M_MAPSET.

This also includes change for g.gui.image2target which uses G_OPT_M_LOCATION with a custom name target_location, now renamed target_project. Both old and new names are consistent with target_project in i.ortho.target.

i.ortho.target has option target_location and mapset_location. This renames them to target_project and target_mapset, so the new names are consistent. While mapsets are in locations (projects), there seems to be no reason for the word location in mapset_location because it is G_OPT_M_MAPSET.

This also includes change for g.gui.image2target which uses G_OPT_M_LOCATION with a custom name target_location, now renamed target_project. Both old and new names are consistent with target_project in i.ortho.target.
@wenzeslaus wenzeslaus added enhancement New feature or request Python Related code is in Python C Related code is in C labels Aug 17, 2023
@wenzeslaus wenzeslaus added this to the 8.4.0 milestone Aug 17, 2023
@wenzeslaus wenzeslaus mentioned this pull request Aug 18, 2023
6 tasks
Copy link
Contributor

@cmbarton cmbarton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency with my suggestion for #2993, I again suggest that the word "Project" be capitalized in the label and description. It does not need to be capitalized in the key (i.e., command argument)

Copy link
Contributor

@petrasovaa petrasovaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The manual pages contain "location" as well.

@github-actions github-actions bot added HTML Related code is in HTML docs labels Mar 22, 2024
petrasovaa
petrasovaa previously approved these changes Mar 22, 2024
@petrasovaa petrasovaa enabled auto-merge (squash) March 22, 2024 17:48
@petrasovaa petrasovaa merged commit cb37ba7 into OSGeo:main Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C Related code is in C docs enhancement New feature or request GUI wxGUI related HTML Related code is in HTML imagery libraries module Python Related code is in Python

Development

Successfully merging this pull request may close these issues.

3 participants