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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26