Permalink
Browse files

mapnik-speed-check: ensure the bbox arg is set properly

  • Loading branch information...
Dane Springmeyer
Dane Springmeyer committed Mar 9, 2012
1 parent 302b7f1 commit ba9c6dd22022d22b83c41de16d0e7818ba65a9de
Showing with 5 additions and 4 deletions.
  1. +5 −4 utils/performance/mapnik-speed-check
@@ -39,6 +39,11 @@ def f_(set):
if __name__=='__main__':
# if passed, set up bbox
+
+ #test_ = "load()"
+ test_ = "render()"
+ init(stylesheet)
+
if len(sys.argv) == 4:
bbox = sys.argv[3]
if ',' in bbox:
@@ -47,10 +52,6 @@ if __name__=='__main__':
parts = bbox.split(' ')
env = mapnik.Box2d(*map(float,parts))
m.zoom_to_box(env)
-
- #test_ = "load()"
- test_ = "render()"
- init(stylesheet)
# load once - making sure mmap'd shapefiles are loaded
eval(test_)

0 comments on commit ba9c6dd

Please sign in to comment.