Changeset 3635


Ignore:
Timestamp:
17/03/08 17:01:25 (11 years ago)
Author:
spascoe
Message:

Updated test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/test/test_wms_gdal.py

    r3634 r3635  
    5555        self.ds = StaticDataSource(filename) 
    5656 
     57    def setupWarp(self): 
     58        layer = GDALLayer(self.ds) 
     59        sr = osr.SpatialReference() 
     60        sr.ImportFromEPSG(27700) 
     61        layer.warpCRS['EPSG:2770'] = sr.ExportToWkt() 
     62 
     63        return layer 
    5764 
    5865    def test1(self): 
     
    7279 
    7380    def test4(self): 
    74         layer = GDALLayer(self.ds) 
    75         sr = osr.SpatialReference() 
    76         sr.ImportFromEPSG(27700) 
    77         layer.warpCRS['EPSG:27700'] = sr.ExportToWkt() 
     81        layer = self.setupWarp() 
     82        assert layer.crss == ['EPSG:4326', 'EPSG:27700'] 
    7883 
    79         assert layer.crss == ['EPSG:4326', 'EPSG:27700'] 
     84    def test5(self): 
     85        layer = self.setupWarp() 
     86        slab = layer.getSlab('EPSG:27700') 
     87         
Note: See TracChangeset for help on using the changeset viewer.