/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1894 by bh, Thu Oct 30 18:17:17 2003 UTC revision 2073 by bh, Tue Feb 17 13:15:22 2004 UTC
# Line 1  Line 1 
1    2004-02-17  Bernhard Herzog  <[email protected]>
2    
3            Fix for RT#2245
4    
5            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
6            instance variables before trying to create any windows.  Creating
7            windows can start an event loop if e.g. message boxes are popped
8            up for some reason, and event handlers, especially EVT_UPDATE_UI
9            may want to access things from the application.
10            (ThubanApplication.maps_changed): The mainwindow may not have been
11            created yet, so check whether it has been created before calling
12            its methods
13    
14            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
15            have a map
16    
17    2004-02-17  Bernhard Herzog  <[email protected]>
18    
19            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
20            Extensions/svgmapwriter.py, Extensions/maplegend.py,
21            extensions/svgexport/svgsaver.py,
22            extensions/svgexport/svgmapwriter.py,
23            extensions/svgexport/maplegend.py: Removed.  These files were in
24            the wrong places or didn't work at all.
25    
26    2004-02-16  Bernhard Herzog  <[email protected]>
27    
28            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
29            line
30    
31    2004-02-16  Bernhard Herzog  <[email protected]>
32    
33            * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
34    
35    2004-02-15  Markus Rechtien  <[email protected]>
36            
37            * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
38            to write a session to a file in SVG format.
39            * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
40            to write a SVG map of a session.
41            * Extensions/svgexport/maplegend: New. Writes a basic maplegend
42            in SVG format for the current session.
43    
44    2004-02-13  Bernhard Herzog  <[email protected]>
45    
46            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
47            can't be created, return immediately after displaying the error
48            message.
49    
50    2004-02-11  Bernhard Herzog  <[email protected]>
51    
52            Handle postgis tables with more than one geometry column.
53    
54            * Thuban/Model/postgisdb.py
55            (PostGISTable._fetch_table_information): Delegate the creation of
56            column objects to a different method so that we can extend that in
57            derived classes
58            (PostGISTable._create_col_from_description): New. Column object
59            creation part of _fetch_table_information
60            (PostGISShapeStore._create_col_from_description): New. Extend
61            inherited method to handle geometry columns
62            (PostGISShapeStore.__init__): New parameter geometry_column to
63            specify which geometry column to use.  Optional but mandatory for
64            tables with more than one geometry column
65            (PostGISShapeStore._fetch_table_information): Also use the name of
66            the geometry column when looking for the srid
67            (PostGISShapeStore.ShapeType): Also use the name of the geometry
68            column when looking for the shape type
69    
70            * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
71            NonConnectionStore to changes in the PostGISShapeStore
72    
73            * test/test_postgis_db.py
74            (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
75            PostGISShapeStore with tables having two geometry columns.
76    
77    2004-02-10  Bernhard Herzog  <[email protected]>
78    
79            Fix some postgis problems.  What remains to be done is real
80            handling of SRIDs as they affect how reprojection is done
81    
82            * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
83            doc-string
84            (PostGISShapeStore._fetch_table_information): New. Extend
85            inherited method to retrieve srid
86            (PostGISShapeStore.BoundingBox): Handle tables without data.
87            extent yields NULL for those
88            (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
89    
90            * test/test_postgis_db.py
91            (TestPostGISSpecialCases.test_shapestore_empty_table): New test
92            for the special case of a table without any data
93            (TestPostGISShapestorePointSRID): New class with tests for a table
94            that uses srids
95            (PolygonTests): Fix a doc-string typo
96    
97            * test/postgissupport.py (PostGISDatabase.__init__): New parameter
98            reference_systems with a specification of spacial reference
99            systems to create in the new db.
100            (PostgreSQLServer.new_postgis_db)
101            (PostgreSQLServer.get_static_data_db): New parameter
102            reference_systems to be passed through ultimately to
103            PostGISDatabase.  In new_postgis_db also check whether an existing
104            db already has the right srids
105            (PostgreSQLServer.get_default_static_data_db): Add srids and a
106            table that uses srids
107            (PostGISDatabase.initdb): Create the entries for the reference
108            systems
109            (PostGISDatabase.has_data): Add reference_systems parameter to
110            check for those too
111            (upload_shapefile): New parameter srid to create tables with a
112            specific srid
113    
114    2004-02-06  Frank Koormann  <[email protected]>
115    
116            * po/pt_BR.po: Fixed charset
117    
118    2004-02-05  Frank Koormann  <[email protected]>
119    
120            * po/pt_BR.po: Fixed format string for error message, missing %s
121            added (Thuban/UI/application.py:273)
122    
123    2004-02-03  Frank Koormann  <[email protected]>
124            
125            First version of Portuguese (Brazilian) translation
126    
127            * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
128            Brazilian Portuguese by Eduardo Patto Kanegae.
129    
130            * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
131            translators.
132    
133    
134    2004-01-22  Frank Koormann  <[email protected]>
135    
136            * Doc/manual/thuban-manual.xml: Added section on installation of
137            Thuban under Win32 systems. Fixed image path references in the postgis
138            section. Some minor source formattings.
139    
140    2004-01-21  Frank Koormann  <[email protected]>
141    
142            Make Thuban remember path selections (at least for one application run).
143    
144            * Thuban/UI/application.py (Application.OnInit): Initialize path as a
145            attribute of application object. Path is a dictionary of
146            strings, currently with the items "data" and "projection".  
147            (Application.SetPath): New, stores path for the specified item.
148            (Application.Path): New, return path for the specified item.
149    
150            * Thuban/UI/mainwindow.py
151            (MainWindow.OpenSession, MainWindow.SaveSessionAs,
152            MainWindow.AddLayer, MainWindow.AddRasterLayer,
153            MainWindow.TableOpen): Access "data" path information of the
154            application.
155            
156            * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
157            Access "projection" path information of the application.
158    
159    2004-01-05  Bernhard Herzog  <[email protected]>
160    
161            * po/ru.po: Updated translations from Alex Shevlakov
162    
163    2004-01-05  Bernhard Herzog  <[email protected]>
164    
165            * po/Makefile, po/README: Move the description of how to generate
166            the translation statistics to the README.
167    
168    2003-12-23  Bernhard Herzog  <[email protected]>
169    
170            * NEWS: Update for 1.0.0
171    
172            * po/it.po: Another update from Maurizio Napolitano
173    
174    2003-12-23  Bernhard Herzog  <[email protected]>
175    
176            * po/it.po: Updated translation from Maurizio Napolitano
177    
178    2003-12-23  Bernhard Herzog  <[email protected]>
179    
180            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
181            for translation
182    
183            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
184            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
185            strings for translation
186    
187            * po/de.po: Update with the newly marked strings.
188    
189    2003-12-22  Bernhard Herzog  <[email protected]>
190    
191            * HOWTO-Release: Fix the places where version numbers have to be
192            updated
193    
194    2003-12-22  Bernhard Herzog  <[email protected]>
195    
196            * setup.py (setup call): 1.0.0, yeah!
197    
198            * Thuban/version.py (longversion): 1.0.0, yeah!
199    
200            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
201            1.0.0 namespace too
202    
203            * Thuban/Model/save.py (SessionSaver.write_session): Save with
204            1.0.0 namespace
205    
206            * test/test_load.py (LoadSessionTest.dtd)
207            (TestSingleLayer.file_contents)
208            (TestNonAsciiColumnName.file_contents)
209            (TestLayerVisibility.file_contents)
210            (TestClassification.file_contents, TestLabels.file_contents)
211            (TestLayerProjection.file_contents)
212            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
213            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
214            (TestPostGISLayerPassword.file_contents)
215            (TestLoadError.file_contents, TestLoadError.test): Update for
216            1.0.0 namespace
217    
218            * test/test_save.py (SaveSessionTest.dtd)
219            (SaveSessionTest.testEmptySession)
220            (SaveSessionTest.testSingleLayer)
221            (SaveSessionTest.testLayerProjection)
222            (SaveSessionTest.testRasterLayer)
223            (SaveSessionTest.testClassifiedLayer)
224            (SaveSessionTest.test_dbf_table)
225            (SaveSessionTest.test_joined_table)
226            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
227    
228    2003-12-22  Bernhard Herzog  <[email protected]>
229    
230            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
231            alignment flags are byte strings not unicode and that they have
232            valid values
233    
234            * test/test_load.py (TestLabelLayer): New. Test loading (and
235            indirectly saving) of maps with labels.
236    
237    2003-12-22  Bernhard Herzog  <[email protected]>
238    
239            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
240            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
241            unsubscribe all subscribers.
242            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
243            self.grid since it may already have been destroyed.
244            Fixes RT #2256
245    
246    2003-12-19  Bernhard Herzog  <[email protected]>
247    
248            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
249    
250    2003-12-16  Bernhard Herzog  <[email protected]>
251            
252            * debian/bitmappath.patch, debian/setup.py.patch:
253                    added to ensure compliance with FHS for debian
254            * debian/rules, debian/changelog:
255                added patches in rules to ensure compliance with FHS for debian
256    
257    2003-12-16  Bernhard Herzog  <[email protected]>
258    
259            * po/Makefile (mo): Make the output a bit nicer so that it prints
260            statistics about the translations. Add a comment how produce even
261            nicer statistics with sed.
262    
263    2003-12-09  Frank Koormann   <[email protected]>
264    
265            * Resources/Projections/defaults.proj:
266            French projection sample with correct accents (UNICODE).
267    
268    2003-12-05  Bernhard Herzog  <[email protected]>
269    
270            * MANIFEST.in: Add the devtools directory
271    
272            * setup.py (setup call): Use license instead of licence. This
273            silences a deprecation warning on Python 2.3
274    
275    2003-12-05  Frank Koormann   <[email protected]>
276    
277            Documentation synced with 1.0rc1
278    
279            * Doc/manual/thuban-manual.xml:
280            Minor formatting changes and references to database layers .
281            Introduction.Internationalization: New section on i18n.
282            MapManagement.AddingandRemovingLayers: Added item on database layers.  
283            MapManagement.TheLegend: Added section and screenshot on popup menu.
284            ProjectionManagement: Updated screenshot and sentence on EPSG.
285            Appendix.SupportedDataSources: Added PostGIS.
286            Appendix.WorkingwithPostGIS: New section.
287    
288            * Doc/manual/images/6_projection.png: Updated screenshot including
289            EPSG checkboxes.
290    
291            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
292    
293            * Doc/manual/images/app_postgis_add_layer.png,
294            Doc/manual/images/app_postgis_db_add.png,
295            Doc/manual/images/app_postgis_db_management.png:
296            New screenshots focussing on database layers
297    
298    2003-12-05  Frank Koormann   <[email protected]>
299    
300            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
301            write warning to stderr instead of rising a warning dialog
302    
303    2003-12-03  Bernhard Herzog  <[email protected]>
304    
305            Fix for RT #2243
306    
307            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
308            New. Like has_selected_layer but for shape layers only
309            (_has_selected_shape_layer): New. Like _has_selected_layer but for
310            shape layers only
311            (layer_show_table command, layer_jointable command): Use these
312            commands should only be available for shape layers
313    
314    2003-12-03  Bernhard Herzog  <[email protected]>
315    
316            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
317            publishers that are wx objects and may have been destroyed by wx
318            already. Fixes RT #2242.
319    
320    2003-12-03  Bernhard Herzog  <[email protected]>
321    
322            * po/ru.po: Updates from Alex Shevlakov
323    
324    2003-12-03  Silke Reimer <silkeintevation.de>
325    
326            * debian/control, debian/changelog: Added gdal-support to
327                    debian package, updated to new thuban version
328    
329    
330    2003-12-03  Bernhard Herzog  <[email protected]>
331    
332            * Thuban/Lib/version.py: New. Module for version number
333            manipulations. The version of make_tuple here also deals better
334            with more unusual version number strings, such as e.g.
335            "1.2+cvs20031111"
336    
337            * Thuban/version.py (make_tuple): Removed. It's now in
338            Thuban.Lib.version. Use that implementation instead.
339    
340            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
341    
342    2003-12-02  Bernhard Herzog  <[email protected]>
343    
344            * MANIFEST.in: Add debian files
345    
346            * setup.py (setup call): Add packages for the Extensions so that
347            they're installed too
348            (data_files): Add READMEs and sample data from some Extensions
349    
350            * NEWS: Add note about the extensions in binary packages
351    
352    2003-12-02  Bernhard Herzog  <[email protected]>
353    
354            * Thuban/Model/save.py (SessionSaver.write_session): Save files
355            with the thuban-1.0rc1
356    
357            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
358            thuban-1.0rc1 namespace too
359    
360            * test/test_save.py (SaveSessionTest.dtd)
361            (SaveSessionTest.testEmptySession)
362            (SaveSessionTest.testSingleLayer)
363            (SaveSessionTest.testLayerProjection)
364            (SaveSessionTest.testRasterLayer)
365            (SaveSessionTest.testClassifiedLayer)
366            (SaveSessionTest.test_dbf_table)
367            (SaveSessionTest.test_joined_table)
368            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
369            namespace
370    
371            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
372            namespace
373            (TestSingleLayer.file_contents)
374            (TestNonAsciiColumnName.file_contents)
375            (TestLayerVisibility.file_contents)
376            (TestClassification.file_contents, TestLabels.file_contents)
377            (TestLayerProjection.file_contents)
378            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
379            (TestPostGISLayer.file_contents)
380            (TestPostGISLayerPassword.file_contents)
381            (TestLoadError.file_contents, TestLoadError.test): Update to
382            thuban-1.0rc1 namespace
383    
384    2003-12-01  Bernhard Herzog  <[email protected]>
385    
386            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
387            nt to better match Intevation's current w32 setup
388    
389            * HOWTO-Release: Add note about updating MANIFEST.in
390    
391            * MANIFEST.in: Add the Extensions
392    
393            * NEWS: Update for 1.0rc1
394    
395    2003-12-01  Bernhard Herzog  <[email protected]>
396    
397            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
398            cards for the dialog so that shapefiles ending in all uppercase
399            SHP are listed too
400    
401    2003-11-28  Bernhard Herzog  <[email protected]>
402    
403            * Thuban/version.py (longversion): Update to 1.0rc1
404    
405            * setup.py (setup call): Update version to 1.0rc1. Use the
406            [email protected] email address as author email instead of my
407            personal one.
408    
409    2003-11-28  Bernhard Herzog  <[email protected]>
410    
411            * po/de.po: Update german translation.
412    
413    2003-11-28  Bernhard Herzog  <[email protected]>
414    
415            Unify the filenames stored in .thuban files so that the .thuban
416            files are more platform independend
417    
418            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
419            that they can be used on both windows and unix
420            (SessionSaver.prepare_filename): New. Handle all filename
421            transformations for filenames stored in the thuban file
422            (SessionSaver.write_data_containers, SessionSaver.write_layer):
423            Use prepare_filename
424    
425            * test/test_save.py (SaveSessionTest.testSingleLayer)
426            (SaveSessionTest.testLayerProjection)
427            (SaveSessionTest.testRasterLayer)
428            (SaveSessionTest.testClassifiedLayer)
429            (SaveSessionTest.test_dbf_table)
430            (SaveSessionTest.test_joined_table): Filenames are always stored
431            with slashes on all currently supported platforms so adapt all
432            tests to this
433    
434            * test/test_load.py (LoadSessionTest.filenames): With the new
435            filename scheme the filenames in the tests should be
436            understandable on all currently supported platforms so we turn
437            this into an empty list because we don't have to normalize them
438            anymore
439    
440    2003-11-28  Bernhard Herzog  <[email protected]>
441    
442            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
443            Add the ellipsoid to the projection since some Proj versions
444            complain if it's missing.
445    
446    2003-11-27  Bernhard Herzog  <[email protected]>
447    
448            Corect some bounding box projection problems
449    
450            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
451            version of ForwardBBox
452            (Projection._transform_bbox): New. common implementation of
453            ForwardBBox and InverseBBox
454            (Projection.ForwardBBox): Use _transform_bbox.
455    
456            * test/test_proj.py (TestProjection.test): Add test for
457            InverseBBox
458    
459            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
460            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
461            new InverseBBox method to determine the unprojected bounding box
462            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
463            bbox.
464    
465            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
466            Removed.
467            (TestLayer.test_arc_layer_with_projection): New. This test is
468            better able to test whether bounding boxes are projected correctly
469            than test_point_layer_with_projection
470    
471            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
472            InverseBBox to unproject bboxes
473    
474    2003-11-25  Bernhard Herzog  <[email protected]>
475    
476            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
477            source code.
478    
479    2003-11-25  Bernhard Herzog  <[email protected]>
480    
481            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
482            there for backwards compatibility and all code relying on that
483            should have been updated by now.
484    
485    2003-11-25  Bernhard Herzog  <[email protected]>
486    
487            * test/test_load.py (TestClassification.test): Add the missing
488            round trip test.
489            (TestClassification.file_contents): Update to the newest file
490            format
491    
492    2003-11-25  Bernhard Herzog  <[email protected]>
493    
494            Add very experimental (and possibly dangerous) extension to draw
495            polygons:
496    
497            * Extensions/drawshape/README: New. Brief installation
498            instructions
499    
500            * Extensions/drawshape/drawshape.py: New. Implementation of the
501            drawshape extensions
502    
503            * Extensions/drawshape/patch.diff: Patch to apply before the
504            extension can be used.
505    
506    2003-11-24  Bernhard Herzog  <[email protected]>
507    
508            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
509            (ShapefileStore.__init__): Factor opening the shapefile into a
510            separate method (the new _open_shapefile). This makes the code a
511            bit more readable but the real reason is that it makes some evil
512            hacks easier. :-)
513    
514    2003-11-24  Bernhard Herzog  <[email protected]>
515    
516            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
517            converter is specified for an attribute assume it's a string
518            containing only Latin1 characters. Update doc-string accordingly.
519            This change should fix many places where unicode objects might
520            accidentally enter Thuban.
521    
522            * test/test_load.py (TestNonAsciiColumnName): New test to check
523            what happens with column names in DBF files that contain non-ascii
524            characters
525    
526    2003-11-21  Bernhard Herzog  <[email protected]>
527    
528            Enable the experimental attribute editing again and introduce a
529            command line switch to actually activate it
530    
531            * Thuban/UI/main.py (options): New. Container for options set on
532            the commmand line
533            (main): Add the --enable-attribute-editing flag.
534    
535            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
536            editing is enabled use the grid ctrl which allows editing of the
537            values
538    
539            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
540            New. Just delegate this to the underlying table.
541    
542    2003-11-20  Bernhard Herzog  <[email protected]>
543    
544            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
545            Skip this test if run under non-posix systems since it only works
546            there
547    
548    2003-11-19  Bernhard Herzog  <[email protected]>
549    
550            * Thuban/Model/resource.py: Rework the way gdal support is
551            determined so that we can give a reason in the about why gdal is
552            not supported.
553            (gdal_support_status): New. Variable holding a string with the
554            reason for no gdal support
555    
556            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
557            not supported to the message
558    
559    2003-11-19  Bernhard Herzog  <[email protected]>
560    
561            Remove the old table interface and its test cases
562    
563            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
564            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
565            anymore
566    
567            * Thuban/Model/transientdb.py (TransientTableBase)
568            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
569            anymore
570    
571            * test/test_table.py: Removed since the old interface it tests is
572            gone.
573    
574            * test/runtests.py (main): The old table interface is gone and
575            with it the deprecation warnings so remove the code that turns
576            these warnings into errors
577    
578    2003-11-19  Bernhard Herzog  <[email protected]>
579    
580            * test/test_table.py: Revert to revision 1.5 again. Changing the
581            tests to use the new table interface is completely wrong since the
582            whole purpose of the tests in this module is to test the old
583            interface.
584    
585    2003-11-18  Bernhard Herzog  <[email protected]>
586    
587            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
588            New. Test whether the connection matches a set of connection
589            parameters
590    
591            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
592            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
593            for existing connections with the same parameters and break out of
594            the loop correctly.
595    
596            * test/test_postgis_db.py (TestBriefDescription)
597            (TestPostGISSimple.test_brief_description): Rename
598            TestBriefDescription to TestPostGISSimple and the test method to
599            test_brief_description so that we can add more test methods.
600            (TestPostGISSimple.test_matches_parameters): New. Test the new
601            MatchesParameters method
602    
603    2003-11-18  Bernhard Herzog  <[email protected]>
604    
605            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
606            _was_destroyed, to indicate whether an publisher instance has
607            already been destroyed.
608            (Publisher.Unsubscribe): Only disconnect if the publisher has not
609            been destroyed yet.
610            (Publisher.Destroy): Set the _was_destroyed flag to true.
611    
612            * test/test_connector.py
613            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
614            calling Unsubscribe after Destroy doesn't raise an exception
615    
616    2003-11-14  Bernhard Herzog  <[email protected]>
617    
618            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
619            typo in doc-string
620    
621    2003-11-13  Bernhard Herzog  <[email protected]>
622    
623            Quote table and column names properly for postgis.
624    
625            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
626            quote an identifier for use in an sql statement
627            (PostGISColumn.__init__): Add the quoted_name attribute
628            (PostGISTable.__init__): New instance variable quoted_tablename
629            (PostGISTable._fetch_table_information): Use the quoted table
630            name. New isntance variable quoted_geo_col with a quoted version
631            of geometry_column
632            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
633            (PostGISTable.RowOrdinalToId): Use the quoted table name
634            (PostGISTable.ReadValue, PostGISTable.ValueRange)
635            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
636            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
637            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
638            Use quoted table and column names
639    
640            * test/test_postgis_db.py (TestPostGISSpecialCases)
641            (TestPostGISIgnoredColumns): Rename the class to
642            TestPostGISSpecialCases because that better describes the new
643            cases
644            (TestPostGISSpecialCases.test_unsupported_types)
645            (TestPostGISSpecialCases.test): Rename the method to
646            test_unsupported_types because we need a more descriptive name now
647            that there are more methods
648            (TestPostGISSpecialCases.test_table_name_quoting)
649            (TestPostGISSpecialCases.test_column_name_quoting)
650            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
651            cases to test quoting of table and column names in PostGISTable
652            and PostGISShapeStore
653    
654            * test/postgissupport.py
655            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
656            AddGeometryColumn desn't support table or column names with sapces
657            or double quotes
658    
659    2003-11-12  Jan-Oliver Wagner <[email protected]>
660    
661            * Extensions/wms/__init__.py: New: Init to make this
662            directory a package.
663    
664            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
665    
666    2003-11-11  Bernhard Herzog  <[email protected]>
667    
668            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
669            Constant for the file woth deprecated epsg projections
670            (get_system_proj_file): Update doc-string
671    
672            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
673            above the EPS widgets, introduce a check box for the deprecated
674            eps projections and a label for the epsg widgets
675            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
676            too
677    
678    2003-11-11  Bernhard Herzog  <[email protected]>
679    
680            Avoid warnings when run under Python 2.3
681    
682            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
683            (BaseRenderer.draw_label_layer): Coordinates must be ints.
684    
685            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
686            real method so that we can convert to int.
687            (MapRenderer.label_font): The font size mist be an int.
688    
689            * Thuban/UI/common.py (Color2wxColour): The color values must be
690            ints. Also, remove the unnecessary asserts.
691    
692            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
693            (TestUnicodeStrings.test): Python source code should not contain
694            non-ascii characters unless an encoding is specified in the file.
695            Therefore use \x escapes in the string literals for non-ascii
696            characters.
697    
698    2003-11-11  Bernhard Herzog  <[email protected]>
699    
700            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
701            parameter so that this function can be used for all proj files in
702            Resource/Projections
703            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
704            get_system_proj_file
705    
706            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
707            ProjFile self.__sysProjFile use a dictionary of system ProjFile
708            objects self._sys_proj_files
709            (ProjFrame.build_dialog): Adapt to the new changes in the
710            ProjectionList constructor. Add a check button to toggle whether
711            EPSG projections are shown
712            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
713            events.
714            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
715            the busy cursor if the files have not yet been loaded by the
716            dialog.
717            (ProjFrame.load_system_proj): Add a parameter for the name of the
718            proj file. Maintain the dictionary of system projections
719            self._sys_proj_files
720    
721            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
722            user_projs parameters into one parameter proj_files which is a
723            list of proj files.
724            (ProjectionList._subscribe_proj_files)
725            (ProjectionList._unsubscribe_proj_files): New. Move
726            subscription/unsubscription of projfile messages to separate
727            methods
728            (ProjectionList.Destroy): The unsubscribe is now done in
729            _unsubscribe_proj_files
730            (ProjectionList.update_projections): We now have a list of proj
731            file objects
732            (ProjectionList.SetProjFiles): New method to set a new list of
733            proj file objects
734    
735            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
736            Specify explicitly which system proj file to load.
737    
738    2003-11-11  Bernhard Herzog  <[email protected]>
739    
740            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
741            instance variables to cut cyclic references. The GC would have
742            collected the loader eventually but it can happen that it doesn't
743            run at all until thuban is closed (2.3 but not 2.2 tries a bit
744            harder and forces a collection when the interpreter terminates)
745            (load_session): Call the handler's Destroy method to make sure
746            that it gets garbage collected early. Otherwise it will be
747            collected very late if at all and it holds some references to e.g.
748            shapestores and the session which can lead to leaks (of e.g. the
749            temporary files)
750    
751            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
752            resource leak in load_session
753    
754    2003-11-10  Bernhard Herzog  <[email protected]>
755    
756            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
757            extensions are to be rendered.
758            (_renderer_extensions): New. List with renderer for layers in
759            extensions
760            (add_renderer_extension): New. Add a renderer extension
761            (init_renderer_extensions): New. Init the renderer extensions
762            (BaseRenderer.render_map_incrementally): Search
763            _renderer_extensions for how to draw unknown layer types
764            (BaseRenderer.draw_raster_data): Add format parameter so that
765            formats other than BMP can be drawn
766            (BaseRenderer.draw_raster_layer): Pass an explicit format to
767            draw_raster_data
768    
769            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
770            strings of the format parameter of draw_raster_data method to wx
771            constants
772            (MapRenderer.draw_raster_data): Add the format parameter and use
773            raster_format_map to map it to the right wxwindows constant for
774            wxImageFromStream
775    
776            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
777            the format parameter and record it
778            (TestBaseRenderer.test_raster_no_projection): check the format
779            paramter of the draw_raster_data method
780            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
781            extension facility
782    
783    2003-11-07  Bernhard Herzog  <[email protected]>
784    
785            Tweak the usage of the sqlite database to make common use cases
786            more responsive. In most cases copying the data to the sqlite
787            database takes so long that using sqlite doesn't have enough
788            advantages.
789    
790            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
791            comments about performance and query the min and max in separate
792            statements because only that way will indexes be used.
793            (TransientTableBase.UniqueValues): Add some comments about
794            performance.
795            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
796            Do not copy the data to the transient DB but use the transient
797            copy if it exists. See the new comments for the performance trade
798            offs
799    
800            * test/test_transientdb.py
801            (TestTransientTable.test_auto_transient_table): Make sure that the
802            data is copied to the transient database at some point.
803    
804    2003-11-03  Bernhard Herzog  <[email protected]>
805    
806            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
807            globals to locals so that it's a bit faster
808    
809    2003-11-03  Bernhard Herzog  <[email protected]>
810    
811            * Thuban/UI/baserenderer.py
812            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
813            method. ReadValue is faster than ReadRowAsDict since it only reads
814            one cell especially now that the dbf file objects actually
815            implement it.
816    
817            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
818            read_attribute method of the dbf objects
819    
820    2003-11-03  Bernhard Herzog  <[email protected]>
821    
822            * Extensions/profiling/profiling.py (popup_dialog_box): New config
823            variable to indicate whether the result should be shown in a
824            dialog box
825            (profile_screen_renderer, time_screen_renderer): Only show a
826            dialog box if popup_dialog_box is true.
827            (profile_screen_renderer): Flush stdout after the printing the
828            first part of the "profiling..." message
829    
830            * Thuban/UI/baserenderer.py
831            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
832            brushes for the groups so that they're not created over and over
833            again
834    
835            * Thuban/Model/classification.py (Classification.__getattr__)
836            (Classification._compile_classification)
837            (Classification._clear_compiled_classification): New. Methods to
838            manage a 'compiled' representation of the classification groups
839            which is created on demand
840            (Classification.InsertGroup, Classification.RemoveGroup)
841            (Classification.ReplaceGroup): reset the compiled representation
842            (Classification.FindGroup): Use the compiled representation to
843            find the matching group
844            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
845    
846    2003-10-31  Bernhard Herzog  <[email protected]>
847    
848            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
849            Send a CLASS_CHANGED message
850            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
851            not return the removed group since it wasn't used.
852    
853            * test/test_classification.py
854            (TestClassification.test_set_default_group): New. Test the
855            SetDefaultGroup method
856            (TestClassification.test_insert_group): New. Test the InsertGroup
857            method
858            (TestClassification.test_remove_group): New. Test the RemoveGroup
859            method
860            (TestClassification.test_replace_group): New. Test the
861            ReplaceGroup method
862    
863    2003-10-31  Bernhard Herzog  <[email protected]>
864    
865            * test/test_classification.py (TestClassification.setUp):
866            Subscribe to the CLASS_CHANGED messages
867            (TestClassification.tearDown): New. Destroy the classification
868            properly
869            (TestClassification.test_defaults): Add tests for the default line
870            width and whether no messages were sent yet
871            (TestClassification.test_set_default_properties): Add tests for
872            messages and setting the default line width
873            (TestClassification.test_add_singleton)
874            (TestClassification.test_add_range)
875            (TestClassification.test_multiple_groups): Add tests for messages
876    
877    2003-10-31  Bernhard Herzog  <[email protected]>
878    
879            Some more refactoring in preparation for new tests:
880    
881            * test/test_classification.py (TestClassification.setUp): New.
882            Instantiate the classification here. Update the test methods
883            accordingly.
884            (TestClassification.test_multiple_groups): Make sure that the two
885            singletons matching 1 are considered different.
886    
887    2003-10-31  Bernhard Herzog  <[email protected]>
888    
889            * test/test_classification.py (red, green, blue): New. These
890            constants were used in several cases. Update the relevant methods.
891            (TestClassification.test_defaults)
892            (TestClassification.test_set_default_properties)
893            (TestClassification.test_add_singleton)
894            (TestClassification.test_add_range)
895            (TestClassification.test_multiple_groups)
896            (TestClassification.test_deepcopy): New. These were formerly all
897            part of the single method test.
898            (TestClassification.test_deepcopy): Removed.
899            (TestClassIterator): Removed. The test case is now a method of
900            TestClassification since it tests part of the public interface of
901            Classification
902            (TestClassification.test_iterator): New. Used to be
903            TestClassIterator effectively
904    
905    2003-10-31  Jan-Oliver Wagner <[email protected]>
906    
907            GUIfied the functions of the profiling extension.
908    
909            * /Extensions/profiling/__init__.py: New: Init to make this
910            directory a package.
911    
912            * Extensions/profiling/profiling.py: Moved menu entries to
913            the Extensions menu. Applied _() for strings.
914            (profile_screen_renderer): Catch the detailed printout and present
915            it in a dialog.
916            (time_screen_renderer): Raise a dialog to present the result instead
917            of printing it to stdout.
918    
919    2003-10-31  Bernhard Herzog  <[email protected]>
920    
921            * test/test_classification.py (TestClassGroupProperties)
922            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
923            (TestClassGroupSingleton, TestClassIterator, TestClassification):
924            Split TestClassification into several classes, one for each class
925            being tested. TestClassification itself now only tests
926            Classification. This split makes changes to the tests a bit easier
927    
928    2003-10-31  Bernhard Herzog  <[email protected]>
929    
930            * Extensions/profiling/profiling.py: New. Extension to measure
931            Thuban performance
932    
933    2003-10-31  Frank Koormann <[email protected]>
934    
935            Added two items to legend popup menu: Remove Layer and Show Layer Table
936    
937            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
938            LegendPanel._OnShowTable): New event handlers, call the corresponding
939            mainwindow methods.
940            (LegendTree._OnRightClick): Added items to popup menu.
941    
942  2003-10-30  Bernhard Herzog  <[email protected]>  2003-10-30  Bernhard Herzog  <[email protected]>
943    
944          * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle          * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle

Legend:
Removed from v.1894  
changed lines
  Added in v.2073

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26