Opened 6 years ago
Closed 6 years ago
#3586 closed enhancement (fixed)
Add XY location to grass command interface
Reported by: | wenzeslaus | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | 7.6.0 |
Component: | Startup | Version: | svn-trunk |
Keywords: | init, grass.py, location, tmp-location, CRS, XY, CLI, gsoc2018 | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
Add -c XY
to create a generic Cartesian coordinate system to grass
command (compare options in the current CLI to wxGUI Location Wizard).
The current --help
lists -c
(with nothing) as a valid syntax which is useful for creating new mapset (as opposed to new location) and it was already there for grass6
.
--tmp-location
with -c
(with nothing) now actually creates XY location, but that's more a side effect than an intention. Being explicit and require XY
seems much safer.
Usage would look like:
Usage: grass75 [-h | -help | --help | --h] [-v | --version] [-c | -c geofile | -c EPSG:code[:datum_trans] | -c XY] [-e] [-f] [-text | -gtext | -gui] [--config param] [[[GISDBASE/]LOCATION_NAME/]MAPSET] grass75 [FLAG]... GISDBASE/LOCATION_NAME/MAPSET --exec EXECUTABLE [EPARAM]... grass75 -c [geofile | EPSG | XY] --tmp-location --exec EXECUTABLE [EPARAM]...
This is not limited to -c
only but potentially influences also --tmp-location
which may or may not require -c
(see #3585).
Because of how --tmp-location
now works, this would change the interface, hence blocker for 7.6 (it should be resolved before release to keep the interface clean).
Explicit is always better than implicit, so +1.