diff options
-rwxr-xr-x | gis-observation-map | 4 |
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() |