/[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 1932 by bh, Tue Nov 11 13:24:58 2003 UTC revision 1990 by bh, Fri Nov 28 12:01:09 2003 UTC
# Line 1  Line 1 
1    2003-11-28  Bernhard Herzog  <[email protected]>
2    
3            Unify the filenames stored in .thuban files so that the .thuban
4            files are more platform independend
5    
6            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
7            that they can be used on both windows and unix
8            (SessionSaver.prepare_filename): New. Handle all filename
9            transformations for filenames stored in the thuban file
10            (SessionSaver.write_data_containers, SessionSaver.write_layer):
11            Use prepare_filename
12    
13            * test/test_save.py (SaveSessionTest.testSingleLayer)
14            (SaveSessionTest.testLayerProjection)
15            (SaveSessionTest.testRasterLayer)
16            (SaveSessionTest.testClassifiedLayer)
17            (SaveSessionTest.test_dbf_table)
18            (SaveSessionTest.test_joined_table): Filenames are always stored
19            with slashes on all currently supported platforms so adapt all
20            tests to this
21    
22            * test/test_load.py (LoadSessionTest.filenames): With the new
23            filename scheme the filenames in the tests should be
24            understandable on all currently supported platforms so we turn
25            this into an empty list because we don't have to normalize them
26            anymore
27    
28    2003-11-28  Bernhard Herzog  <[email protected]>
29    
30            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
31            Add the ellipsoid to the projection since some Proj versions
32            complain if it's missing.
33    
34    2003-11-27  Bernhard Herzog  <[email protected]>
35    
36            Corect some bounding box projection problems
37    
38            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
39            version of ForwardBBox
40            (Projection._transform_bbox): New. common implementation of
41            ForwardBBox and InverseBBox
42            (Projection.ForwardBBox): Use _transform_bbox.
43    
44            * test/test_proj.py (TestProjection.test): Add test for
45            InverseBBox
46    
47            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
48            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
49            new InverseBBox method to determine the unprojected bounding box
50            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
51            bbox.
52    
53            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
54            Removed.
55            (TestLayer.test_arc_layer_with_projection): New. This test is
56            better able to test whether bounding boxes are projected correctly
57            than test_point_layer_with_projection
58    
59            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
60            InverseBBox to unproject bboxes
61    
62    2003-11-25  Bernhard Herzog  <[email protected]>
63    
64            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
65            source code.
66    
67    2003-11-25  Bernhard Herzog  <[email protected]>
68    
69            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
70            there for backwards compatibility and all code relying on that
71            should have been updated by now.
72    
73    2003-11-25  Bernhard Herzog  <[email protected]>
74    
75            * test/test_load.py (TestClassification.test): Add the missing
76            round trip test.
77            (TestClassification.file_contents): Update to the newest file
78            format
79    
80    2003-11-25  Bernhard Herzog  <[email protected]>
81    
82            Add very experimental (and possibly dangerous) extension to draw
83            polygons:
84    
85            * Extensions/drawshape/README: New. Brief installation
86            instructions
87    
88            * Extensions/drawshape/drawshape.py: New. Implementation of the
89            drawshape extensions
90    
91            * Extensions/drawshape/patch.diff: Patch to apply before the
92            extension can be used.
93    
94    2003-11-24  Bernhard Herzog  <[email protected]>
95    
96            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
97            (ShapefileStore.__init__): Factor opening the shapefile into a
98            separate method (the new _open_shapefile). This makes the code a
99            bit more readable but the real reason is that it makes some evil
100            hacks easier. :-)
101    
102    2003-11-24  Bernhard Herzog  <[email protected]>
103    
104            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
105            converter is specified for an attribute assume it's a string
106            containing only Latin1 characters. Update doc-string accordingly.
107            This change should fix many places where unicode objects might
108            accidentally enter Thuban.
109    
110            * test/test_load.py (TestNonAsciiColumnName): New test to check
111            what happens with column names in DBF files that contain non-ascii
112            characters
113    
114    2003-11-21  Bernhard Herzog  <[email protected]>
115    
116            Enable the experimental attribute editing again and introduce a
117            command line switch to actually activate it
118    
119            * Thuban/UI/main.py (options): New. Container for options set on
120            the commmand line
121            (main): Add the --enable-attribute-editing flag.
122    
123            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
124            editing is enabled use the grid ctrl which allows editing of the
125            values
126    
127            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
128            New. Just delegate this to the underlying table.
129    
130    2003-11-20  Bernhard Herzog  <[email protected]>
131    
132            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
133            Skip this test if run under non-posix systems since it only works
134            there
135    
136    2003-11-19  Bernhard Herzog  <[email protected]>
137    
138            * Thuban/Model/resource.py: Rework the way gdal support is
139            determined so that we can give a reason in the about why gdal is
140            not supported.
141            (gdal_support_status): New. Variable holding a string with the
142            reason for no gdal support
143    
144            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
145            not supported to the message
146    
147    2003-11-19  Bernhard Herzog  <[email protected]>
148    
149            Remove the old table interface and its test cases
150    
151            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
152            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
153            anymore
154    
155            * Thuban/Model/transientdb.py (TransientTableBase)
156            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
157            anymore
158    
159            * test/test_table.py: Removed since the old interface it tests is
160            gone.
161    
162            * test/runtests.py (main): The old table interface is gone and
163            with it the deprecation warnings so remove the code that turns
164            these warnings into errors
165    
166    2003-11-19  Bernhard Herzog  <[email protected]>
167    
168            * test/test_table.py: Revert to revision 1.5 again. Changing the
169            tests to use the new table interface is completely wrong since the
170            whole purpose of the tests in this module is to test the old
171            interface.
172    
173    2003-11-18  Bernhard Herzog  <[email protected]>
174    
175            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
176            New. Test whether the connection matches a set of connection
177            parameters
178    
179            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
180            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
181            for existing connections with the same parameters and break out of
182            the loop correctly.
183    
184            * test/test_postgis_db.py (TestBriefDescription)
185            (TestPostGISSimple.test_brief_description): Rename
186            TestBriefDescription to TestPostGISSimple and the test method to
187            test_brief_description so that we can add more test methods.
188            (TestPostGISSimple.test_matches_parameters): New. Test the new
189            MatchesParameters method
190    
191    2003-11-18  Bernhard Herzog  <[email protected]>
192    
193            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
194            _was_destroyed, to indicate whether an publisher instance has
195            already been destroyed.
196            (Publisher.Unsubscribe): Only disconnect if the publisher has not
197            been destroyed yet.
198            (Publisher.Destroy): Set the _was_destroyed flag to true.
199    
200            * test/test_connector.py
201            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
202            calling Unsubscribe after Destroy doesn't raise an exception
203    
204    2003-11-14  Bernhard Herzog  <[email protected]>
205    
206            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
207            typo in doc-string
208    
209    2003-11-13  Bernhard Herzog  <[email protected]>
210    
211            Quote table and column names properly for postgis.
212    
213            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
214            quote an identifier for use in an sql statement
215            (PostGISColumn.__init__): Add the quoted_name attribute
216            (PostGISTable.__init__): New instance variable quoted_tablename
217            (PostGISTable._fetch_table_information): Use the quoted table
218            name. New isntance variable quoted_geo_col with a quoted version
219            of geometry_column
220            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
221            (PostGISTable.RowOrdinalToId): Use the quoted table name
222            (PostGISTable.ReadValue, PostGISTable.ValueRange)
223            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
224            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
225            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
226            Use quoted table and column names
227    
228            * test/test_postgis_db.py (TestPostGISSpecialCases)
229            (TestPostGISIgnoredColumns): Rename the class to
230            TestPostGISSpecialCases because that better describes the new
231            cases
232            (TestPostGISSpecialCases.test_unsupported_types)
233            (TestPostGISSpecialCases.test): Rename the method to
234            test_unsupported_types because we need a more descriptive name now
235            that there are more methods
236            (TestPostGISSpecialCases.test_table_name_quoting)
237            (TestPostGISSpecialCases.test_column_name_quoting)
238            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
239            cases to test quoting of table and column names in PostGISTable
240            and PostGISShapeStore
241    
242            * test/postgissupport.py
243            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
244            AddGeometryColumn desn't support table or column names with sapces
245            or double quotes
246    
247    2003-11-12  Jan-Oliver Wagner <[email protected]>
248    
249            * Extensions/wms/__init__.py: New: Init to make this
250            directory a package.
251    
252            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
253    
254    2003-11-11  Bernhard Herzog  <[email protected]>
255    
256            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
257            Constant for the file woth deprecated epsg projections
258            (get_system_proj_file): Update doc-string
259    
260            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
261            above the EPS widgets, introduce a check box for the deprecated
262            eps projections and a label for the epsg widgets
263            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
264            too
265    
266    2003-11-11  Bernhard Herzog  <[email protected]>
267    
268            Avoid warnings when run under Python 2.3
269    
270            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
271            (BaseRenderer.draw_label_layer): Coordinates must be ints.
272    
273            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
274            real method so that we can convert to int.
275            (MapRenderer.label_font): The font size mist be an int.
276    
277            * Thuban/UI/common.py (Color2wxColour): The color values must be
278            ints. Also, remove the unnecessary asserts.
279    
280            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
281            (TestUnicodeStrings.test): Python source code should not contain
282            non-ascii characters unless an encoding is specified in the file.
283            Therefore use \x escapes in the string literals for non-ascii
284            characters.
285    
286    2003-11-11  Bernhard Herzog  <[email protected]>
287    
288            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
289            parameter so that this function can be used for all proj files in
290            Resource/Projections
291            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
292            get_system_proj_file
293    
294            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
295            ProjFile self.__sysProjFile use a dictionary of system ProjFile
296            objects self._sys_proj_files
297            (ProjFrame.build_dialog): Adapt to the new changes in the
298            ProjectionList constructor. Add a check button to toggle whether
299            EPSG projections are shown
300            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
301            events.
302            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
303            the busy cursor if the files have not yet been loaded by the
304            dialog.
305            (ProjFrame.load_system_proj): Add a parameter for the name of the
306            proj file. Maintain the dictionary of system projections
307            self._sys_proj_files
308    
309            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
310            user_projs parameters into one parameter proj_files which is a
311            list of proj files.
312            (ProjectionList._subscribe_proj_files)
313            (ProjectionList._unsubscribe_proj_files): New. Move
314            subscription/unsubscription of projfile messages to separate
315            methods
316            (ProjectionList.Destroy): The unsubscribe is now done in
317            _unsubscribe_proj_files
318            (ProjectionList.update_projections): We now have a list of proj
319            file objects
320            (ProjectionList.SetProjFiles): New method to set a new list of
321            proj file objects
322    
323            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
324            Specify explicitly which system proj file to load.
325    
326  2003-11-11  Bernhard Herzog  <[email protected]>  2003-11-11  Bernhard Herzog  <[email protected]>
327    
328          * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all          * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all

Legend:
Removed from v.1932  
changed lines
  Added in v.1990

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26