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 |
|
(BaseRenderer.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 |
|
(BaseRenderer.draw_raster_layer): Reorganize code to support possible |
12 |
|
future enhancements to raster layer bounding box. The old behaviour has |
13 |
|
not changed. Also, change calling parameters to draw_raster_data() |
14 |
|
to specify new RAW data format and mask. |
15 |
|
(BaseRenderer.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 (MapRenderer.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 (SimpleRenderer.draw_raster_data): |
43 |
|
Updated signature. |
44 |
|
(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]> |
49 |
|
|
50 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made |
51 |
|
string available for i18n. |
52 |
|
|
53 |
|
2005-01-20 Russell Nelson <[email protected]> |
54 |
|
|
55 |
|
* Resources/Projections/defaults.proj: Ruin the speling of the |
56 |
|
Lambert-93 projection so it doesn't run into the wx UTF-8 bug. |
57 |
|
It's the wrong thing to do in the long run, but it's necessary for |
58 |
|
those users until that bug is fixed. Otherwise the projection |
59 |
|
dialog segfaults. Better to annoy some Lambert-93 users with a |
60 |
|
spelling mistake than every Fedora Core 3 user of Thuban-CVS. |
61 |
|
|
62 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
63 |
|
|
64 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added |
65 |
|
docstring and comment that the warning code here is a hack. |
66 |
|
|
67 |
|
2005-01-20 Russell Nelson <[email protected]> |
68 |
|
|
69 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn |
70 |
|
user about misprojected layers when their lat/lon bounding |
71 |
|
box exceeds rational lat/lon values. |
72 |
|
|
73 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
74 |
|
|
75 |
|
* Thuban/UI/about.py (unicodeToLocale): Improved: |
76 |
|
Use 'ascii' and then 'replace' for other characters |
77 |
|
when getdefaultlocale returns None. Thanks to Bernhard H. . |
78 |
|
|
79 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
80 |
|
|
81 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment |
82 |
|
that OnRangeText might be called twice and using None as argument. |
83 |
|
|
84 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
85 |
|
|
86 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a |
87 |
|
OnRangeText(0) to work around a different in wx Behaviour noticed |
88 |
|
on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix. |
89 |
|
|
90 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
91 |
|
|
92 |
|
* Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns |
93 |
|
None. (Fixes rt#2910.) |
94 |
|
|
95 |
|
2005-01-18 Frank Koormann <[email protected]> |
96 |
|
|
97 |
|
New Extension: mouseposition |
98 |
|
Tool to collect mouse click positions (map coordinates) in a dialog. |
99 |
|
|
100 |
|
* Extensions/mouseposition/__init__.py: New, extension registration |
101 |
|
|
102 |
|
* Extensions/mouseposition/mouseposition.py: New, implements the |
103 |
|
dialog and adds a tool to Thuban mainwindow. |
104 |
|
|
105 |
|
* Extensions/mouseposition/position.xpm: New, icon for tool. |
106 |
|
|
107 |
|
2005-01-14 Jan-Oliver Wagner <[email protected]> |
108 |
|
|
109 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
110 |
|
|
111 |
|
2005-01-11 Frank Koormann <[email protected]> |
112 |
|
|
113 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
114 |
|
Fix indention bug. |
115 |
|
|
116 |
|
2005-01-09 Frank Koormann <[email protected]> |
117 |
|
|
118 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
119 |
|
BugFix 2901: Explicitly copy layers ClassificationColumn since it |
120 |
|
is not part of the layers Classification. |
121 |
|
|
122 |
|
2005-01-03 Frank Koormann <[email protected]> |
123 |
|
|
124 |
|
* Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally): |
125 |
|
BugFix 2883: Former implementation only worked on classified point |
126 |
|
layers: KeyError was raised, now use the default size if field is None. |
127 |
|
|
128 |
|
2004-12-27 Bernhard Reiter <[email protected]> |
129 |
|
|
130 |
|
svgexport 1.0.0cvs: Fixed label export. |
131 |
|
|
132 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
133 |
|
class TestSVGRenderer(): New class; new test test_label_font(). |
134 |
|
|
135 |
|
* Extensions/svgexport/svgmapwriter.py |
136 |
|
(SVGRenderer.label_font()): initialised Font size with self.factor now, |
137 |
|
makes test_label_font happy. |
138 |
|
|
139 |
|
* Extensions/svgexport/TODO: crossed out fixed label export item. |
140 |
|
Added item for options. |
141 |
|
|
142 |
|
* Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs. |
143 |
|
|
144 |
|
2004-12-27 Russell Nelson <[email protected]> |
145 |
|
|
146 |
|
Middle mouse button pans. |
147 |
|
|
148 |
|
* Thuban/UI/view.py (MapCanvas.__init__): Subscribe also |
149 |
|
OnMiddleDown and OnMiddleUp events. |
150 |
|
(MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the |
151 |
|
previously used tool. |
152 |
|
(MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before |
153 |
|
pressing the middle mouse button. |
154 |
|
|
155 |
|
2004-12-27 Jan-Oliver Wagner <[email protected]> |
156 |
|
|
157 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
158 |
|
|
159 |
|
2004-12-23 Jan-Oliver Wagner <[email protected]> |
160 |
|
|
161 |
|
* Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a |
162 |
|
\n to stderr after the warnings. Thanks to Russell Nelson. |
163 |
|
|
164 |
|
2004-12-20 Nina Hueffmeyer <[email protected]> |
165 |
|
|
166 |
|
* Extensions/ogr/ogrshapes.py: Fixed some issues from |
167 |
|
Bernhard (coding guidelines etc.). Additionally it is now possible to |
168 |
|
display shapefiles containing feature collections (e.g.polygons |
169 |
|
with holes). Works with gdal 1.2.1 now. |
170 |
|
|
171 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues |
172 |
|
from Bernhard (coding guidelines etc.). If ogr can't be imported, |
173 |
|
tests are skipped now. |
174 |
|
|
175 |
|
* Extensions/ogr/ogrstart.py: Fixed some typings. |
176 |
|
|
177 |
|
2004-12-20 Bernhard Reiter <[email protected]> |
178 |
|
|
179 |
|
* Extensions/svgexport/TODO: updated to add support for |
180 |
|
raster layers and labels for 1.0.1. |
181 |
|
|
182 |
|
* Extensions/svgexport/svgmapwriter.py (draw_raster_layer): |
183 |
|
Issue a warning now. |
184 |
|
|
185 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
186 |
|
|
187 |
|
* Extensions/svgexport/TODO: Added idea to support triggering |
188 |
|
the application down the pipe. |
189 |
|
|
190 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
191 |
|
|
192 |
|
svgexport: Improved code quality, mainly by better naming. |
193 |
|
|
194 |
|
* Extensions/svgexport/svgmapwriter.py: |
195 |
|
DrawPath() renamed to DrawPolygonPath(), |
196 |
|
added documentation, improved comments and variable names. |
197 |
|
|
198 |
|
* Extensions/svgexport/svgmapwriter.py, |
199 |
|
Extensions/svgexport/test/test_svgmapwriter.py: |
200 |
|
All using DrawPolygonPath() now, the default parameter closed=True |
201 |
|
omitted. |
202 |
|
|
203 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
204 |
|
renamed test_polygon_opened() to test_polyline() |
205 |
|
renamed test_transparent_polygon() to test_transparent_polyline() |
206 |
|
|
207 |
|
2004-12-18 Jan-Oliver Wagner <[email protected]> |
208 |
|
|
209 |
|
Some fixes of gns2shp extension. |
210 |
|
|
211 |
|
* Extensions/gns2shp/test/__init__.py: New. Make this directory a |
212 |
|
package. |
213 |
|
|
214 |
|
* Extensions/gns2shp/test/test_gns2shp.py: Add some import paths |
215 |
|
dynamically. |
216 |
|
|
217 |
|
* Extensions/gns2shp/test/README: Simplified description how to test. |
218 |
|
|
219 |
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string, |
220 |
|
fixed some dimensions of fields according to the GNS documentation |
221 |
|
which seems to change undocumented. |
222 |
|
Now killing trailing \n and/or \r from MODIFY_DATE. |
223 |
|
This fixes RT#2453. |
224 |
|
|
225 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
226 |
|
|
227 |
|
svgexport 1.0.0: Treats holes and islands nicely. Documentation added. |
228 |
|
|
229 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
230 |
|
Added new tests: test_export_polygon_with_hole() |
231 |
|
and test_polygon_with_hole(). |
232 |
|
|
233 |
|
* Extensions/svgexport/svgmapwriter.py |
234 |
|
(draw_polygon_shape()): Uses DrawPath correctly now. |
235 |
|
|
236 |
|
* Doc/manual/thuban-manual.xml: Added documentation for stable |
237 |
|
extention svgexport. |
238 |
|
* Doc/manual/thuban-manual-de.xml: Copied English section about |
239 |
|
svexport over. |
240 |
|
|
241 |
|
* Extensions/svgexport/__init__.py: Bumped version number to 1.0.0. |
242 |
|
|
243 |
|
* Extensions/svgexport/svgsaver.py,maplegend.py: |
244 |
|
Moved from experimental to stable extension menu. |
245 |
|
|
246 |
|
* Extensions/svgexport/TODO: updated. |
247 |
|
|
248 |
|
|
249 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
250 |
|
|
251 |
|
Added Extensions/svgexport/TODO |
252 |
|
|
253 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
254 |
|
|
255 |
|
Refactored in svgexport: |
256 |
|
DrawPath replaces DrawPolygon; added newline in front of "M" in paths. |
257 |
|
|
258 |
|
* Extensions/svgexport/svgmapwriter.py |
259 |
|
Added verbosity level 3 to print out polygon points. |
260 |
|
(class Point): added __repr__ |
261 |
|
(class Brush, __str__()): Added space after ,. |
262 |
|
(DrawPolygon): Renamed to DrawPath() |
263 |
|
(DrawPath): Takes list of polygons as input now, adds \n before "M"s. |
264 |
|
(DrawLines): Using DrawPath now. |
265 |
|
|
266 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
267 |
|
Replaced DrawPolygon() calls with DrawPath() and put the first argument |
268 |
|
inside another list. Adapted test data with a newline before "M". |
269 |
|
|
270 |
2004-12-18 Bernhard Reiter <[email protected]> |
2004-12-18 Bernhard Reiter <[email protected]> |
271 |
|
|
272 |
Refactored svgexport tests: 9 double tests runs eliminated; |
Refactored svgexport tests: 9 double tests runs eliminated; |