/[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 2062 by bh, Fri Feb 13 10:46:57 2004 UTC revision 2161 by joey, Sun Apr 11 18:36:10 2004 UTC
# Line 1  Line 1 
1    2004-04-11  Martin Schulze  <[email protected]>
2    
3            * Extensions/wms/infodialog.py: Adjusted the class documentation
4    
5            * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
6            Switch to using Thuban{Begin,End}BusyCursor instead of the pure
7            wxWidgets variants.
8            (WMSLayer.__init__): The epsg_id variable is named top_srs now.
9    
10            * Extensions/wms/infodialog.py: Added an information dialog that
11            will display various information about the WMS current resource,
12            so that additional information such as the title, the abstract,
13            fees and access constraints can be displayed for the user if they
14            are documented in the WMS XML.
15    
16    2004-04-10  Martin Schulze  <[email protected]>
17    
18            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
19            string handling.  It's "foo".lower() and not lower(foo) without
20            lower imported from strings or something.
21    
22            * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
23            from capabilities.py and parser.py.  Implement priority list for
24            supported graphics formats, take care of wbmp != bmp.  PNG, TIFF
25            and GIF are supported here, but not yet by main Thuban.  Hence,
26            support for them may be removed later.  Special contribution to
27            usability: get wxWidgets to change the cursor when we're waiting
28            for data from the network so the user won't start to worry.  This
29            causes a redrawing error/warning, though.
30    
31            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
32            the DOM object.
33    
34    2004-04-01  Martin Schulze  <[email protected]>
35    
36            * Extensions/wms/capabilities.py: Adjusted documentation
37            (WMSCapabilities.__init__): Improved documentation, fixed syntax
38            (WMSCapabilities.saveCapabilities): Only catch IOError when
39            handling files
40            (WMSCapabilities.loadCapabilities): Only catch IOError when
41            handling files
42            __main__: corrected variable naming
43            (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
44            class a specialisation of WMSCapabilitiesParser as well.  Also
45            execute grok() after loading or fetching capabilities, if that
46            went well, so that subsequent calls can already access the data.
47            (WMSCapabilities.getVersion): Export the used version of the
48            GetCapabilities request, so we can use it for subsequent calls,
49            i.e. for GetMap requests.
50            (WMSCapabilities.fetchCapabilities): Added proper error handling
51            when the GetCapabilities request failed, so that the surrounding
52            program can act accordingly.
53    
54    2004-03-30  Martin Schulze  <[email protected]>
55    
56            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
57            Adjusted the getLayerSRS method to return the list of SRSes
58            extracted from <SRS> elements instead of <BoundingBox> elements.
59            Added a bit of documentation as well.
60            (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
61            since it was only implemented due to a misunderstanding.
62    
63            * Extensions/wms/test/test_parser.py
64            (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
65            reflect the corrected interpretation of the standard: i.e. a layer
66            does not have to define a BoundingBox for all SRSes it supports.
67            Hence the <SRS></SRS> specification is authoritative, not the list
68            of BoundingBoxes.
69            (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
70            to ensure None is returned for a non-existing SRS.
71            (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
72            since it is not applicable anymore.  Listing more SRSes in <SRS>
73            elements is valid according to the specs.
74    
75    2004-03-26  Bernhard Reiter <[email protected]>
76    
77            * README: Nicer formatting of text. Improved descriptions.
78            Reflected wxWidgets name change.
79            
80            * Thuban/UI/about.py: Extended copyright to 2004 and added
81            information about the thuban-devel mailinglist.
82    
83    2004-03-24  Martin Schulze  <[email protected]>
84    
85            * Extensions/wms/capabilities.py: Renamed the class to contain
86            'WMS', also added a linebreak where required
87    
88            * Extensions/wms/parser.py: Finally added the XML parser for the
89            GetCapabilities response.
90    
91            * Extensions/wms/test/sample.xml: Adjusted the sample file so that
92            <SRS> elements match the <BoundingBox> elements, except for the
93            layer 'beschriftung'.
94    
95            * Extensions/wms/test/test_parser.py: Encode non-ascii strings
96            since Python uses unicode strings internally, otherwise
97            comparisons will fail.  Removed tests for getLayerBBoxSRS() since
98            the SRS will be calculated anyway and this method is obsoleted by
99            getLayerSRS().  Denote SRS as strings and not as cardinal numbers.
100            Move loading the sample file into the setUp method.  Added a test
101            for finding the integrity problem in the sample response.
102            Improved formatting.
103    
104            * Extensions/wms/domutils.py: Added convenience routines for
105            handling of Document Object Model (DOM) nodes.
106    
107            * Extensions/wms/test/test_domutils.py: Added a test for the
108            domutils module
109    
110    2004-03-19  Martin Schulze  <[email protected]>
111    
112            * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
113            Moved path detection and adding into a module of its own,
114            adjustpath, which exports thubandir as main Thuban directory.
115    
116            * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
117            detection and adding into a module of its own, adjustpath, which
118            exports thubandir as main Thuban directory.  Reorganised the
119            module in order to support the SkipTest feature for Thuban test
120            cases.
121    
122            * Extensions/wms/test/adjustpath.py: Moved path detection and
123            adding into a module of its own.
124    
125    2004-03-18  Martin Schulze  <[email protected]>
126    
127            * Extensions/wms/test/test_parser.py: Added another test for
128            checking whether the WMS XML parser (to be implemented) returns
129            the information we expect.  This requires a sample WMS WML file
130            (sample.xml) which has been extracted from the frida server and
131            "improved" manually.
132    
133            * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
134            main Thuban directory to the path in order to be able to import
135            random modules.  Adjusted the PyOGCLib detection to reuse the
136            information gathered.  Also added a note about the PYTHONPATH
137            environment variable.
138    
139            * Extensions/wms/test/test_ogclib.py: The format specification is
140            a mime-type, not a graphic format, hence image/jpeg wou ld be the
141            proper format and not JPEG.  We'll also have to take care of the
142            encoding of / as %2F.
143    
144    2004-03-16  Martin Schulze  <[email protected]>
145    
146            * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
147            comprehensive test for the getMapURL method, built compare URLs
148            according to the documentation in OGC 01-068r3
149    
150            * Extensions/wms/capabilities.py (WMSCapabilities): Added the
151            class WMSCapabilities to manage capabilites, will incorporate
152            parsing the capabilities response and provide details for other
153            classes.
154    
155    2004-03-12  Bernhard Herzog  <[email protected]>
156    
157            Support views in addition to normal tables in the postgis
158            shapestore
159    
160            * Thuban/Model/postgisdb.py
161            (PostGISShapeStore._fetch_table_information): Add a fallback for
162            the case where the table name is not in the geometry_columns
163            table.  This is usually the case for views.  Also, set
164            self.shapestore here.
165            (PostGISShapeStore.ShapeType): No need to query the database all
166            the time.  The shape type is now determined in
167            _fetch_table_information
168    
169            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
170            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
171            New parameter to specify views.
172            (PostGISDatabase.has_data): Also compare the views.  New views
173            parameter
174            (PostGISDatabase.initdb): Create the views.
175            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
176            view
177    
178            * test/test_postgis_db.py
179            (TestPostGISShapestorePointFromViews): New.  Test a
180            PostGISShapeStore with a view
181            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
182            the geometry_column explicitly to test whether that works
183    
184    2004-03-12  Bernhard Herzog  <[email protected]>
185    
186            Final step for explicit id/geometry columns: Loading and saving
187    
188            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
189            with the following changes:
190            (dbshapesource): Two new attributes id_column and geometry_column
191    
192            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
193            (SessionSaver.write_session): Use the new namespace
194            (SessionSaver.write_data_containers): Write the new dbshapesource
195            parameters
196    
197            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
198            the new file format version
199            (SessionLoader.start_dbshapesource): Handle the new db parameters
200    
201            * test/test_save.py: Update to the new dtd and namespace
202            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
203            mock object to provide a working IDColumn method.
204    
205            * test/test_load_1_0.py: New.  Copy of the test_load.py before
206            today's changes but with the round-trip tests removed.
207    
208            * test/test_load_0_9.py: Update doc-string.
209    
210            * test/test_load.py: Update all .thuban files to the new dtd and
211            namespace.
212            (TestPostGISLayer.file_contents): Add the new dbshapesource
213            paramters
214    
215    2004-03-11  Bernhard Herzog  <[email protected]>
216    
217            Next step for explicit id/geometry columns: User interaction
218    
219            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
220            the dialog is constructed. Add combo boxes to select id and
221            geometry column.  Rename some instance variables.
222            (ChooseDBTableDialog.GetTable): Return id and geometry column
223            names
224            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
225            selections in the table list
226    
227            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
228            and geometry_column
229    
230            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
231            parameters for id_column and geometry column of PostGISShapeStore
232            here as well.
233    
234            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
235            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
236            (PostGISConnection.GeometryTables): Use a better query to
237            determine which relations in the database might be usable for
238            shapestores.  Now supports views as well but is more PostgreSQL
239            specific
240            (PostGISConnection.table_columns): New. Somewhat experimental
241            method to let the db dialogs provide lists of columns to users so
242            that they can select id and geometry columns.
243            (PostGISTable.__init__): The default value of the id_column
244            parameter is now None it still means "gid" effectively, though.
245            (PostGISTable.IDColumn): New introspection method to return a
246            column object for the id column
247            (PostGISShapeStore.GeometryColumn): New introspection method to
248            return a column object for the geometry column
249    
250            * test/test_postgis_db.py
251            (TestPostGISConnection.test_gis_tables_non_empty):
252            Removed. Subsumed by the new:
253            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
254            New. Tes the GeometryTables and table_columns methods with actual
255            tables and views.
256            (PointTests.test_id_column, PointTests.test_geometry_column):
257            New. tests for the new methods.
258            (TestPostGISShapestorePoint.setUp)
259            (TestPostGISShapestorePointSRID.setUp)
260            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
261            instance variables needed by the new tests
262    
263    2004-03-11  Bernhard Herzog  <[email protected]>
264    
265            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
266            numbers given to ReadValue are ordinals.
267    
268    2004-03-11  Bernhard Herzog  <[email protected]>
269    
270            Elimiate the requirement for PostGIS tables to have a column
271            called "gid".
272    
273            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
274            id_column to specify which column to use to identify rows.  Also
275            new instance variables id_column and quoted_id_column
276            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
277            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
278            (PostGISTable.SimpleQuery): Use the id column name provided to the
279            constructor instead of "gid"
280            (PostGISShapeStore.__init__): New parameter id_column analogously
281            to PostGISTable.__init__.  This parameter is simply passed through
282            to the base class constructor
283            (PostGISShapeStore._create_col_from_description): Fix typo in
284            doc-string
285            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
286            (PostGISShapeStore.ShapesInRegion): Use the id column name
287            provided to the constructor instead of "gid"
288    
289            * test/postgissupport.py
290            (PostgreSQLServer.get_default_static_data_db): New static table
291            landmarks_point_id with an id column != "gid.  Update the comments
292            a bit.
293            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
294            doc-
295            (upload_shapefile): New parameter gid_column to use a name other
296            than "gid" for the column to store the shape ids
297    
298            * test/test_postgis_db.py (TableTests): New.  Mixin-class
299            containing all tests previously in TestPostGISTable.  The actual
300            tests are the same but the code is a bit more configurable to
301            allow for different id columns etc.
302            (TestPostGISTable): Derive from TableTests now for the actual
303            tests.
304            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
305            except that it the landmarks_point_id table to test the id_column
306            parameter
307            (PointTests): Extend the doc-string
308            (TestPostGISShapestorePointExplicitGIDColumn)
309            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
310            from PointTests to test the explicit id_column parameter.  One
311            tests with the name of the column holding the shape ids, the other
312            uses PostgreSQL's OID column.  For the latter a number of methods
313            have to be overwritten to make them independent of the actual id
314            values.
315    
316    2004-03-08  Silke Reimer  <[email protected]>
317    
318            Update debian directory:
319    
320            * debian/changelog: Added new version.
321            * deiban/rules: Updated management of patches (with cbds)
322            * debian/control: Added cbds to dependencies
323            * debian/patches/*: New. Adds better support for patches of thuban in
324                            debian
325            * debian/menu: Syntax of menu changed slightly
326            * debian/setup.py.patch: removed because it has been moved to
327                            debian/patechs/setup.py.patch
328            
329    
330    2004-02-26  Bernhard Herzog  <[email protected]>
331    
332            Create the Doc/technotes directory for text files with information
333            for developers
334    
335            * Doc/technotes/README: New. README for the technotes
336    
337            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
338            Thuban
339    
340            * Doc/technotes/release_process.txt: New. Used to be
341            HOWTO-Release.  Now slightly adapted to technote formatting style.
342    
343            * HOWTO-Release: Removed.  It's contents are now in
344            Doc/technotes/release_process.txt
345    
346    2004-02-25  Bernhard Herzog  <[email protected]>
347    
348            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
349            version of wxWindows the module was compiled with so we can check
350            that against the wxPython version.
351    
352            * Thuban/version.py (thuban_branch, thuban_release): New variables
353            controlling which and how Thuban versions are shown.  See the
354            comments for details.
355            (verify_versions): Also check that the wx version that wxproj is
356            compiled against matches that of the wxPython we use at runtime
357    
358    2004-02-20  Bernhard Herzog  <[email protected]>
359    
360            * Extensions/wms/wms.py (epsg_code_to_projection): Use
361            get_system_proj_file to read the epsg projections.  The old way
362            depended on the current directory being the top Thuban directory.
363    
364    2004-02-20  Bernhard Herzog  <[email protected]>
365    
366            * Extensions/svgexport/test/test_svgmapwriter.py
367            (TestVirtualDC.test_clippath): Remove a debug print
368    
369    2004-02-20  Bernhard Herzog  <[email protected]>
370    
371            * Extensions/svgexport/__init__.py: New.  Turn
372            Extensions/svgexport into a package.
373    
374            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
375            doc-string a bit.  The doc-string must come first, otherwise it's
376            not a doc-string.  The __future__ import must be the first thing
377            after the doc-string.  Use only double quotes in doc-strings.
378            Single quotes trip up emacs syntax highlighting if the text
379            contains apostrophes.
380    
381    2004-02-20  Bernhard Herzog  <[email protected]>
382    
383            * Extensions/svgexport/test/__init__.py,
384            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
385            suite for svgexport
386    
387            * test/runtests.py (find_test_modules): New. Function with the
388            module finding code from main.
389            (main): Use find_test_modules to figure out the default test
390            modules and take modules from Extensions.svgexport.test too.
391    
392    2004-02-19  Bernhard Herzog  <[email protected]>
393    
394            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
395            the mainwindow has a reference to the map of the initial session.
396            This fixes a bug introduced with the fix for RT#2245
397    
398    2004-02-19  Bernhard Herzog  <[email protected]>
399    
400            * Extensions/svgexport/svgsaver.py,
401            Extensions/svgexport/svgmapwriter.py,
402            Extensions/svgexport/maplegend.py: Added again.  This time in the
403            correct place.
404    
405    2004-02-17  Bernhard Herzog  <[email protected]>
406    
407            Fix for RT#2245
408    
409            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
410            instance variables before trying to create any windows.  Creating
411            windows can start an event loop if e.g. message boxes are popped
412            up for some reason, and event handlers, especially EVT_UPDATE_UI
413            may want to access things from the application.
414            (ThubanApplication.maps_changed): The mainwindow may not have been
415            created yet, so check whether it has been created before calling
416            its methods
417    
418            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
419            have a map
420    
421    2004-02-17  Bernhard Herzog  <[email protected]>
422    
423            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
424            Extensions/svgmapwriter.py, Extensions/maplegend.py,
425            extensions/svgexport/svgsaver.py,
426            extensions/svgexport/svgmapwriter.py,
427            extensions/svgexport/maplegend.py: Removed.  These files were in
428            the wrong places or didn't work at all.
429    
430    2004-02-16  Bernhard Herzog  <[email protected]>
431    
432            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
433            line
434    
435    2004-02-16  Bernhard Herzog  <[email protected]>
436    
437            * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
438    
439    2004-02-15  Markus Rechtien  <[email protected]>
440            
441            * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
442            to write a session to a file in SVG format.
443            * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
444            to write a SVG map of a session.
445            * Extensions/svgexport/maplegend: New. Writes a basic maplegend
446            in SVG format for the current session.
447    
448  2004-02-13  Bernhard Herzog  <[email protected]>  2004-02-13  Bernhard Herzog  <[email protected]>
449    
450          * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer          * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26