Permalink
Browse files

Added tiny script for checking out places.txt

  • Loading branch information...
migurski committed Feb 2, 2012
1 parent 84c9e57 commit 61a71c61e98fb5ea342dc3e16c45612e26b9134e
Showing with 8 additions and 0 deletions.
  1. +8 −0 check-places.py
View
@@ -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.