/[thuban]/branches/WIP-pyshapelib-bramz/test/test_layer.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/test/test_layer.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2587 by jonathan, Wed Mar 23 15:30:27 2005 UTC revision 2644 by bh, Tue Jul 5 16:30:51 2005 UTC
# Line 1  Line 1 
1  # Copyright (c) 2002, 2003, 2004 by Intevation GmbH  # Copyright (c) 2002, 2003, 2004, 2005 by Intevation GmbH
2  # Authors:  # Authors:
3  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
4  #  #
# Line 191  class TestLayer(unittest.TestCase, suppo Line 191  class TestLayer(unittest.TestCase, suppo
191          self.assertFloatSeqEqual(layer.ShapesBoundingBox([0]),          self.assertFloatSeqEqual(layer.ShapesBoundingBox([0]),
192                                   (90.0, -8.90043373, 120, 11.1616263))                                   (90.0, -8.90043373, 120, 11.1616263))
193    
194          self.assertFloatSeqEqual(layer.ClipBoundingBox((-180, -6, 100, +120)),          # Test a very large bounding box in the query.  Naive inverse
195                                   (90.0, -6, 100, 11.1616263))          # projection will create infs instead of proper coordinate
196            # values and a different result (an empty list instead of [0])
197          shapes = layer.ShapesInRegion((-180, -170, 200, +120))          shapes = layer.ShapesInRegion((-180, -170, 200, +120))
198          self.assertEquals([s.ShapeID() for s in shapes],[0])          self.assertEquals([s.ShapeID() for s in shapes],[0])
199    

Legend:
Removed from v.2587  
changed lines
  Added in v.2644

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26