/[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 1939 by bh, Tue Nov 11 18:17:09 2003 UTC revision 2107 by bh, Fri Mar 12 12:59:40 2004 UTC
# Line 1  Line 1 
1    2004-03-12  Bernhard Herzog  <[email protected]>
2    
3            Support views in addition to normal tables in the postgis
4            shapestore
5    
6            * Thuban/Model/postgisdb.py
7            (PostGISShapeStore._fetch_table_information): Add a fallback for
8            the case where the table name is not in the geometry_columns
9            table.  This is usually the case for views.  Also, set
10            self.shapestore here.
11            (PostGISShapeStore.ShapeType): No need to query the database all
12            the time.  The shape type is now determined in
13            _fetch_table_information
14    
15            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
16            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
17            New parameter to specify views.
18            (PostGISDatabase.has_data): Also compare the views.  New views
19            parameter
20            (PostGISDatabase.initdb): Create the views.
21            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
22            view
23    
24            * test/test_postgis_db.py
25            (TestPostGISShapestorePointFromViews): New.  Test a
26            PostGISShapeStore with a view
27            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
28            the geometry_column explicitly to test whether that works
29    
30    2004-03-12  Bernhard Herzog  <[email protected]>
31    
32            Final step for explicit id/geometry columns: Loading and saving
33    
34            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
35            with the following changes:
36            (dbshapesource): Two new attributes id_column and geometry_column
37    
38            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
39            (SessionSaver.write_session): Use the new namespace
40            (SessionSaver.write_data_containers): Write the new dbshapesource
41            parameters
42    
43            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
44            the new file format version
45            (SessionLoader.start_dbshapesource): Handle the new db parameters
46    
47            * test/test_save.py: Update to the new dtd and namespace
48            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
49            mock object to provide a working IDColumn method.
50    
51            * test/test_load_1_0.py: New.  Copy of the test_load.py before
52            today's changes but with the round-trip tests removed.
53    
54            * test/test_load_0_9.py: Update doc-string.
55    
56            * test/test_load.py: Update all .thuban files to the new dtd and
57            namespace.
58            (TestPostGISLayer.file_contents): Add the new dbshapesource
59            paramters
60    
61    2004-03-11  Bernhard Herzog  <[email protected]>
62    
63            Next step for explicit id/geometry columns: User interaction
64    
65            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
66            the dialog is constructed. Add combo boxes to select id and
67            geometry column.  Rename some instance variables.
68            (ChooseDBTableDialog.GetTable): Return id and geometry column
69            names
70            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
71            selections in the table list
72    
73            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
74            and geometry_column
75    
76            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
77            parameters for id_column and geometry column of PostGISShapeStore
78            here as well.
79    
80            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
81            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
82            (PostGISConnection.GeometryTables): Use a better query to
83            determine which relations in the database might be usable for
84            shapestores.  Now supports views as well but is more PostgreSQL
85            specific
86            (PostGISConnection.table_columns): New. Somewhat experimental
87            method to let the db dialogs provide lists of columns to users so
88            that they can select id and geometry columns.
89            (PostGISTable.__init__): The default value of the id_column
90            parameter is now None it still means "gid" effectively, though.
91            (PostGISTable.IDColumn): New introspection method to return a
92            column object for the id column
93            (PostGISShapeStore.GeometryColumn): New introspection method to
94            return a column object for the geometry column
95    
96            * test/test_postgis_db.py
97            (TestPostGISConnection.test_gis_tables_non_empty):
98            Removed. Subsumed by the new:
99            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
100            New. Tes the GeometryTables and table_columns methods with actual
101            tables and views.
102            (PointTests.test_id_column, PointTests.test_geometry_column):
103            New. tests for the new methods.
104            (TestPostGISShapestorePoint.setUp)
105            (TestPostGISShapestorePointSRID.setUp)
106            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
107            instance variables needed by the new tests
108    
109    2004-03-11  Bernhard Herzog  <[email protected]>
110    
111            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
112            numbers given to ReadValue are ordinals.
113    
114    2004-03-11  Bernhard Herzog  <[email protected]>
115    
116            Elimiate the requirement for PostGIS tables to have a column
117            called "gid".
118    
119            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
120            id_column to specify which column to use to identify rows.  Also
121            new instance variables id_column and quoted_id_column
122            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
123            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
124            (PostGISTable.SimpleQuery): Use the id column name provided to the
125            constructor instead of "gid"
126            (PostGISShapeStore.__init__): New parameter id_column analogously
127            to PostGISTable.__init__.  This parameter is simply passed through
128            to the base class constructor
129            (PostGISShapeStore._create_col_from_description): Fix typo in
130            doc-string
131            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
132            (PostGISShapeStore.ShapesInRegion): Use the id column name
133            provided to the constructor instead of "gid"
134    
135            * test/postgissupport.py
136            (PostgreSQLServer.get_default_static_data_db): New static table
137            landmarks_point_id with an id column != "gid.  Update the comments
138            a bit.
139            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
140            doc-
141            (upload_shapefile): New parameter gid_column to use a name other
142            than "gid" for the column to store the shape ids
143    
144            * test/test_postgis_db.py (TableTests): New.  Mixin-class
145            containing all tests previously in TestPostGISTable.  The actual
146            tests are the same but the code is a bit more configurable to
147            allow for different id columns etc.
148            (TestPostGISTable): Derive from TableTests now for the actual
149            tests.
150            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
151            except that it the landmarks_point_id table to test the id_column
152            parameter
153            (PointTests): Extend the doc-string
154            (TestPostGISShapestorePointExplicitGIDColumn)
155            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
156            from PointTests to test the explicit id_column parameter.  One
157            tests with the name of the column holding the shape ids, the other
158            uses PostgreSQL's OID column.  For the latter a number of methods
159            have to be overwritten to make them independent of the actual id
160            values.
161    
162    2004-03-08  Silke Reimer  <[email protected]>
163    
164            Update debian directory:
165    
166            * debian/changelog: Added new version.
167            * deiban/rules: Updated management of patches (with cbds)
168            * debian/control: Added cbds to dependencies
169            * debian/patches/*: New. Adds better support for patches of thuban in
170                            debian
171            * debian/menu: Syntax of menu changed slightly
172            * debian/setup.py.patch: removed because it has been moved to
173                            debian/patechs/setup.py.patch
174            
175    
176    2004-02-26  Bernhard Herzog  <[email protected]>
177    
178            Create the Doc/technotes directory for text files with information
179            for developers
180    
181            * Doc/technotes/README: New. README for the technotes
182    
183            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
184            Thuban
185    
186            * Doc/technotes/release_process.txt: New. Used to be
187            HOWTO-Release.  Now slightly adapted to technote formatting style.
188    
189            * HOWTO-Release: Removed.  It's contents are now in
190            Doc/technotes/release_process.txt
191    
192    2004-02-25  Bernhard Herzog  <[email protected]>
193    
194            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
195            version of wxWindows the module was compiled with so we can check
196            that against the wxPython version.
197    
198            * Thuban/version.py (thuban_branch, thuban_release): New variables
199            controlling which and how Thuban versions are shown.  See the
200            comments for details.
201            (verify_versions): Also check that the wx version that wxproj is
202            compiled against matches that of the wxPython we use at runtime
203    
204    2004-02-20  Bernhard Herzog  <[email protected]>
205    
206            * Extensions/wms/wms.py (epsg_code_to_projection): Use
207            get_system_proj_file to read the epsg projections.  The old way
208            depended on the current directory being the top Thuban directory.
209    
210    2004-02-20  Bernhard Herzog  <[email protected]>
211    
212            * Extensions/svgexport/test/test_svgmapwriter.py
213            (TestVirtualDC.test_clippath): Remove a debug print
214    
215    2004-02-20  Bernhard Herzog  <[email protected]>
216    
217            * Extensions/svgexport/__init__.py: New.  Turn
218            Extensions/svgexport into a package.
219    
220            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
221            doc-string a bit.  The doc-string must come first, otherwise it's
222            not a doc-string.  The __future__ import must be the first thing
223            after the doc-string.  Use only double quotes in doc-strings.
224            Single quotes trip up emacs syntax highlighting if the text
225            contains apostrophes.
226    
227    2004-02-20  Bernhard Herzog  <[email protected]>
228    
229            * Extensions/svgexport/test/__init__.py,
230            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
231            suite for svgexport
232    
233            * test/runtests.py (find_test_modules): New. Function with the
234            module finding code from main.
235            (main): Use find_test_modules to figure out the default test
236            modules and take modules from Extensions.svgexport.test too.
237    
238    2004-02-19  Bernhard Herzog  <[email protected]>
239    
240            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
241            the mainwindow has a reference to the map of the initial session.
242            This fixes a bug introduced with the fix for RT#2245
243    
244    2004-02-19  Bernhard Herzog  <[email protected]>
245    
246            * Extensions/svgexport/svgsaver.py,
247            Extensions/svgexport/svgmapwriter.py,
248            Extensions/svgexport/maplegend.py: Added again.  This time in the
249            correct place.
250    
251    2004-02-17  Bernhard Herzog  <[email protected]>
252    
253            Fix for RT#2245
254    
255            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
256            instance variables before trying to create any windows.  Creating
257            windows can start an event loop if e.g. message boxes are popped
258            up for some reason, and event handlers, especially EVT_UPDATE_UI
259            may want to access things from the application.
260            (ThubanApplication.maps_changed): The mainwindow may not have been
261            created yet, so check whether it has been created before calling
262            its methods
263    
264            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
265            have a map
266    
267    2004-02-17  Bernhard Herzog  <[email protected]>
268    
269            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
270            Extensions/svgmapwriter.py, Extensions/maplegend.py,
271            extensions/svgexport/svgsaver.py,
272            extensions/svgexport/svgmapwriter.py,
273            extensions/svgexport/maplegend.py: Removed.  These files were in
274            the wrong places or didn't work at all.
275    
276    2004-02-16  Bernhard Herzog  <[email protected]>
277    
278            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
279            line
280    
281    2004-02-16  Bernhard Herzog  <[email protected]>
282    
283            * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
284    
285    2004-02-15  Markus Rechtien  <[email protected]>
286            
287            * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
288            to write a session to a file in SVG format.
289            * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
290            to write a SVG map of a session.
291            * Extensions/svgexport/maplegend: New. Writes a basic maplegend
292            in SVG format for the current session.
293    
294    2004-02-13  Bernhard Herzog  <[email protected]>
295    
296            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
297            can't be created, return immediately after displaying the error
298            message.
299    
300    2004-02-11  Bernhard Herzog  <[email protected]>
301    
302            Handle postgis tables with more than one geometry column.
303    
304            * Thuban/Model/postgisdb.py
305            (PostGISTable._fetch_table_information): Delegate the creation of
306            column objects to a different method so that we can extend that in
307            derived classes
308            (PostGISTable._create_col_from_description): New. Column object
309            creation part of _fetch_table_information
310            (PostGISShapeStore._create_col_from_description): New. Extend
311            inherited method to handle geometry columns
312            (PostGISShapeStore.__init__): New parameter geometry_column to
313            specify which geometry column to use.  Optional but mandatory for
314            tables with more than one geometry column
315            (PostGISShapeStore._fetch_table_information): Also use the name of
316            the geometry column when looking for the srid
317            (PostGISShapeStore.ShapeType): Also use the name of the geometry
318            column when looking for the shape type
319    
320            * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
321            NonConnectionStore to changes in the PostGISShapeStore
322    
323            * test/test_postgis_db.py
324            (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
325            PostGISShapeStore with tables having two geometry columns.
326    
327    2004-02-10  Bernhard Herzog  <[email protected]>
328    
329            Fix some postgis problems.  What remains to be done is real
330            handling of SRIDs as they affect how reprojection is done
331    
332            * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
333            doc-string
334            (PostGISShapeStore._fetch_table_information): New. Extend
335            inherited method to retrieve srid
336            (PostGISShapeStore.BoundingBox): Handle tables without data.
337            extent yields NULL for those
338            (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
339    
340            * test/test_postgis_db.py
341            (TestPostGISSpecialCases.test_shapestore_empty_table): New test
342            for the special case of a table without any data
343            (TestPostGISShapestorePointSRID): New class with tests for a table
344            that uses srids
345            (PolygonTests): Fix a doc-string typo
346    
347            * test/postgissupport.py (PostGISDatabase.__init__): New parameter
348            reference_systems with a specification of spacial reference
349            systems to create in the new db.
350            (PostgreSQLServer.new_postgis_db)
351            (PostgreSQLServer.get_static_data_db): New parameter
352            reference_systems to be passed through ultimately to
353            PostGISDatabase.  In new_postgis_db also check whether an existing
354            db already has the right srids
355            (PostgreSQLServer.get_default_static_data_db): Add srids and a
356            table that uses srids
357            (PostGISDatabase.initdb): Create the entries for the reference
358            systems
359            (PostGISDatabase.has_data): Add reference_systems parameter to
360            check for those too
361            (upload_shapefile): New parameter srid to create tables with a
362            specific srid
363    
364    2004-02-06  Frank Koormann  <[email protected]>
365    
366            * po/pt_BR.po: Fixed charset
367    
368    2004-02-05  Frank Koormann  <[email protected]>
369    
370            * po/pt_BR.po: Fixed format string for error message, missing %s
371            added (Thuban/UI/application.py:273)
372    
373    2004-02-03  Frank Koormann  <[email protected]>
374            
375            First version of Portuguese (Brazilian) translation
376    
377            * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
378            Brazilian Portuguese by Eduardo Patto Kanegae.
379    
380            * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
381            translators.
382    
383    
384    2004-01-22  Frank Koormann  <[email protected]>
385    
386            * Doc/manual/thuban-manual.xml: Added section on installation of
387            Thuban under Win32 systems. Fixed image path references in the postgis
388            section. Some minor source formattings.
389    
390    2004-01-21  Frank Koormann  <[email protected]>
391    
392            Make Thuban remember path selections (at least for one application run).
393    
394            * Thuban/UI/application.py (Application.OnInit): Initialize path as a
395            attribute of application object. Path is a dictionary of
396            strings, currently with the items "data" and "projection".  
397            (Application.SetPath): New, stores path for the specified item.
398            (Application.Path): New, return path for the specified item.
399    
400            * Thuban/UI/mainwindow.py
401            (MainWindow.OpenSession, MainWindow.SaveSessionAs,
402            MainWindow.AddLayer, MainWindow.AddRasterLayer,
403            MainWindow.TableOpen): Access "data" path information of the
404            application.
405            
406            * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
407            Access "projection" path information of the application.
408    
409    2004-01-05  Bernhard Herzog  <[email protected]>
410    
411            * po/ru.po: Updated translations from Alex Shevlakov
412    
413    2004-01-05  Bernhard Herzog  <[email protected]>
414    
415            * po/Makefile, po/README: Move the description of how to generate
416            the translation statistics to the README.
417    
418    2003-12-23  Bernhard Herzog  <[email protected]>
419    
420            * NEWS: Update for 1.0.0
421    
422            * po/it.po: Another update from Maurizio Napolitano
423    
424    2003-12-23  Bernhard Herzog  <[email protected]>
425    
426            * po/it.po: Updated translation from Maurizio Napolitano
427    
428    2003-12-23  Bernhard Herzog  <[email protected]>
429    
430            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
431            for translation
432    
433            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
434            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
435            strings for translation
436    
437            * po/de.po: Update with the newly marked strings.
438    
439    2003-12-22  Bernhard Herzog  <[email protected]>
440    
441            * HOWTO-Release: Fix the places where version numbers have to be
442            updated
443    
444    2003-12-22  Bernhard Herzog  <[email protected]>
445    
446            * setup.py (setup call): 1.0.0, yeah!
447    
448            * Thuban/version.py (longversion): 1.0.0, yeah!
449    
450            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
451            1.0.0 namespace too
452    
453            * Thuban/Model/save.py (SessionSaver.write_session): Save with
454            1.0.0 namespace
455    
456            * test/test_load.py (LoadSessionTest.dtd)
457            (TestSingleLayer.file_contents)
458            (TestNonAsciiColumnName.file_contents)
459            (TestLayerVisibility.file_contents)
460            (TestClassification.file_contents, TestLabels.file_contents)
461            (TestLayerProjection.file_contents)
462            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
463            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
464            (TestPostGISLayerPassword.file_contents)
465            (TestLoadError.file_contents, TestLoadError.test): Update for
466            1.0.0 namespace
467    
468            * test/test_save.py (SaveSessionTest.dtd)
469            (SaveSessionTest.testEmptySession)
470            (SaveSessionTest.testSingleLayer)
471            (SaveSessionTest.testLayerProjection)
472            (SaveSessionTest.testRasterLayer)
473            (SaveSessionTest.testClassifiedLayer)
474            (SaveSessionTest.test_dbf_table)
475            (SaveSessionTest.test_joined_table)
476            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
477    
478    2003-12-22  Bernhard Herzog  <[email protected]>
479    
480            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
481            alignment flags are byte strings not unicode and that they have
482            valid values
483    
484            * test/test_load.py (TestLabelLayer): New. Test loading (and
485            indirectly saving) of maps with labels.
486    
487    2003-12-22  Bernhard Herzog  <[email protected]>
488    
489            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
490            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
491            unsubscribe all subscribers.
492            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
493            self.grid since it may already have been destroyed.
494            Fixes RT #2256
495    
496    2003-12-19  Bernhard Herzog  <[email protected]>
497    
498            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
499    
500    2003-12-16  Bernhard Herzog  <[email protected]>
501            
502            * debian/bitmappath.patch, debian/setup.py.patch:
503                    added to ensure compliance with FHS for debian
504            * debian/rules, debian/changelog:
505                added patches in rules to ensure compliance with FHS for debian
506    
507    2003-12-16  Bernhard Herzog  <[email protected]>
508    
509            * po/Makefile (mo): Make the output a bit nicer so that it prints
510            statistics about the translations. Add a comment how produce even
511            nicer statistics with sed.
512    
513    2003-12-09  Frank Koormann   <[email protected]>
514    
515            * Resources/Projections/defaults.proj:
516            French projection sample with correct accents (UNICODE).
517    
518    2003-12-05  Bernhard Herzog  <[email protected]>
519    
520            * MANIFEST.in: Add the devtools directory
521    
522            * setup.py (setup call): Use license instead of licence. This
523            silences a deprecation warning on Python 2.3
524    
525    2003-12-05  Frank Koormann   <[email protected]>
526    
527            Documentation synced with 1.0rc1
528    
529            * Doc/manual/thuban-manual.xml:
530            Minor formatting changes and references to database layers .
531            Introduction.Internationalization: New section on i18n.
532            MapManagement.AddingandRemovingLayers: Added item on database layers.  
533            MapManagement.TheLegend: Added section and screenshot on popup menu.
534            ProjectionManagement: Updated screenshot and sentence on EPSG.
535            Appendix.SupportedDataSources: Added PostGIS.
536            Appendix.WorkingwithPostGIS: New section.
537    
538            * Doc/manual/images/6_projection.png: Updated screenshot including
539            EPSG checkboxes.
540    
541            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
542    
543            * Doc/manual/images/app_postgis_add_layer.png,
544            Doc/manual/images/app_postgis_db_add.png,
545            Doc/manual/images/app_postgis_db_management.png:
546            New screenshots focussing on database layers
547    
548    2003-12-05  Frank Koormann   <[email protected]>
549    
550            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
551            write warning to stderr instead of rising a warning dialog
552    
553    2003-12-03  Bernhard Herzog  <[email protected]>
554    
555            Fix for RT #2243
556    
557            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
558            New. Like has_selected_layer but for shape layers only
559            (_has_selected_shape_layer): New. Like _has_selected_layer but for
560            shape layers only
561            (layer_show_table command, layer_jointable command): Use these
562            commands should only be available for shape layers
563    
564    2003-12-03  Bernhard Herzog  <[email protected]>
565    
566            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
567            publishers that are wx objects and may have been destroyed by wx
568            already. Fixes RT #2242.
569    
570    2003-12-03  Bernhard Herzog  <[email protected]>
571    
572            * po/ru.po: Updates from Alex Shevlakov
573    
574    2003-12-03  Silke Reimer <silkeintevation.de>
575    
576            * debian/control, debian/changelog: Added gdal-support to
577                    debian package, updated to new thuban version
578    
579    
580    2003-12-03  Bernhard Herzog  <[email protected]>
581    
582            * Thuban/Lib/version.py: New. Module for version number
583            manipulations. The version of make_tuple here also deals better
584            with more unusual version number strings, such as e.g.
585            "1.2+cvs20031111"
586    
587            * Thuban/version.py (make_tuple): Removed. It's now in
588            Thuban.Lib.version. Use that implementation instead.
589    
590            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
591    
592    2003-12-02  Bernhard Herzog  <[email protected]>
593    
594            * MANIFEST.in: Add debian files
595    
596            * setup.py (setup call): Add packages for the Extensions so that
597            they're installed too
598            (data_files): Add READMEs and sample data from some Extensions
599    
600            * NEWS: Add note about the extensions in binary packages
601    
602    2003-12-02  Bernhard Herzog  <[email protected]>
603    
604            * Thuban/Model/save.py (SessionSaver.write_session): Save files
605            with the thuban-1.0rc1
606    
607            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
608            thuban-1.0rc1 namespace too
609    
610            * test/test_save.py (SaveSessionTest.dtd)
611            (SaveSessionTest.testEmptySession)
612            (SaveSessionTest.testSingleLayer)
613            (SaveSessionTest.testLayerProjection)
614            (SaveSessionTest.testRasterLayer)
615            (SaveSessionTest.testClassifiedLayer)
616            (SaveSessionTest.test_dbf_table)
617            (SaveSessionTest.test_joined_table)
618            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
619            namespace
620    
621            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
622            namespace
623            (TestSingleLayer.file_contents)
624            (TestNonAsciiColumnName.file_contents)
625            (TestLayerVisibility.file_contents)
626            (TestClassification.file_contents, TestLabels.file_contents)
627            (TestLayerProjection.file_contents)
628            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
629            (TestPostGISLayer.file_contents)
630            (TestPostGISLayerPassword.file_contents)
631            (TestLoadError.file_contents, TestLoadError.test): Update to
632            thuban-1.0rc1 namespace
633    
634    2003-12-01  Bernhard Herzog  <[email protected]>
635    
636            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
637            nt to better match Intevation's current w32 setup
638    
639            * HOWTO-Release: Add note about updating MANIFEST.in
640    
641            * MANIFEST.in: Add the Extensions
642    
643            * NEWS: Update for 1.0rc1
644    
645    2003-12-01  Bernhard Herzog  <[email protected]>
646    
647            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
648            cards for the dialog so that shapefiles ending in all uppercase
649            SHP are listed too
650    
651    2003-11-28  Bernhard Herzog  <[email protected]>
652    
653            * Thuban/version.py (longversion): Update to 1.0rc1
654    
655            * setup.py (setup call): Update version to 1.0rc1. Use the
656            [email protected] email address as author email instead of my
657            personal one.
658    
659    2003-11-28  Bernhard Herzog  <[email protected]>
660    
661            * po/de.po: Update german translation.
662    
663    2003-11-28  Bernhard Herzog  <[email protected]>
664    
665            Unify the filenames stored in .thuban files so that the .thuban
666            files are more platform independend
667    
668            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
669            that they can be used on both windows and unix
670            (SessionSaver.prepare_filename): New. Handle all filename
671            transformations for filenames stored in the thuban file
672            (SessionSaver.write_data_containers, SessionSaver.write_layer):
673            Use prepare_filename
674    
675            * test/test_save.py (SaveSessionTest.testSingleLayer)
676            (SaveSessionTest.testLayerProjection)
677            (SaveSessionTest.testRasterLayer)
678            (SaveSessionTest.testClassifiedLayer)
679            (SaveSessionTest.test_dbf_table)
680            (SaveSessionTest.test_joined_table): Filenames are always stored
681            with slashes on all currently supported platforms so adapt all
682            tests to this
683    
684            * test/test_load.py (LoadSessionTest.filenames): With the new
685            filename scheme the filenames in the tests should be
686            understandable on all currently supported platforms so we turn
687            this into an empty list because we don't have to normalize them
688            anymore
689    
690    2003-11-28  Bernhard Herzog  <[email protected]>
691    
692            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
693            Add the ellipsoid to the projection since some Proj versions
694            complain if it's missing.
695    
696    2003-11-27  Bernhard Herzog  <[email protected]>
697    
698            Corect some bounding box projection problems
699    
700            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
701            version of ForwardBBox
702            (Projection._transform_bbox): New. common implementation of
703            ForwardBBox and InverseBBox
704            (Projection.ForwardBBox): Use _transform_bbox.
705    
706            * test/test_proj.py (TestProjection.test): Add test for
707            InverseBBox
708    
709            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
710            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
711            new InverseBBox method to determine the unprojected bounding box
712            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
713            bbox.
714    
715            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
716            Removed.
717            (TestLayer.test_arc_layer_with_projection): New. This test is
718            better able to test whether bounding boxes are projected correctly
719            than test_point_layer_with_projection
720    
721            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
722            InverseBBox to unproject bboxes
723    
724    2003-11-25  Bernhard Herzog  <[email protected]>
725    
726            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
727            source code.
728    
729    2003-11-25  Bernhard Herzog  <[email protected]>
730    
731            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
732            there for backwards compatibility and all code relying on that
733            should have been updated by now.
734    
735    2003-11-25  Bernhard Herzog  <[email protected]>
736    
737            * test/test_load.py (TestClassification.test): Add the missing
738            round trip test.
739            (TestClassification.file_contents): Update to the newest file
740            format
741    
742    2003-11-25  Bernhard Herzog  <[email protected]>
743    
744            Add very experimental (and possibly dangerous) extension to draw
745            polygons:
746    
747            * Extensions/drawshape/README: New. Brief installation
748            instructions
749    
750            * Extensions/drawshape/drawshape.py: New. Implementation of the
751            drawshape extensions
752    
753            * Extensions/drawshape/patch.diff: Patch to apply before the
754            extension can be used.
755    
756    2003-11-24  Bernhard Herzog  <[email protected]>
757    
758            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
759            (ShapefileStore.__init__): Factor opening the shapefile into a
760            separate method (the new _open_shapefile). This makes the code a
761            bit more readable but the real reason is that it makes some evil
762            hacks easier. :-)
763    
764    2003-11-24  Bernhard Herzog  <[email protected]>
765    
766            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
767            converter is specified for an attribute assume it's a string
768            containing only Latin1 characters. Update doc-string accordingly.
769            This change should fix many places where unicode objects might
770            accidentally enter Thuban.
771    
772            * test/test_load.py (TestNonAsciiColumnName): New test to check
773            what happens with column names in DBF files that contain non-ascii
774            characters
775    
776    2003-11-21  Bernhard Herzog  <[email protected]>
777    
778            Enable the experimental attribute editing again and introduce a
779            command line switch to actually activate it
780    
781            * Thuban/UI/main.py (options): New. Container for options set on
782            the commmand line
783            (main): Add the --enable-attribute-editing flag.
784    
785            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
786            editing is enabled use the grid ctrl which allows editing of the
787            values
788    
789            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
790            New. Just delegate this to the underlying table.
791    
792    2003-11-20  Bernhard Herzog  <[email protected]>
793    
794            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
795            Skip this test if run under non-posix systems since it only works
796            there
797    
798    2003-11-19  Bernhard Herzog  <[email protected]>
799    
800            * Thuban/Model/resource.py: Rework the way gdal support is
801            determined so that we can give a reason in the about why gdal is
802            not supported.
803            (gdal_support_status): New. Variable holding a string with the
804            reason for no gdal support
805    
806            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
807            not supported to the message
808    
809    2003-11-19  Bernhard Herzog  <[email protected]>
810    
811            Remove the old table interface and its test cases
812    
813            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
814            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
815            anymore
816    
817            * Thuban/Model/transientdb.py (TransientTableBase)
818            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
819            anymore
820    
821            * test/test_table.py: Removed since the old interface it tests is
822            gone.
823    
824            * test/runtests.py (main): The old table interface is gone and
825            with it the deprecation warnings so remove the code that turns
826            these warnings into errors
827    
828    2003-11-19  Bernhard Herzog  <[email protected]>
829    
830            * test/test_table.py: Revert to revision 1.5 again. Changing the
831            tests to use the new table interface is completely wrong since the
832            whole purpose of the tests in this module is to test the old
833            interface.
834    
835    2003-11-18  Bernhard Herzog  <[email protected]>
836    
837            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
838            New. Test whether the connection matches a set of connection
839            parameters
840    
841            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
842            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
843            for existing connections with the same parameters and break out of
844            the loop correctly.
845    
846            * test/test_postgis_db.py (TestBriefDescription)
847            (TestPostGISSimple.test_brief_description): Rename
848            TestBriefDescription to TestPostGISSimple and the test method to
849            test_brief_description so that we can add more test methods.
850            (TestPostGISSimple.test_matches_parameters): New. Test the new
851            MatchesParameters method
852    
853    2003-11-18  Bernhard Herzog  <[email protected]>
854    
855            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
856            _was_destroyed, to indicate whether an publisher instance has
857            already been destroyed.
858            (Publisher.Unsubscribe): Only disconnect if the publisher has not
859            been destroyed yet.
860            (Publisher.Destroy): Set the _was_destroyed flag to true.
861    
862            * test/test_connector.py
863            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
864            calling Unsubscribe after Destroy doesn't raise an exception
865    
866    2003-11-14  Bernhard Herzog  <[email protected]>
867    
868            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
869            typo in doc-string
870    
871    2003-11-13  Bernhard Herzog  <[email protected]>
872    
873            Quote table and column names properly for postgis.
874    
875            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
876            quote an identifier for use in an sql statement
877            (PostGISColumn.__init__): Add the quoted_name attribute
878            (PostGISTable.__init__): New instance variable quoted_tablename
879            (PostGISTable._fetch_table_information): Use the quoted table
880            name. New isntance variable quoted_geo_col with a quoted version
881            of geometry_column
882            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
883            (PostGISTable.RowOrdinalToId): Use the quoted table name
884            (PostGISTable.ReadValue, PostGISTable.ValueRange)
885            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
886            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
887            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
888            Use quoted table and column names
889    
890            * test/test_postgis_db.py (TestPostGISSpecialCases)
891            (TestPostGISIgnoredColumns): Rename the class to
892            TestPostGISSpecialCases because that better describes the new
893            cases
894            (TestPostGISSpecialCases.test_unsupported_types)
895            (TestPostGISSpecialCases.test): Rename the method to
896            test_unsupported_types because we need a more descriptive name now
897            that there are more methods
898            (TestPostGISSpecialCases.test_table_name_quoting)
899            (TestPostGISSpecialCases.test_column_name_quoting)
900            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
901            cases to test quoting of table and column names in PostGISTable
902            and PostGISShapeStore
903    
904            * test/postgissupport.py
905            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
906            AddGeometryColumn desn't support table or column names with sapces
907            or double quotes
908    
909    2003-11-12  Jan-Oliver Wagner <[email protected]>
910    
911            * Extensions/wms/__init__.py: New: Init to make this
912            directory a package.
913    
914            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
915    
916    2003-11-11  Bernhard Herzog  <[email protected]>
917    
918            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
919            Constant for the file woth deprecated epsg projections
920            (get_system_proj_file): Update doc-string
921    
922            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
923            above the EPS widgets, introduce a check box for the deprecated
924            eps projections and a label for the epsg widgets
925            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
926            too
927    
928  2003-11-11  Bernhard Herzog  <[email protected]>  2003-11-11  Bernhard Herzog  <[email protected]>
929    
930          Avoid warnings when run under Python 2.3          Avoid warnings when run under Python 2.3

Legend:
Removed from v.1939  
changed lines
  Added in v.2107

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26