silke: thuban/test test_layer.py,1.30,1.31

cvs@intevation.de cvs at intevation.de
Fri Aug 20 18:59:23 CEST 2004


Author: silke

Update of /thubanrepository/thuban/test
In directory doto:/tmp/cvs-serv382/test

Modified Files:
	test_layer.py 
Log Message:
Fix bug in projection handling of layers

Index: test_layer.py
===================================================================
RCS file: /thubanrepository/thuban/test/test_layer.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- test_layer.py	3 Jun 2004 15:18:07 -0000	1.30
+++ test_layer.py	20 Aug 2004 16:59:21 -0000	1.31
@@ -190,6 +190,12 @@
         self.assertFloatSeqEqual(layer.ShapesBoundingBox([0]),
                                  (90.0, -8.90043373, 120, 11.1616263))
 
+        self.assertFloatSeqEqual(layer.ClipBoundingBox((-180, -6, 100, +120)),
+				(90.0, -6, 100, 11.1616263))
+        shapes = layer.ShapesInRegion((-180, -170, 200, +120))
+        print "Shapes", shapes
+        self.assertEquals([s.ShapeID() for s in shapes],[0])
+
     def test_empty_layer(self):
         """Test Layer with empty shape file"""
         # create an empty shape file





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)