1 |
|
2003-12-03 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Fix for RT #2243 |
4 |
|
|
5 |
|
* Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer): |
6 |
|
New. Like has_selected_layer but for shape layers only |
7 |
|
(_has_selected_shape_layer): New. Like _has_selected_layer but for |
8 |
|
shape layers only |
9 |
|
(layer_show_table command, layer_jointable command): Use these |
10 |
|
commands should only be available for shape layers |
11 |
|
|
12 |
|
2003-12-03 Bernhard Herzog <[email protected]> |
13 |
|
|
14 |
|
* Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with |
15 |
|
publishers that are wx objects and may have been destroyed by wx |
16 |
|
already. Fixes RT #2242. |
17 |
|
|
18 |
|
2003-12-03 Bernhard Herzog <[email protected]> |
19 |
|
|
20 |
|
* po/ru.po: Updates from Alex Shevlakov |
21 |
|
|
22 |
|
2003-12-03 Silke Reimer <silkeintevation.de> |
23 |
|
|
24 |
|
* debian/control, debian/changelog: Added gdal-support to |
25 |
|
debian package, updated to new thuban version |
26 |
|
|
27 |
|
|
28 |
|
2003-12-03 Bernhard Herzog <[email protected]> |
29 |
|
|
30 |
|
* Thuban/Lib/version.py: New. Module for version number |
31 |
|
manipulations. The version of make_tuple here also deals better |
32 |
|
with more unusual version number strings, such as e.g. |
33 |
|
"1.2+cvs20031111" |
34 |
|
|
35 |
|
* Thuban/version.py (make_tuple): Removed. It's now in |
36 |
|
Thuban.Lib.version. Use that implementation instead. |
37 |
|
|
38 |
|
* test/test_lib_version.py: New. Tests for Thuban/Lib/version.py |
39 |
|
|
40 |
|
2003-12-02 Bernhard Herzog <[email protected]> |
41 |
|
|
42 |
|
* MANIFEST.in: Add debian files |
43 |
|
|
44 |
|
* setup.py (setup call): Add packages for the Extensions so that |
45 |
|
they're installed too |
46 |
|
(data_files): Add READMEs and sample data from some Extensions |
47 |
|
|
48 |
|
* NEWS: Add note about the extensions in binary packages |
49 |
|
|
50 |
|
2003-12-02 Bernhard Herzog <[email protected]> |
51 |
|
|
52 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Save files |
53 |
|
with the thuban-1.0rc1 |
54 |
|
|
55 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Recognize the |
56 |
|
thuban-1.0rc1 namespace too |
57 |
|
|
58 |
|
* test/test_save.py (SaveSessionTest.dtd) |
59 |
|
(SaveSessionTest.testEmptySession) |
60 |
|
(SaveSessionTest.testSingleLayer) |
61 |
|
(SaveSessionTest.testLayerProjection) |
62 |
|
(SaveSessionTest.testRasterLayer) |
63 |
|
(SaveSessionTest.testClassifiedLayer) |
64 |
|
(SaveSessionTest.test_dbf_table) |
65 |
|
(SaveSessionTest.test_joined_table) |
66 |
|
(SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1 |
67 |
|
namespace |
68 |
|
|
69 |
|
* test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1 |
70 |
|
namespace |
71 |
|
(TestSingleLayer.file_contents) |
72 |
|
(TestNonAsciiColumnName.file_contents) |
73 |
|
(TestLayerVisibility.file_contents) |
74 |
|
(TestClassification.file_contents, TestLabels.file_contents) |
75 |
|
(TestLayerProjection.file_contents) |
76 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
77 |
|
(TestPostGISLayer.file_contents) |
78 |
|
(TestPostGISLayerPassword.file_contents) |
79 |
|
(TestLoadError.file_contents, TestLoadError.test): Update to |
80 |
|
thuban-1.0rc1 namespace |
81 |
|
|
82 |
|
2003-12-01 Bernhard Herzog <[email protected]> |
83 |
|
|
84 |
|
* setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for |
85 |
|
nt to better match Intevation's current w32 setup |
86 |
|
|
87 |
|
* HOWTO-Release: Add note about updating MANIFEST.in |
88 |
|
|
89 |
|
* MANIFEST.in: Add the Extensions |
90 |
|
|
91 |
|
* NEWS: Update for 1.0rc1 |
92 |
|
|
93 |
|
2003-12-01 Bernhard Herzog <[email protected]> |
94 |
|
|
95 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild |
96 |
|
cards for the dialog so that shapefiles ending in all uppercase |
97 |
|
SHP are listed too |
98 |
|
|
99 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
100 |
|
|
101 |
|
* Thuban/version.py (longversion): Update to 1.0rc1 |
102 |
|
|
103 |
|
* setup.py (setup call): Update version to 1.0rc1. Use the |
104 |
|
[email protected] email address as author email instead of my |
105 |
|
personal one. |
106 |
|
|
107 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
108 |
|
|
109 |
|
* po/de.po: Update german translation. |
110 |
|
|
111 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
112 |
|
|
113 |
|
Unify the filenames stored in .thuban files so that the .thuban |
114 |
|
files are more platform independend |
115 |
|
|
116 |
|
* Thuban/Model/save.py (unify_filename): New. Unify filenames so |
117 |
|
that they can be used on both windows and unix |
118 |
|
(SessionSaver.prepare_filename): New. Handle all filename |
119 |
|
transformations for filenames stored in the thuban file |
120 |
|
(SessionSaver.write_data_containers, SessionSaver.write_layer): |
121 |
|
Use prepare_filename |
122 |
|
|
123 |
|
* test/test_save.py (SaveSessionTest.testSingleLayer) |
124 |
|
(SaveSessionTest.testLayerProjection) |
125 |
|
(SaveSessionTest.testRasterLayer) |
126 |
|
(SaveSessionTest.testClassifiedLayer) |
127 |
|
(SaveSessionTest.test_dbf_table) |
128 |
|
(SaveSessionTest.test_joined_table): Filenames are always stored |
129 |
|
with slashes on all currently supported platforms so adapt all |
130 |
|
tests to this |
131 |
|
|
132 |
|
* test/test_load.py (LoadSessionTest.filenames): With the new |
133 |
|
filename scheme the filenames in the tests should be |
134 |
|
understandable on all currently supported platforms so we turn |
135 |
|
this into an empty list because we don't have to normalize them |
136 |
|
anymore |
137 |
|
|
138 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
139 |
|
|
140 |
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
141 |
|
Add the ellipsoid to the projection since some Proj versions |
142 |
|
complain if it's missing. |
143 |
|
|
144 |
|
2003-11-27 Bernhard Herzog <[email protected]> |
145 |
|
|
146 |
|
Corect some bounding box projection problems |
147 |
|
|
148 |
|
* Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse |
149 |
|
version of ForwardBBox |
150 |
|
(Projection._transform_bbox): New. common implementation of |
151 |
|
ForwardBBox and InverseBBox |
152 |
|
(Projection.ForwardBBox): Use _transform_bbox. |
153 |
|
|
154 |
|
* test/test_proj.py (TestProjection.test): Add test for |
155 |
|
InverseBBox |
156 |
|
|
157 |
|
* Thuban/Model/layer.py (Layer.LatLongBoundingBox) |
158 |
|
(Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the |
159 |
|
new InverseBBox method to determine the unprojected bounding box |
160 |
|
(Layer.ShapesInRegion): Use the ForwardBBox method to project the |
161 |
|
bbox. |
162 |
|
|
163 |
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
164 |
|
Removed. |
165 |
|
(TestLayer.test_arc_layer_with_projection): New. This test is |
166 |
|
better able to test whether bounding boxes are projected correctly |
167 |
|
than test_point_layer_with_projection |
168 |
|
|
169 |
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use |
170 |
|
InverseBBox to unproject bboxes |
171 |
|
|
172 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
173 |
|
|
174 |
|
* Thuban/UI/about.py (About.__init__): Make sure we have ASCII |
175 |
|
source code. |
176 |
|
|
177 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
178 |
|
|
179 |
|
* Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only |
180 |
|
there for backwards compatibility and all code relying on that |
181 |
|
should have been updated by now. |
182 |
|
|
183 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
184 |
|
|
185 |
|
* test/test_load.py (TestClassification.test): Add the missing |
186 |
|
round trip test. |
187 |
|
(TestClassification.file_contents): Update to the newest file |
188 |
|
format |
189 |
|
|
190 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
191 |
|
|
192 |
|
Add very experimental (and possibly dangerous) extension to draw |
193 |
|
polygons: |
194 |
|
|
195 |
|
* Extensions/drawshape/README: New. Brief installation |
196 |
|
instructions |
197 |
|
|
198 |
|
* Extensions/drawshape/drawshape.py: New. Implementation of the |
199 |
|
drawshape extensions |
200 |
|
|
201 |
|
* Extensions/drawshape/patch.diff: Patch to apply before the |
202 |
|
extension can be used. |
203 |
|
|
204 |
|
2003-11-24 Bernhard Herzog <[email protected]> |
205 |
|
|
206 |
|
* Thuban/Model/data.py (ShapefileStore._open_shapefile) |
207 |
|
(ShapefileStore.__init__): Factor opening the shapefile into a |
208 |
|
separate method (the new _open_shapefile). This makes the code a |
209 |
|
bit more readable but the real reason is that it makes some evil |
210 |
|
hacks easier. :-) |
211 |
|
|
212 |
|
2003-11-24 Bernhard Herzog <[email protected]> |
213 |
|
|
214 |
|
* Thuban/Model/load.py (SessionLoader.check_attrs): If no |
215 |
|
converter is specified for an attribute assume it's a string |
216 |
|
containing only Latin1 characters. Update doc-string accordingly. |
217 |
|
This change should fix many places where unicode objects might |
218 |
|
accidentally enter Thuban. |
219 |
|
|
220 |
|
* test/test_load.py (TestNonAsciiColumnName): New test to check |
221 |
|
what happens with column names in DBF files that contain non-ascii |
222 |
|
characters |
223 |
|
|
224 |
|
2003-11-21 Bernhard Herzog <[email protected]> |
225 |
|
|
226 |
|
Enable the experimental attribute editing again and introduce a |
227 |
|
command line switch to actually activate it |
228 |
|
|
229 |
|
* Thuban/UI/main.py (options): New. Container for options set on |
230 |
|
the commmand line |
231 |
|
(main): Add the --enable-attribute-editing flag. |
232 |
|
|
233 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute |
234 |
|
editing is enabled use the grid ctrl which allows editing of the |
235 |
|
values |
236 |
|
|
237 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.write_record): |
238 |
|
New. Just delegate this to the underlying table. |
239 |
|
|
240 |
|
2003-11-20 Bernhard Herzog <[email protected]> |
241 |
|
|
242 |
|
* test/test_proj.py (ProjFileReadTests.test_read_unreadable_file): |
243 |
|
Skip this test if run under non-posix systems since it only works |
244 |
|
there |
245 |
|
|
246 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
247 |
|
|
248 |
|
* Thuban/Model/resource.py: Rework the way gdal support is |
249 |
|
determined so that we can give a reason in the about why gdal is |
250 |
|
not supported. |
251 |
|
(gdal_support_status): New. Variable holding a string with the |
252 |
|
reason for no gdal support |
253 |
|
|
254 |
|
* Thuban/UI/about.py (About.__init__): Add the reason why gdal is |
255 |
|
not supported to the message |
256 |
|
|
257 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
258 |
|
|
259 |
|
Remove the old table interface and its test cases |
260 |
|
|
261 |
|
* Thuban/Model/table.py (OldTableInterfaceMixin): Removed. |
262 |
|
(DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin |
263 |
|
anymore |
264 |
|
|
265 |
|
* Thuban/Model/transientdb.py (TransientTableBase) |
266 |
|
(AutoTransientTable): Do not derive from OldTableInterfaceMixin |
267 |
|
anymore |
268 |
|
|
269 |
|
* test/test_table.py: Removed since the old interface it tests is |
270 |
|
gone. |
271 |
|
|
272 |
|
* test/runtests.py (main): The old table interface is gone and |
273 |
|
with it the deprecation warnings so remove the code that turns |
274 |
|
these warnings into errors |
275 |
|
|
276 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
277 |
|
|
278 |
|
* test/test_table.py: Revert to revision 1.5 again. Changing the |
279 |
|
tests to use the new table interface is completely wrong since the |
280 |
|
whole purpose of the tests in this module is to test the old |
281 |
|
interface. |
282 |
|
|
283 |
|
2003-11-18 Bernhard Herzog <[email protected]> |
284 |
|
|
285 |
|
* Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters): |
286 |
|
New. Test whether the connection matches a set of connection |
287 |
|
parameters |
288 |
|
|
289 |
|
* Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string |
290 |
|
(DBFrame.OnAdd): Use the new MatchesParameters method when looking |
291 |
|
for existing connections with the same parameters and break out of |
292 |
|
the loop correctly. |
293 |
|
|
294 |
|
* test/test_postgis_db.py (TestBriefDescription) |
295 |
|
(TestPostGISSimple.test_brief_description): Rename |
296 |
|
TestBriefDescription to TestPostGISSimple and the test method to |
297 |
|
test_brief_description so that we can add more test methods. |
298 |
|
(TestPostGISSimple.test_matches_parameters): New. Test the new |
299 |
|
MatchesParameters method |
300 |
|
|
301 |
|
2003-11-18 Bernhard Herzog <[email protected]> |
302 |
|
|
303 |
|
* Thuban/Lib/connector.py (Publisher): Introduce a new flag, |
304 |
|
_was_destroyed, to indicate whether an publisher instance has |
305 |
|
already been destroyed. |
306 |
|
(Publisher.Unsubscribe): Only disconnect if the publisher has not |
307 |
|
been destroyed yet. |
308 |
|
(Publisher.Destroy): Set the _was_destroyed flag to true. |
309 |
|
|
310 |
|
* test/test_connector.py |
311 |
|
(TestPublisher.test_unsubscribe_after_destroy): New. Test that |
312 |
|
calling Unsubscribe after Destroy doesn't raise an exception |
313 |
|
|
314 |
|
2003-11-14 Bernhard Herzog <[email protected]> |
315 |
|
|
316 |
|
* Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix |
317 |
|
typo in doc-string |
318 |
|
|
319 |
|
2003-11-13 Bernhard Herzog <[email protected]> |
320 |
|
|
321 |
|
Quote table and column names properly for postgis. |
322 |
|
|
323 |
|
* Thuban/Model/postgisdb.py (quote_identifier): New. Function to |
324 |
|
quote an identifier for use in an sql statement |
325 |
|
(PostGISColumn.__init__): Add the quoted_name attribute |
326 |
|
(PostGISTable.__init__): New instance variable quoted_tablename |
327 |
|
(PostGISTable._fetch_table_information): Use the quoted table |
328 |
|
name. New isntance variable quoted_geo_col with a quoted version |
329 |
|
of geometry_column |
330 |
|
(PostGISTable.NumRows, PostGISTable.RowIdToOrdinal) |
331 |
|
(PostGISTable.RowOrdinalToId): Use the quoted table name |
332 |
|
(PostGISTable.ReadValue, PostGISTable.ValueRange) |
333 |
|
(PostGISTable.UniqueValues, PostGISTable.SimpleQuery) |
334 |
|
(PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape) |
335 |
|
(PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion): |
336 |
|
Use quoted table and column names |
337 |
|
|
338 |
|
* test/test_postgis_db.py (TestPostGISSpecialCases) |
339 |
|
(TestPostGISIgnoredColumns): Rename the class to |
340 |
|
TestPostGISSpecialCases because that better describes the new |
341 |
|
cases |
342 |
|
(TestPostGISSpecialCases.test_unsupported_types) |
343 |
|
(TestPostGISSpecialCases.test): Rename the method to |
344 |
|
test_unsupported_types because we need a more descriptive name now |
345 |
|
that there are more methods |
346 |
|
(TestPostGISSpecialCases.test_table_name_quoting) |
347 |
|
(TestPostGISSpecialCases.test_column_name_quoting) |
348 |
|
(TestPostGISSpecialCases.test_shapestore_name_quoting): New test |
349 |
|
cases to test quoting of table and column names in PostGISTable |
350 |
|
and PostGISShapeStore |
351 |
|
|
352 |
|
* test/postgissupport.py |
353 |
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if |
354 |
|
AddGeometryColumn desn't support table or column names with sapces |
355 |
|
or double quotes |
356 |
|
|
357 |
|
2003-11-12 Jan-Oliver Wagner <[email protected]> |
358 |
|
|
359 |
|
* Extensions/wms/__init__.py: New: Init to make this |
360 |
|
directory a package. |
361 |
|
|
362 |
|
* Extensions/wms/wms.py: New: Provide layers via OGC WMS. |
363 |
|
|
364 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
365 |
|
|
366 |
|
* Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New. |
367 |
|
Constant for the file woth deprecated epsg projections |
368 |
|
(get_system_proj_file): Update doc-string |
369 |
|
|
370 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space |
371 |
|
above the EPS widgets, introduce a check box for the deprecated |
372 |
|
eps projections and a label for the epsg widgets |
373 |
|
(ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections |
374 |
|
too |
375 |
|
|
376 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
377 |
|
|
378 |
|
Avoid warnings when run under Python 2.3 |
379 |
|
|
380 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape) |
381 |
|
(BaseRenderer.draw_label_layer): Coordinates must be ints. |
382 |
|
|
383 |
|
* Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a |
384 |
|
real method so that we can convert to int. |
385 |
|
(MapRenderer.label_font): The font size mist be an int. |
386 |
|
|
387 |
|
* Thuban/UI/common.py (Color2wxColour): The color values must be |
388 |
|
ints. Also, remove the unnecessary asserts. |
389 |
|
|
390 |
|
* test/test_load_0_8.py (TestUnicodeStrings.file_contents) |
391 |
|
(TestUnicodeStrings.test): Python source code should not contain |
392 |
|
non-ascii characters unless an encoding is specified in the file. |
393 |
|
Therefore use \x escapes in the string literals for non-ascii |
394 |
|
characters. |
395 |
|
|
396 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
397 |
|
|
398 |
|
* Thuban/Model/resource.py (get_system_proj_file): Add a filename |
399 |
|
parameter so that this function can be used for all proj files in |
400 |
|
Resource/Projections |
401 |
|
(DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for |
402 |
|
get_system_proj_file |
403 |
|
|
404 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one |
405 |
|
ProjFile self.__sysProjFile use a dictionary of system ProjFile |
406 |
|
objects self._sys_proj_files |
407 |
|
(ProjFrame.build_dialog): Adapt to the new changes in the |
408 |
|
ProjectionList constructor. Add a check button to toggle whether |
409 |
|
EPSG projections are shown |
410 |
|
(ProjFrame._OnShowEPSG): New. Handler for the epsg check button |
411 |
|
events. |
412 |
|
(ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show |
413 |
|
the busy cursor if the files have not yet been loaded by the |
414 |
|
dialog. |
415 |
|
(ProjFrame.load_system_proj): Add a parameter for the name of the |
416 |
|
proj file. Maintain the dictionary of system projections |
417 |
|
self._sys_proj_files |
418 |
|
|
419 |
|
* Thuban/UI/projlist.py (ProjectionList): Merge the system_projs, |
420 |
|
user_projs parameters into one parameter proj_files which is a |
421 |
|
list of proj files. |
422 |
|
(ProjectionList._subscribe_proj_files) |
423 |
|
(ProjectionList._unsubscribe_proj_files): New. Move |
424 |
|
subscription/unsubscription of projfile messages to separate |
425 |
|
methods |
426 |
|
(ProjectionList.Destroy): The unsubscribe is now done in |
427 |
|
_unsubscribe_proj_files |
428 |
|
(ProjectionList.update_projections): We now have a list of proj |
429 |
|
file objects |
430 |
|
(ProjectionList.SetProjFiles): New method to set a new list of |
431 |
|
proj file objects |
432 |
|
|
433 |
|
* test/test_proj.py (ProjFileReadTests.test_get_system_proj_file): |
434 |
|
Specify explicitly which system proj file to load. |
435 |
|
|
436 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
437 |
|
|
438 |
|
* Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all |
439 |
|
instance variables to cut cyclic references. The GC would have |
440 |
|
collected the loader eventually but it can happen that it doesn't |
441 |
|
run at all until thuban is closed (2.3 but not 2.2 tries a bit |
442 |
|
harder and forces a collection when the interpreter terminates) |
443 |
|
(load_session): Call the handler's Destroy method to make sure |
444 |
|
that it gets garbage collected early. Otherwise it will be |
445 |
|
collected very late if at all and it holds some references to e.g. |
446 |
|
shapestores and the session which can lead to leaks (of e.g. the |
447 |
|
temporary files) |
448 |
|
|
449 |
|
* test/test_load.py (TestSingleLayer.test_leak): New. test for the |
450 |
|
resource leak in load_session |
451 |
|
|
452 |
|
2003-11-10 Bernhard Herzog <[email protected]> |
453 |
|
|
454 |
|
* Thuban/UI/baserenderer.py: Add a way to specify how layers in |
455 |
|
extensions are to be rendered. |
456 |
|
(_renderer_extensions): New. List with renderer for layers in |
457 |
|
extensions |
458 |
|
(add_renderer_extension): New. Add a renderer extension |
459 |
|
(init_renderer_extensions): New. Init the renderer extensions |
460 |
|
(BaseRenderer.render_map_incrementally): Search |
461 |
|
_renderer_extensions for how to draw unknown layer types |
462 |
|
(BaseRenderer.draw_raster_data): Add format parameter so that |
463 |
|
formats other than BMP can be drawn |
464 |
|
(BaseRenderer.draw_raster_layer): Pass an explicit format to |
465 |
|
draw_raster_data |
466 |
|
|
467 |
|
* Thuban/UI/renderer.py (raster_format_map): New. Mapping form the |
468 |
|
strings of the format parameter of draw_raster_data method to wx |
469 |
|
constants |
470 |
|
(MapRenderer.draw_raster_data): Add the format parameter and use |
471 |
|
raster_format_map to map it to the right wxwindows constant for |
472 |
|
wxImageFromStream |
473 |
|
|
474 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add |
475 |
|
the format parameter and record it |
476 |
|
(TestBaseRenderer.test_raster_no_projection): check the format |
477 |
|
paramter of the draw_raster_data method |
478 |
|
(TestBaseRenderer.test_renderer_extension): New. Test the renderer |
479 |
|
extension facility |
480 |
|
|
481 |
|
2003-11-07 Bernhard Herzog <[email protected]> |
482 |
|
|
483 |
|
Tweak the usage of the sqlite database to make common use cases |
484 |
|
more responsive. In most cases copying the data to the sqlite |
485 |
|
database takes so long that using sqlite doesn't have enough |
486 |
|
advantages. |
487 |
|
|
488 |
|
* Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add |
489 |
|
comments about performance and query the min and max in separate |
490 |
|
statements because only that way will indexes be used. |
491 |
|
(TransientTableBase.UniqueValues): Add some comments about |
492 |
|
performance. |
493 |
|
(AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues): |
494 |
|
Do not copy the data to the transient DB but use the transient |
495 |
|
copy if it exists. See the new comments for the performance trade |
496 |
|
offs |
497 |
|
|
498 |
|
* test/test_transientdb.py |
499 |
|
(TestTransientTable.test_auto_transient_table): Make sure that the |
500 |
|
data is copied to the transient database at some point. |
501 |
|
|
502 |
|
2003-11-03 Bernhard Herzog <[email protected]> |
503 |
|
|
504 |
|
* Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some |
505 |
|
globals to locals so that it's a bit faster |
506 |
|
|
507 |
|
2003-11-03 Bernhard Herzog <[email protected]> |
508 |
|
|
509 |
|
* Thuban/UI/baserenderer.py |
510 |
|
(BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue |
511 |
|
method. ReadValue is faster than ReadRowAsDict since it only reads |
512 |
|
one cell especially now that the dbf file objects actually |
513 |
|
implement it. |
514 |
|
|
515 |
|
* Thuban/Model/table.py (DBFTable.ReadValue): Use the new |
516 |
|
read_attribute method of the dbf objects |
517 |
|
|
518 |
2003-11-03 Bernhard Herzog <[email protected]> |
2003-11-03 Bernhard Herzog <[email protected]> |
519 |
|
|
520 |
* Extensions/profiling/profiling.py (popup_dialog_box): New config |
* Extensions/profiling/profiling.py (popup_dialog_box): New config |