aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2023-09-28 00:41:50 +0200
committerGuilhem Moulin <guilhem@fripost.org>2023-09-28 00:45:21 +0200
commit81ecbdda93fa55401a5c3aa9d9d3dea5ccf96248 (patch)
tree8afde786c8dec80a727dc8f9a517ee3b11816e9e
parent9113d206d35a3f74733e1cbc216037ff8907ad0a (diff)
Improve formatting.
-rwxr-xr-xgis-observation-map24
1 files changed, 16 insertions, 8 deletions
diff --git a/gis-observation-map b/gis-observation-map
index 196fea1..41af068 100755
--- a/gis-observation-map
+++ b/gis-observation-map
@@ -70,14 +70,22 @@ parser = argparse.ArgumentParser(
usage='''%(prog)s --project-home=DIR --project-name=NAME {--geometry=FILE|--point=X,Y} ...
%(prog)s {--geometry=FILE|--point=X,Y} ...'''
)
-parser.add_argument('--margin', type=int, help='Margin (in meters) from geometry envelopes')
-parser.add_argument('--topo-basedir', default=config['QGIS']['topo-basedir'], type=ePath, help='Base directory for "Topografi 10", "Topografi 50", etc.')
-parser.add_argument('--project-name', help='Project filename (and title)')
-parser.add_argument('--project-home', type=ePath, help='Project home directory')
-parser.add_argument('--geometry', nargs='*', default=[], type=ePath, help='Geometry filename(s)')
-parser.add_argument('--point', nargs='*', metavar='X,Y', default=[], help=f'Coordinates of interest (in {target_srs.GetName()})')
-parser.add_argument('--observation-format', default='GPKG', help='Format for the observation file (default: %(default)s)')
-parser.add_argument('--style', default=config['QGIS']['style'], type=ePath, help='QGIS Layer Style File (*.qml) to apply to the observation layer (default: %(default)s)')
+parser.add_argument('--margin', type=int,
+ help='Margin (in meters) from geometry envelopes')
+parser.add_argument('--topo-basedir', default=config['QGIS']['topo-basedir'], type=ePath,
+ help='Base directory for "Topografi 10", "Topografi 50", etc.')
+parser.add_argument('--project-name',
+ help='Project filename (and title)')
+parser.add_argument('--project-home', type=ePath,
+ help='Project home directory')
+parser.add_argument('--geometry', nargs='*', default=[], type=ePath,
+ help='Geometry filename(s)')
+parser.add_argument('--point', nargs='*', metavar='X,Y', default=[],
+ help=f'Coordinates of interest (in {target_srs.GetName()})')
+parser.add_argument('--observation-format', default='GPKG',
+ help='Format for the observation file (default: %(default)s)')
+parser.add_argument('--style', default=config['QGIS']['style'], type=ePath,
+ help='QGIS Layer Style File (*.qml) to apply to the observation layer (default: %(default)s)')
args = parser.parse_args()