1 |
|
2005-01-21 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes |
4 |
|
a projection and returns a formatted string representing the |
5 |
|
parameters to feed to gdalwarp. This function eliminates |
6 |
|
redundancy in draw_raster_layer(). |
7 |
|
(render_map_incrementally): Removed the optimization which |
8 |
|
drew the top most raster layer first and then only those vector- |
9 |
|
based layers that are above it. With the support for transparency |
10 |
|
this optimization breaks correct behaviour. |
11 |
|
(draw_raster_layer): Reorganize code to support possible future |
12 |
|
enhancements to raster layer bounding box. The old behaviour has not |
13 |
|
changed. Also, change calling parameters to draw_raster_data() |
14 |
|
to specify new RAW data format and mask. |
15 |
|
(draw_raster_data): Change signature to include an optional |
16 |
|
parameter for mask information. Change documentation to mention |
17 |
|
support for new parameter and added option for RAW data format. |
18 |
|
The data argument is now a list of [width, height, data]. |
19 |
|
|
20 |
|
* Thuban/UI/renderer.py (draw_raster_data): Add new optional |
21 |
|
mask parameter. Add new condition for RAW format, which |
22 |
|
significantly reduces rendering time. Add condition for |
23 |
|
mask parameter. |
24 |
|
|
25 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a |
26 |
|
data array of RGB values from the projected image returned from |
27 |
|
the gdal warping functions. In the case of palette based images, it |
28 |
|
converts the NO_DATA index to the mask color. |
29 |
|
(ProjectRasterFile): Removed all custom memory driver references |
30 |
|
and replaced it with the standard in-memory dataset provided |
31 |
|
by gdal. The return data is no longer a BMP file, but an array |
32 |
|
of RGB values, one set triple per pixel. |
33 |
|
|
34 |
|
* libraries/thuban/bmpdataset.cpp: Removed. Unnecessary. |
35 |
|
* libraries/thuban/cpl_mfile.h: Removed. Unnecessary. |
36 |
|
* libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary. |
37 |
|
|
38 |
|
* setup.py (thuban_build_ext.finalize_options): Removed mention |
39 |
|
of cpl_mfile.cpp and bmpdataset.cpp files in the list of source |
40 |
|
files. These are obsolete with the new version of gdalwarp.cpp |
41 |
|
|
42 |
|
* test/test_baserenderer.py (draw_raster_data): Updated signature. |
43 |
|
(test_raster_no_projection): Changed the test data to be data |
44 |
|
in the uncompressed RAW format returned from ProjectRasterFile. |
45 |
|
|
46 |
2005-01-21 Jan-Oliver Wagner <[email protected]> |
2005-01-21 Jan-Oliver Wagner <[email protected]> |
47 |
|
|
48 |
* Thuban/UI/mainwindow.py (view_position_changed): Made string |
* Thuban/UI/mainwindow.py (view_position_changed): Made string |