예제 #1
0
    def test_accessors(self):
        projString = "+proj=utm +zone=11"

        cs = CSGeo()
        cs.inventory.crsString = projString
        cs.inventory.spaceDim = 2
        cs._configure()

        self.assertEqual(projString, cs.getString())
        self.assertEqual(2, cs.getSpaceDim())
예제 #2
0
 def test_constructor(self):
     cs = CSGeo()
     cs._configure()
     self.assertEqual(3, cs.getSpaceDim())