Skip to content

Commit

Permalink
Added tiny script for checking out places.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
migurski committed Feb 2, 2012
1 parent 84c9e57 commit 61a71c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions check-places.py
@@ -0,0 +1,8 @@
from sys import argv
from shapely import wkt

if __name__ == '__main__':
for (index, line) in enumerate(open(argv[1])):
name, geom = line.split('\t', 1)
geom = wkt.loads(geom)
print 'line', index + 1, '-', name, '%.3f' % geom.area

0 comments on commit 61a71c6

Please sign in to comment.