1 |
2005-01-21 Jonathan Coles <[email protected]> |
2005-01-21 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
* Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes |
* Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes |
4 |
a projection and returns a formatted string representing the |
a projection and returns a formatted string representing the |
5 |
parameters to feed to gdalwarp. This function eliminates |
parameters to feed to gdalwarp. This function eliminates |
6 |
redundancy in draw_raster_layer(). |
redundancy in draw_raster_layer(). |
7 |
(render_map_incrementally): Removed the optimization which |
(BaseRenderer.render_map_incrementally): Removed the optimization which |
8 |
drew the top most raster layer first and then only those vector- |
drew the top most raster layer first and then only those vector- |
9 |
based layers that are above it. With the support for transparency |
based layers that are above it. With the support for transparency |
10 |
this optimization breaks correct behaviour. |
this optimization breaks correct behaviour. |
11 |
(draw_raster_layer): Reorganize code to support possible future |
(BaseRenderer.draw_raster_layer): Reorganize code to support possible |
12 |
enhancements to raster layer bounding box. The old behaviour has not |
future enhancements to raster layer bounding box. The old behaviour has |
13 |
changed. Also, change calling parameters to draw_raster_data() |
not changed. Also, change calling parameters to draw_raster_data() |
14 |
to specify new RAW data format and mask. |
to specify new RAW data format and mask. |
15 |
(draw_raster_data): Change signature to include an optional |
(BaseRenderer.draw_raster_data): Change signature to include an optional |
16 |
parameter for mask information. Change documentation to mention |
parameter for mask information. Change documentation to mention |
17 |
support for new parameter and added option for RAW data format. |
support for new parameter and added option for RAW data format. |
18 |
The data argument is now a list of [width, height, data]. |
The data argument is now a list of [width, height, data]. |
19 |
|
|
20 |
* Thuban/UI/renderer.py (draw_raster_data): Add new optional |
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional |
21 |
mask parameter. Add new condition for RAW format, which |
mask parameter. Add new condition for RAW format, which |
22 |
significantly reduces rendering time. Add condition for |
significantly reduces rendering time. Add condition for |
23 |
mask parameter. |
mask parameter. |
24 |
|
|
25 |
* libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a |
* libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a |
26 |
data array of RGB values from the projected image returned from |
data array of RGB values from the projected image returned from |
27 |
the gdal warping functions. In the case of palette based images, it |
the gdal warping functions. In the case of palette based images, it |
28 |
converts the NO_DATA index to the mask color. |
converts the NO_DATA index to the mask color. |
29 |
(ProjectRasterFile): Removed all custom memory driver references |
(ProjectRasterFile): Removed all custom memory driver references |
30 |
and replaced it with the standard in-memory dataset provided |
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 |
by gdal. The return data is no longer a BMP file, but an array |
32 |
of RGB values, one set triple per pixel. |
of RGB values, one set triple per pixel. |
33 |
|
|
34 |
* libraries/thuban/bmpdataset.cpp: Removed. Unnecessary. |
* libraries/thuban/bmpdataset.cpp: Removed. Unnecessary. |
35 |
* libraries/thuban/cpl_mfile.h: Removed. Unnecessary. |
* libraries/thuban/cpl_mfile.h: Removed. Unnecessary. |
36 |
* libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary. |
* libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary. |
37 |
|
|
38 |
* setup.py (thuban_build_ext.finalize_options): Removed mention |
* setup.py (thuban_build_ext.finalize_options): Removed mention |
39 |
of cpl_mfile.cpp and bmpdataset.cpp files in the list of source |
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 |
files. These are obsolete with the new version of gdalwarp.cpp |
41 |
|
|
42 |
* test/test_baserenderer.py (draw_raster_data): Updated signature. |
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): |
43 |
(test_raster_no_projection): Changed the test data to be data |
Updated signature. |
44 |
in the uncompressed RAW format returned from ProjectRasterFile. |
(TestBaseRenderer.test_raster_no_projection): Changed the test |
45 |
|
data to be data in the uncompressed RAW format returned from |
46 |
|
ProjectRasterFile. |
47 |
|
|
48 |
2005-01-21 Jan-Oliver Wagner <[email protected]> |
2005-01-21 Jan-Oliver Wagner <[email protected]> |
49 |
|
|
50 |
* Thuban/UI/mainwindow.py (view_position_changed): Made string |
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made |
51 |
available for i18n. |
string available for i18n. |
52 |
|
|
53 |
2005-01-20 Russell Nelson <[email protected]> |
2005-01-20 Russell Nelson <[email protected]> |
54 |
|
|
61 |
|
|
62 |
2005-01-20 Bernhard Reiter <[email protected]> |
2005-01-20 Bernhard Reiter <[email protected]> |
63 |
|
|
64 |
* Thuban/UI/mainwindow.py(view_position_changed): Added docstring |
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added |
65 |
and comment that the warning code here is a hack. |
docstring and comment that the warning code here is a hack. |
66 |
|
|
67 |
2005-01-20 Russell Nelson <[email protected]> |
2005-01-20 Russell Nelson <[email protected]> |
68 |
|
|
69 |
* Thuban/UI/mainwindow.py(view_position_changed): Warn user about |
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn |
70 |
misprojected layers when their lat/lon bounding |
user about misprojected layers when their lat/lon bounding |
71 |
box exceeds rational lat/lon values. |
box exceeds rational lat/lon values. |
72 |
|
|
73 |
2005-01-20 Bernhard Reiter <[email protected]> |
2005-01-20 Bernhard Reiter <[email protected]> |
74 |
|
|
75 |
* Thuban/UI/about.py (unicodeToLocale()): Improved: |
* Thuban/UI/about.py (unicodeToLocale): Improved: |
76 |
Use 'ascii' and then 'replace' for other characters |
Use 'ascii' and then 'replace' for other characters |
77 |
when getdefaultlocale returns None. Thanks to Bernhard H. . |
when getdefaultlocale returns None. Thanks to Bernhard H. . |
78 |
|
|
79 |
2005-01-20 Bernhard Reiter <[email protected]> |
2005-01-20 Bernhard Reiter <[email protected]> |
80 |
|
|
81 |
* Thuban/UI/classgen.py (OnRetrieve()): Added a comment |
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment |
82 |
that OnRangeText might be called twice and using None as argument. |
that OnRangeText might be called twice and using None as argument. |
83 |
|
|
84 |
2005-01-20 Bernhard Reiter <[email protected]> |
2005-01-20 Bernhard Reiter <[email protected]> |
85 |
|
|
86 |
* Thuban/UI/classgen.py (OnRetrieve()): Add a OnRangeText(0) |
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a |
87 |
to work around a different in wx Behaviour noticed on MacOSX, |
OnRangeText(0) to work around a different in wx Behaviour noticed |
88 |
thanks to Lorenzo Moretti and Daniel Calvelo for the fix. |
on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix. |
89 |
|
|
90 |
2005-01-20 Bernhard Reiter <[email protected]> |
2005-01-20 Bernhard Reiter <[email protected]> |
91 |
|
|
92 |
* Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns |
* Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns |