jonathan: thuban/test test_baserenderer.py,1.7,1.8
cvs@intevation.de
cvs at intevation.de
Fri Jan 21 15:01:27 CET 2005
- Previous message: jonathan: thuban/libraries/thuban gdalwarp.cpp, 1.1, 1.2 bmpdataset.cpp, 1.1, NONE cpl_mfile.cpp, 1.2, NONE cpl_mfile.h, 1.2, NONE
- Next message: jan: thuban/Thuban/UI mainwindow.py,1.128.2.1,1.128.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jonathan
Update of /thubanrepository/thuban/test
In directory doto:/tmp/cvs-serv21080/test
Modified Files:
test_baserenderer.py
Log Message:
Improved rendering raster layers by changing the return format of
the ProjectRasterFile function.
Index: test_baserenderer.py
===================================================================
RCS file: /thubanrepository/thuban/test/test_baserenderer.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- test_baserenderer.py 10 Nov 2003 16:57:43 -0000 1.7
+++ test_baserenderer.py 21 Jan 2005 14:01:25 -0000 1.8
@@ -89,7 +89,7 @@
def label_font(self):
return "label font"
- def draw_raster_data(self, data, format='BMP'):
+ def draw_raster_data(self, x, y, data, format='BMP', mask = None):
self.raster_data = data
self.raster_format = format
@@ -287,46 +287,40 @@
# The following commented out code block can be used to generate
# the base64 coded reference image data
- #hexed = binascii.b2a_base64(renderer.raster_data)
+ #hexed = binascii.b2a_base64(renderer.raster_data[2])
#while hexed:
- # print repr(hexed[:65])
- # hexed = hexed[65:]
+ #print repr(hexed[:65])
+ #hexed = hexed[65:]
# The reference data as a base64 coded BMP image
raw_data = binascii.a2b_base64(
- 'Qk3GBQAAAAAAADYEAAAoAAAAFAAAABQAAAABAAgAAAAAAJABAAAAAAAAAAAAAAABA'
- 'AAAAAAAApYOAALGAgAGfjoAHmZyACZ2egAujo4AArICAE66GgACngIA5mZSAJqONg'
- 'ACzgIAAoIyABZqZgAO4uYAAtICAAKqAgAScloAAtYCADKepgAS2t4AAooiAALaAgA'
- 'CtgIAHsbOAAp2TgACogIAFtb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UmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmb'
+ 'mUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbm'
+ 'UmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmU'
+ 'mbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUm'
+ 'bmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmb'
+ 'mUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbm'
+ 'UmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbmUmbm\n')
+ self.assertEquals(renderer.raster_data, [20,20,raw_data])
+ self.assertEquals(renderer.raster_format, "RAW")
self.assertEquals(dc.calls,
[('BeginDrawing',),
- Previous message: jonathan: thuban/libraries/thuban gdalwarp.cpp, 1.1, 1.2 bmpdataset.cpp, 1.1, NONE cpl_mfile.cpp, 1.2, NONE cpl_mfile.h, 1.2, NONE
- Next message: jan: thuban/Thuban/UI mainwindow.py,1.128.2.1,1.128.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)