aboutsummaryrefslogtreecommitdiffstats
path: root/gis-observation-map
diff options
context:
space:
mode:
Diffstat (limited to 'gis-observation-map')
-rwxr-xr-xgis-observation-map8
1 files changed, 4 insertions, 4 deletions
diff --git a/gis-observation-map b/gis-observation-map
index 5821652..8153c9f 100755
--- a/gis-observation-map
+++ b/gis-observation-map
@@ -78,8 +78,8 @@ class geometryAction(argparse.Action):
parser = argparse.ArgumentParser(
description='Create a QGIS project with observations from Artdatabanken.',
prog = programName,
- usage='''%(prog)s --project-home=DIR --project-name=NAME {--geometry=FILE|--point=X,Y} ...
- %(prog)s --observation-file=NAME {--geometry=FILE|--point=X,Y} ...'''
+ usage='''%(prog)s --project-home=DIR --project-name=NAME {--geometry=FILE|--point=Y,X} ...
+ %(prog)s --observation-file=NAME {--geometry=FILE|--point=Y,X} ...'''
)
parser.add_argument('--project-home', type=ePath, metavar='DIRECTORY',
help='Project home directory')
@@ -92,7 +92,7 @@ parser_geom.add_argument('--geometry-style', type=ePath, dest='geometry_style',
help='QGIS Layer Style File (*.qml) to apply to subsequent geometry files')
parser_geom.add_argument('--geometry', nargs='*', default=[], type=ePath, metavar='GEOMETRY_FILE', action=geometryAction,
help='Geometry file of interest')
-parser_geom.add_argument('--point', nargs='*', metavar='X,Y', default=[],
+parser_geom.add_argument('--point', nargs='*', metavar='Y,X', default=[],
help=f'Coordinates of interest (in {target_srs.GetName()})')
parser_geom.add_argument('--margin', metavar='N', type=int,
help='Margin (in meters) around geometry envelopes')
@@ -276,7 +276,7 @@ def find_qlr(basedir):
geometries = []
for pt in args.point:
- x, y = pt.split(',', 1)
+ y, x = pt.split(',', 1)
x = int(x)
y = int(y)