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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26