From 2a5fe564db5fdb268138eb9c3f5e354ed2c4a0a4 Mon Sep 17 00:00:00 2001 From: steveoh Date: Tue, 26 Jul 2016 16:29:20 -0600 Subject: [PATCH] update for mercator points --- scripts/create_points_json.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/create_points_json.py b/scripts/create_points_json.py index 2bf7517..16765b9 100644 --- a/scripts/create_points_json.py +++ b/scripts/create_points_json.py @@ -16,9 +16,9 @@ with open(file, 'w') as f: with SearchCursor(table, ['OID@', 'SHAPE@XY']) as cursor: for row in cursor: - if row[1][0] > 0 and row[1][1] > 0: - x = round(row[1][0], 2) - y = round(row[1][1], 2) + if row[1][0] is not None and row[1][1] is not None: + x = int(row[1][0]) + y = int(row[1][1]) point = [row[0], x, y] dict['points'].append(point)