aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2023-09-28 04:08:30 +0200
committerGuilhem Moulin <guilhem@fripost.org>2023-09-28 12:33:07 +0200
commit2f090cc384318068987d07b66e2764d4ffb22cf4 (patch)
tree7a5d53ae7de13d21dc8d1df3e960ab2aa10d5eac
parent7e07889c392ddc4bdeb296c4271363fb99fdae7f (diff)
Replace double quotes with single quotes.
-rwxr-xr-xgis-observation-map4
1 files changed, 2 insertions, 2 deletions
diff --git a/gis-observation-map b/gis-observation-map
index dad58a9..0d26ce0 100755
--- a/gis-observation-map
+++ b/gis-observation-map
@@ -141,7 +141,7 @@ if len(args.geometry) == 0 and len(args.point) == 0:
parser.print_usage()
exit(1)
if len(args.point) > 0 and (args.margin is None or args.margin <= 0):
- parser.error("--point requires positive --margin")
+ parser.error('--point requires positive --margin')
for k in ['since', 'until']:
v = getattr(args, k, None)
@@ -226,7 +226,7 @@ def idx_intersects(idx_path, geometries):
layer = ds.GetLayer()
source_srs = layer.GetSpatialRef()
transform_srs = osr.CoordinateTransformation(source_srs, target_srs)
- locFieldIdx = layer.FindFieldIndex("location", True)
+ locFieldIdx = layer.FindFieldIndex('location', True)
locations = []
feature = layer.GetNextFeature()