Add XY location to grass command interface
|Reported by:||wenzeslaus||Owned by:|
|Keywords:||init, grass.py, location, tmp-location, CRS, XY, CLI, gsoc2018||Cc:|
-c XY to create a generic Cartesian coordinate system to
grass command (compare options in the current CLI to wxGUI Location Wizard).
-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
-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).