/[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 2229 by bh, Thu Jun 3 15:18:07 2004 UTC revision 2339 by silke, Fri Aug 20 16:59:21 2004 UTC
# Line 190  class TestLayer(unittest.TestCase, suppo Line 190  class TestLayer(unittest.TestCase, suppo
190          self.assertFloatSeqEqual(layer.ShapesBoundingBox([0]),          self.assertFloatSeqEqual(layer.ShapesBoundingBox([0]),
191                                   (90.0, -8.90043373, 120, 11.1616263))                                   (90.0, -8.90043373, 120, 11.1616263))
192    
193            self.assertFloatSeqEqual(layer.ClipBoundingBox((-180, -6, 100, +120)),
194                                    (90.0, -6, 100, 11.1616263))
195            shapes = layer.ShapesInRegion((-180, -170, 200, +120))
196            print "Shapes", shapes
197            self.assertEquals([s.ShapeID() for s in shapes],[0])
198    
199      def test_empty_layer(self):      def test_empty_layer(self):
200          """Test Layer with empty shape file"""          """Test Layer with empty shape file"""
201          # create an empty shape file          # create an empty shape file

Legend:
Removed from v.2229  
changed lines
  Added in v.2339

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26