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

Legend:
Removed from v.2075  
changed lines
  Added in v.2182

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26