Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Commit

Permalink
update for mercator points
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Jul 26, 2016
1 parent 03ef765 commit 2a5fe56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/create_points_json.py
Expand Up @@ -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)
Expand Down

0 comments on commit 2a5fe56

Please sign in to comment.