From da71214f19837a02f5b37506d6298d2e2bb85306 Mon Sep 17 00:00:00 2001 From: shaunwbell Date: Thu, 14 Nov 2024 10:23:18 -0800 Subject: [PATCH] Update SQL2GEOJSON_moorings.py --- tools/SQL2GEOJSON_moorings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/SQL2GEOJSON_moorings.py b/tools/SQL2GEOJSON_moorings.py index c703479..2e87970 100644 --- a/tools/SQL2GEOJSON_moorings.py +++ b/tools/SQL2GEOJSON_moorings.py @@ -102,7 +102,7 @@ """{{"type": "Feature","geometry": {{"type": "Point","coordinates": [{1},{0}]}}, "properties": {{"MooringID":"{2}" }}}}""" ).format(mooring_lat[k], mooring_lon[k], list(mooringid)[k]) - if k + 1 != len(mooring_lat): + if k != len(mooring_lat): geojson_point_coords = geojson_point_coords + ", " geojson_tail = "]\n" "}\n"