/[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 2026 by frank, Tue Dec 9 16:17:01 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]>  2003-12-09  Frank Koormann   <[email protected]>
514    
515          * Resources/Projections/defaults.proj:          * Resources/Projections/defaults.proj:

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26