Ignore:
Timestamp:
Jun 5, 2006, 12:03:41 PM (18 years ago)
Author:
ole
Message:

Made boundary polygon return absolute UTM coordinates as per ticket:81

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/test_mesh.py

    r3057 r3072  
    944944                        'FAILED!')
    945945
    946     def FIXME_test_mesh_get_boundary_polygon_with_georeferencing(self):
     946    def test_mesh_get_boundary_polygon_with_georeferencing(self):
    947947     
    948948        # test
     
    957957
    958958        relative_points = geo.change_points_geo_ref(absolute_points)
    959         #relative_points = absolute_points #uncomment to make test pass!
     959
     960        #print 'Relative', relative_points
     961        #print 'Absolute', absolute_points       
     962
    960963        mesh = Mesh(relative_points, vertices, geo_reference=geo)
    961964        boundary_polygon = mesh.get_boundary_polygon()
     965
    962966        assert allclose(absolute_points, boundary_polygon)
     967       
    963968#-------------------------------------------------------------
    964969if __name__ == "__main__":
    965     #suite = unittest.makeSuite(Test_Mesh,'test_boundary_polygon')
     970    #suite = unittest.makeSuite(Test_Mesh,'test_mesh_get_boundary_polygon_with_georeferencing')
    966971    suite = unittest.makeSuite(Test_Mesh,'test')
    967972    runner = unittest.TextTestRunner()
Note: See TracChangeset for help on using the changeset viewer.