/[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 1349 by jonathan, Tue Jul 1 16:12:38 2003 UTC revision 1590 by bh, Fri Aug 15 12:49:19 2003 UTC
# Line 1  Line 1 
1    2003-08-15  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
4            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
5            (ViewPort._get_hit_tester, ViewPort.projected_points)
6            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
7            (ViewPort._find_label_at): Split the find_shape_at method into
8            several new methods and use the functions in the hit-test module.
9    
10            * Thuban/UI/hittest.py: New module with Python-level hit-testing
11            functions
12    
13            * test/test_hittest.py: New. Test for the new hittest module
14    
15    2003-08-15  Bernhard Herzog  <[email protected]>
16    
17            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
18            projection to all corners of the bounding box to get a better
19            approximation of the projected bounding box
20    
21            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
22            New. Test coordinate handling of a layer with a projection.
23            Catches the bug fixed in Layer.ShapesInRegion
24    
25    2003-08-15  Bernhard Herzog  <[email protected]>
26    
27            Move some of the mock objects in test_baserenderer into their own
28            module so they can easily be used from other tests
29    
30            * test/mockgeo.py: New test helper module with some mock objects
31            for geometry related things like shapes, shapestores and
32            projections.
33    
34            * test/test_mockgeo.py: New. Tests for the new helper module
35    
36            * test/test_baserenderer.py: Some of the mock-objects are in
37            mockgeo now.
38    
39    2003-08-12  Jan-Oliver Wagner <[email protected]>
40    
41            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
42    
43    2003-08-12  Bernhard Herzog  <[email protected]>
44    
45            * po/de.po: New. German translations by Bjoern Broscheit
46    
47    2003-08-12  Bernhard Herzog  <[email protected]>
48    
49            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
50            strings have to be one string literal.
51    
52    2003-08-11  Bernhard Herzog  <[email protected]>
53    
54            * test/support.py (FloatComparisonMixin.assertPointListEquals):
55            New. This method was used in various derived classes, but it's
56            better to have it here.
57    
58            * test/test_shapefilestore.py
59            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
60            FloatComparisonMixin
61    
62            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
63            It's now in FloatComparisonMixin
64    
65            * test/test_derivedshapestore.py
66            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
67            in FloatComparisonMixin
68    
69    2003-08-11  Bernhard Herzog  <[email protected]>
70    
71            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
72            error message
73    
74    2003-08-08  Jan-Oliver Wagner <[email protected]>
75    
76            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
77            with version number.
78            Changed title to reflect version number of Thuban.
79    
80    2003-08-08  Jan-Oliver Wagner <[email protected]>
81    
82            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
83            the list corresponds to the "About" web page.
84    
85    2003-08-08  Bernhard Herzog  <[email protected]>
86    
87            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
88            Make sure translated strings are recognized as one string literal.
89    
90            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
91            Make sure translated strings are recognized as one string literal.
92    
93            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
94            translated strings are recognized as one string literal.
95    
96            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
97            sure translated strings are recognized as one string literal.
98    
99    2003-08-07  Bernhard Herzog  <[email protected]>
100    
101            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
102            Simply delegates to the original shapestore.
103    
104            * test/test_derivedshapestore.py
105            (TestDerivedShapeStore.test_raw_format): New. Test case for
106            DerivedShapeStore.RawShapeFormat
107    
108    2003-08-07  Bernhard Herzog  <[email protected]>
109    
110            Add raw data interface to shape objects.
111    
112            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
113            class to ShapefileShape which now holds shapefile specific
114            information.
115            (ShapefileShape.compute_bbox): Simplified to not cache any
116            information. The way this method is used that shouldn't matter
117            performance wise.
118            (ShapefileShape.RawData): New. Return the shapeid which is the raw
119            data format for shapes from shapefiles.
120            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
121            in the shape objects returned by a shapestore. For a
122            ShapefileStore this is always RAW_SHAPEFILE.
123            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
124            method.
125    
126            * test/test_shapefilestore.py
127            (TestShapefileStore.test_raw_format): New test to test the raw
128            format feature of shapes.
129    
130            * Thuban/Model/layer.py: Remove the unused import of Shape from
131            data. It was only there for interface compatibility but it's not
132            used inside of Thuban and the generic Shape class has gone away.
133    
134            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
135            the raw data format and only use an optimized version of its a
136            shapefile.
137    
138    2003-08-07  Bernhard Herzog  <[email protected]>
139    
140            * test/test_baserenderer.py (SimpleShape): Shape class for the
141            tests.
142            (SimpleShapeStore.Shape): Use SimpleShape instead of
143            Thuban.Model.data.Shape to make the tests independed of the coming
144            changes.
145    
146    2003-08-07  Bernhard Herzog  <[email protected]>
147    
148            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
149            (ThubanTestProgram): New classes that extend the respective
150            classes from unittest. These new version support skipping tests
151            under certain expected conditions. In the Thuban test suite we
152            uses this for tests that require the optional gdal support.
153            (run_tests): Use ThubanTestProgram instead of the unittest.main()
154    
155            * test/runtests.py (main): Use the new ThubanTestRunner instead of
156            the normal one from unittest
157    
158            * test/test_layer.py (TestLayer.test_raster_layer): If this test
159            is not run because gdal support isn't available report this to the
160            runner.
161    
162            * test/test_baserenderer.py
163            (TestBaseRenderer.test_raster_no_projection): Do not run this test
164            if gdal support isn't available and report this to the runner.
165    
166    2003-08-06  Bernhard Herzog  <[email protected]>
167    
168            Rearrange the renderers a bit, partly in preparation for changes
169            required for the postgis merge, partly to make it more testable.
170            Also make the representation of coordinates in Shapes more
171            consistent.
172    
173            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
174            this class is now in BaseRenderer. This class is now practically
175            only a specialization of BaseRenderer for rendering to an actual
176            wx DC.
177            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
178            to get the shapetype specific rendering functions.
179    
180            * Thuban/UI/baserenderer.py: New file with the basic rendering
181            logic. The code in this file is completely independend of wx.
182            (BaseRenderer): Class with the basic rendering logic
183    
184            * test/test_baserenderer.py: New. Test cases for BaseRenderer
185    
186            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
187            error_on_redraw to guard agains endless loops and stack overflows
188            when there's a bug in the rendering code that raises exceptions.
189            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
190            rendering into a separate method _do_redraw so that error handling
191            is a bit easier. When an exception occurs, set error_on_redraw to
192            true. When it's true on entry to OnIdle do nothing and return
193            immediately.
194    
195            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
196            Shape object will always have the coordinates as a list of list of
197            coordinate pairs (tuples).
198            (Shape.compute_bbox): Adapt to new representation.
199    
200            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
201            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
202            Shape objects.
203    
204            * test/test_shapefilestore.py
205            (ShapefileStoreTests.assertFloatTuplesEqual)
206            (ShapefileStoreTests.assertPointListEquals): Rename to
207            assertPointListEquals and change purpose to checking equality of
208            the lists returned by Shape.Points().
209            (TestShapefileStoreArc.test_shape)
210            (TestShapefileStorePolygon.test_shape)
211            (TestShapefileStorePoint.test_shape): Use the new
212            assertPointListEquals instead of assertFloatTuplesEqual
213    
214            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
215            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
216            and change purpose to checking equality of the lists returned by
217            Shape.Points().
218            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
219            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
220            (TestLayer.test_derived_store): Use the new assertPointListEquals
221            instead of assertFloatTuplesEqual
222    
223            * test/test_derivedshapestore.py
224            (TestDerivedShapeStore.assertFloatTuplesEqual)
225            (TestDerivedShapeStore.assertPointListEquals): Rename to
226            assertPointListEquals and change purpose to checking equality of
227            the lists returned by Shape.Points().
228            (TestDerivedShapeStore.test_shape): Use the new
229            assertPointListEquals instead of assertFloatTuplesEqual
230    
231    2003-08-06  Jan-Oliver Wagner <[email protected]>
232    
233            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
234            a bounding box. A dialog is raised in case, no bounding box
235            is found. This fixes bug #2043:
236            https://intevation.de/rt/webrt?serial_num=2043
237    
238    2003-08-05  Bernhard Herzog  <[email protected]>
239    
240            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
241            object look like a Color instantiation. Formerly it looked like a
242            tuple.
243    
244            * test/test_color.py (TestColor.test_repr)
245            (TestColor.test_equality, TestColor.test_inequality): New. test
246            some more apects of the Color class
247            (TestTransparent.test_repr, TestTransparent.test_hex)
248            (TestTransparent.test_equality): New. Test cases for the
249            Transparent object.
250    
251    2003-08-04  Jan-Oliver Wagner <[email protected]>
252    
253            * Doc/manual/thuban-manual.xml: a number of small improvements.
254            The resulting file is the version submitted for GREAT-ER II.
255    
256    2003-08-01  Bernhard Herzog  <[email protected]>
257    
258            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
259            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
260            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
261    
262            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
263            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
264            (ThubanEndBusyCursor): Add doc-strings
265    
266    2003-08-01  Bernhard Herzog  <[email protected]>
267    
268            First step towards PostGIS integration. More abstraction by movin
269            more code from the layer to the shapestore. More methods of the
270            layer are now simply delegated to the equivalent method of the
271            shapestore. The SHAPETYPE_* constants are now in data not in
272            layer.
273    
274            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
275            (SHAPETYPE_POINT, Shape): Move these constants and classes from
276            layer.py to data.py
277            (ShapefileStore.__init__): More Initialization for the new methods
278            and functionality.
279            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
280            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
281            (ShapefileStore.Shape): New methods that were formerly implemented
282            in the layer.
283            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
284            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
285            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
286            equivalents of the new shape methods. These versions are simply
287            delegated to the original shapstore.
288    
289            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
290            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
291            (Layer.SetShapeStore): Removed the initializatin of instance
292            variables that were needed for the stuff that's now in
293            ShapefileStore
294            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
295            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
296            shapestore.
297    
298            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
299            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
300            instead of layer.
301    
302            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
303    
304            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
305    
306            * test/test_layer.py: Import the SHAPETYPE_* constants from data
307            instead of layer.
308            (TestLayer.test_derived_store): Remove the test for the exception
309            when instantiating the DerivedShapeStore with an incompatible
310            table which is now in test_derivedshapestore.py. Add some more
311            tests of the layer methods to determine whether they work for a
312            DerivedShapeStore as well.
313    
314    2003-07-31  Jonathan Coles   <[email protected]>
315    
316            * Doc/manual/thuban-manual.xml: Fix the list of required packages
317            by just listing the name and where they can be found.
318    
319    2003-07-31  Frank Koormann   <[email protected]>
320    
321            * Doc/manual/thuban-manual.xml:
322            Changed the screenshot elements to figure.
323            Changed some variablelist elements to itemizedlist.
324            Added section on GDAL formats.
325    
326    2003-07-31  Jonathan Coles   <[email protected]>
327    
328            * Doc/manual/thuban-manual.xml: Added a few sentences about
329            the Fix Border Color option when generating classes.
330    
331    2003-07-30  Jonathan Coles   <[email protected]>
332    
333            * Thuban/Model/classgen.py: Add docstrings. Rename specific
334            Ramp instances to use lower_case_style.
335    
336            * Thuban/UI/classgen.py: Use renamed Ramp instances.
337            
338            * Thuban/UI/classifier.py: Add docstrings.
339    
340            * Thuban/UI/dock.py: Add docstrings.
341    
342            * test/test_classgen.py: Use renamed Ramp instances.
343    
344    2003-07-30  Bernhard Herzog  <[email protected]>
345    
346            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
347            was never used in Thuban.
348    
349    2003-07-30  Bernhard Herzog  <[email protected]>
350    
351            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
352            method directly instead of going through the transient_table
353            method. This faster because transient_table may force the copy of
354            a DBF file into the transient database and setting a table's title
355            doesnm't affect the title of the associated transient table, so
356            this fixes RT #2042
357    
358            * Thuban/UI/main.py (__version__): Don't import the already
359            removed show_exception_dialog.
360    
361    2003-07-29  Jonathan Coles   <[email protected]>
362    
363            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
364            Put back this method and remove the equivalent function since we
365            are setting the exception hook from within this class (OnInit).
366    
367    2003-07-29  Jonathan Coles   <[email protected]>
368    
369            * Doc/manual/images/5_2_custom_ramp.png,
370            Doc/manual/images/5_2_quantiles.png,
371            Doc/manual/images/5_2_uniform_dist.png,
372            Doc/manual/images/5_2_unique_values.png,
373            Doc/manual/images/8_int_error.png: New screen shots.
374    
375            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
376            some points, and added more screen shots.
377    
378    2003-07-29  Bernhard Herzog  <[email protected]>
379    
380            * Thuban/Model/data.py: Remove the now unused import of warnings
381    
382    2003-07-29  Bernhard Herzog  <[email protected]>
383    
384            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
385            deprecated since before the 0.8 release and isn't used in Thuban
386            itself anymore.
387    
388            * Thuban/Model/transientdb.py: Remove some unnecessary imports
389    
390    2003-07-29  Jonathan Coles   <[email protected]>
391    
392            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
393            python exception hook here so that we are sure to catch any
394            Thuban exception that happen during initialization.
395    
396            * Thuban/UI/main.py (main): Don't set the exception hook here,
397            it will get set in ThubanApplication.OnInit.
398    
399    2003-07-29  Jonathan Coles   <[email protected]>
400                                                                                
401            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
402            Removed and called it show_exception_dialog() so that the exception
403            handler can be set before the class is created.
404                                                                                
405            * Thuban/UI/main.py (main): Install the exception handler before
406            a ThubanApplication is created.
407                                                                                    
408    2003-07-29  Bernhard Herzog  <[email protected]>
409    
410            * po/it.po: New. Italian translation by Maurizio Napolitano
411    
412            * po/ru.po: New. Russian translation by Alex Shevlakov
413    
414    2003-07-29  Frank Koormann   <[email protected]>
415    
416            * Doc/manual/thuban-manual.xml: Extended section on supported
417            projections.
418            
419    2003-07-29  Frank Koormann   <[email protected]>
420    
421            * Doc/manual/thuban-manual.xml: gaspell-checked.
422    
423    2003-07-29  Jonathan Coles   <[email protected]>
424    
425            * Doc/manual/images/3_5_legend.png: Added border to improve look
426            on white background.
427    
428    2003-07-29  Jonathan Coles   <[email protected]>
429    
430            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
431            descriptions for the legend toolbar.
432    
433            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
434            cursor from dialog box.
435    
436    2003-07-28  Jonathan Coles   <[email protected]>
437    
438            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
439    
440            * Doc/manual/images/2_4_session_tree.png,
441            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
442            Doc/manual/images/4_2_layer_properties.png,
443            Doc/manual/images/4_2_raster_layer_properties.png,
444            Doc/manual/images/5_3_genclass.png,
445            Doc/manual/images/5_classification.png,
446            Doc/manual/images/6_projection.png,
447            Doc/manual/images/7_1_table_view.png,
448            Doc/manual/images/7_2_5_join.png: New screenshots.
449    
450    2003-07-24  Jonathan Coles   <[email protected]>
451    
452            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
453    
454    2003-07-24  Jonathan Coles   <[email protected]>
455    
456            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
457            chapter on Layer Management.
458    
459            * Doc/manual/Makefile: New. Makefile to generate all formats for the
460            manual and images.
461    
462    2003-07-24  Bernhard Herzog  <[email protected]>
463    
464            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
465            it annoys lintian which warns about these files not being
466            executable. The #1 isn't necessary here since if you absolutely
467            must execute them you can always say "python <filename>".
468    
469            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
470            superfluous code to set brush and pen for point shapes
471    
472            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
473            belong in viewport anyway
474    
475    2003-07-24  Frank Koormann   <[email protected]>
476    
477            * Doc/manual/thuban-manual.xml: Added section on table management.
478    
479    2003-07-24  Bernhard Herzog  <[email protected]>
480    
481            * test/runtests.py (main): Recognize the long "verbose" option
482            correctly.
483    
484    2003-07-22  Jonathan Coles   <[email protected]>
485    
486            * Doc/manual/thuban-manual.xml: Continue to write first revision
487            of the manual.
488    
489            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
490            with Begin/EndDrawing() calls to ensure we aren't doing to
491            many updates to the dc during rendering.
492            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
493            a pen and brush argument so they need to be passed to the function.
494    
495            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
496            Calculates the minimum and maximum scale values. Factored out
497            of set_view_transform so that it could be used to zoom all the
498            way into a single point.
499            (ViewPort.set_view_transform): Call calc_min_max_scales().
500            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
501            if only a single point is selected.
502    
503            * Doc/manual/images/1_2_legend_close.png,
504            Doc/manual/images/1_2_legend_dock.png,
505            Doc/manual/images/1_2_mainwindow.png,
506            Doc/manual/images/1_2_mainwindow.ps,
507            Doc/manual/images/1_2_mainwindow.sk,
508            Doc/manual/images/3_2_fullextent.png,
509            Doc/manual/images/3_2_fulllayerextent.png,
510            Doc/manual/images/3_2_fullshapeextent.png,
511            Doc/manual/images/3_2_pan.png,
512            Doc/manual/images/3_2_zoomin.png,
513            Doc/manual/images/3_2_zoomout.png,
514            Doc/manual/images/3_3_identify.png,
515            Doc/manual/images/3_3_label.png,
516            Doc/manual/images/3_5_invisible.png,
517            Doc/manual/images/3_5_movedown.png,
518            Doc/manual/images/3_5_moveup.png,
519            Doc/manual/images/3_5_props.png,
520            Doc/manual/images/3_5_tobottom.png,
521            Doc/manual/images/3_5_totop.png,
522            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
523    
524    2003-07-18  Bernhard Herzog  <[email protected]>
525    
526            * Thuban/UI/messages.py (MAP_REPLACED): New message.
527    
528            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
529            after the new map has been assigned
530    
531            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
532            Delegate MAP_REPLACED to the canvas too
533            (MainWindow.prepare_new_session): Removed. Thanks to the new
534            MAP_REPLACED message it's no longer needed
535            (MainWindow.OpenSession, MainWindow.NewSession):
536            prepare_new_session has been removed.
537    
538            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
539            MAP_REPLACED so that we can close the dialog if a new map is set.
540            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
541            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
542            dialog
543    
544            * test/test_viewport.py (SimpleViewPortTest)
545            (SimpleViewPortTest.test_default_size): Add doc-strings
546            (ViewPortTest.setUp): Bind map to self.map so we can use it in
547            tests. Subscribe to MAP_REPLACED messages too.
548            (ViewPortTest.tearDown): No need to explicitly unsubscribe
549            (ViewPortTest.test_set_map): New test for the SetMap method.
550    
551    2003-07-18  Bernhard Herzog  <[email protected]>
552    
553            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
554            Move this test from ViewPortTest.setUp to this new separate test
555            case. setUp is not the place for the actual tests.
556            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
557            more of the test from setUp to the new test test_inital_settings.
558            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
559            (ViewPortTest.test_proj_conv): Split test_proj_conv into
560            test_win_to_proj and test_proj_to_win and make the tests easier to
561            understand
562            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
563            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
564            (ViewPortTest.test_unprojected_rect_around_point)
565            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
566            Reformat to increase readability.
567    
568    2003-07-18  Bernhard Herzog  <[email protected]>
569    
570            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
571    
572    2003-07-18  Bernhard Herzog  <[email protected]>
573    
574            * test/runtests.py: The test suite can now be run without an X
575            connection. To make sure this remains true, remove the DISPLAY
576            environment variable so that an error occurs if the wxGTK is
577            imported accidentally
578    
579    2003-07-18  Bernhard Herzog  <[email protected]>
580    
581            * Thuban/UI/viewport.py: Remove unused imports
582    
583            * Thuban/UI/view.py: Remove unused imports
584    
585    2003-07-18  Bernhard Herzog  <[email protected]>
586    
587            * test/test_export.py Remove unused imports. The OutputTransform
588            function is now in viewport.py and is called output_transform
589            (TestScalebar.test_output_transform)
590            (TestScalebar.test_OutputTransform): Renamed to
591            test_output_transform and updated to use output_transform instead
592            of OutputTransform
593    
594            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
595            renamed.
596            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
597            renamed to output_transform
598    
599            * Thuban/UI/viewport.py (OutputTransform, output_transform):
600            Rename to output_transform
601    
602    2003-07-18  Bernhard Herzog  <[email protected]>
603    
604            * Thuban/Model/layer.py (Layer.__init__): Rename
605            classificationField to classificatin_column and init it here so
606            that it can be used in SetClassificationColumn
607            (Layer.GetClassificationColumn, Layer.GetClassificationField):
608            Rename to GetClassificationColumn.
609            (Layer.SetClassificationColumn, Layer.SetClassificationField):
610            Rename to SetClassificationColumn and issue a LAYER_CHANGED
611            message if the column changes.
612            (Layer._classification_changed, Layer.ClassChanged): Rename to
613            _classification_changed. Update the callers.
614            (Layer.SetShapeStore): Further field->column renames.
615    
616            * Thuban/Model/load.py (SessionLoader.start_classification)
617            (SessionLoader.start_clpoint): Updates because of
618            field->column method name changes in the Layer class
619    
620            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
621            because of field->column method name changes in the Layer class
622    
623            * Thuban/UI/classifier.py (Classifier.__init__)
624            (Classifier._OnTry, Classifier._OnRevert): Updates because of
625            field->column method name changes in the Layer class
626    
627            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
628            because of field->column method name changes in the Layer class
629    
630            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
631            of field->column method name changes in the Layer class
632    
633            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
634            (SaveSessionTest.testClassifiedLayer): Update because of
635            field->column method name changes in the Layer class
636    
637            * test/test_layer.py (SetShapeStoreTests.setUp)
638            (SetShapeStoreTests.test_sanity): Update because of field->column
639            method name changes in the Layer class
640            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
641            (TestLayerModification.test_sanity)
642            (TestLayerModification.test_initial_settings): remove unsued code
643            and rename to test_sanity.
644            (TestLayerModification.test_set_classification): New test for
645            SetClassification and SetClassificationField.
646    
647    2003-07-18  Bernhard Herzog  <[email protected]>
648    
649            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
650            the non-fixed values as well. The old test would have accepted a
651            fixed ramp that only returnes the fixed properties
652    
653    2003-07-17  Jonathan Coles   <[email protected]>
654    
655            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
656            shots for the manual. The XCF file is the source image and
657            has additional layers to support changes.
658    
659            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
660    
661            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
662            Return both the new class and the field name.
663    
664            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
665            fit the map to the window as this changes any zoom level that
666            the user may have set.
667    
668    2003-07-16  Jonathan Coles   <[email protected]>
669    
670            * Thuban/Model/classgen.py (generate_singletons,
671            generate_uniform_distribution, generate_quantiles): Remove
672            fixes parameter, but maintain the same functionality by having
673            the calling function pass a FixedRamp object for the ramp.
674            (FixedRamp): New. Adapts a ramp to have fixed property values.
675    
676            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
677            (Classification): Inherit from Publisher.
678            (Classification.__init__): Remove the layer parameter.
679            Classifications no longer need to have a parent layer.
680            (Classification.GetField, Classification.GetFieldType,
681            Classification.SetFieldInfo): Removed. The field name is stored
682            in the layer, and the type can be retreived by calling
683            Layer.GetFieldType().
684            (Classification._set_layer, Classification.GetLayer): Removed.
685            Classifications no longer have a parent layer.
686    
687            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
688            classification.
689            (Layer.SetShapeStore): Reset the classification first while
690            we still have the old shape store to work with.
691            (Layer.GetClassificationField, Layer.SetClassificationField):
692            New. Method for getting/setting the field to classify on.
693            (Layer.SetClassification): Simplified now that the layer
694            simply has to hold a reference to the classification and not
695            tell the classification who owns it.
696            Fixes RTbug #2023.
697    
698            * Thuban/Model/load.py (SessionLoader.start_classification):
699            Set the field name on the layer, not the classification.
700    
701            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
702            classification is modified.
703    
704            * Thuban/Model/save.py (SessionSaver.write_classification):
705            Get the field name and type from the layer.
706    
707            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
708            parameter records to rows and add docstring. Fixes RTbug #1997.
709    
710            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
711            ramp when we need to fix certain values of a ramp rather than
712            using the old fixes parameter. Fixes RTbug #2024.
713    
714            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
715            parameter.
716            (ClassTable.Reset): Add fieldType parameter and use it, rather
717            than asking the classification.
718            (Classifier.__init__): Remember the original class's field
719            and ask the layer for the field type, rather than the classification.
720            (Classifier.__SetGridTable): Retrieve the field and field type
721            for the table because they are not in the classification.
722            (Classifier._OnTry, Classifier._OnRevert): Set the classification
723            field on the layer in addition to the classification itself.
724    
725            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
726            classification field from layer.
727    
728            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
729            classification field from layer. Split up tests and remove
730            *-imports. Fixes RTbug #1992.
731    
732            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
733    
734            * test/test_classification.py
735            (TestClassification.test_classification): Remove tests for methods
736            that no longer exist.
737    
738            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
739            __init__ no longer has a field parameter, use SetClassificationField.
740            (SetShapeStoreTests.test_sanity): Use layer object to get class
741            field info.
742    
743            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
744            SetClassificationField on layer to set class field info.
745    
746            * test/test_viewport.py: Renamed from test/test_view.py.
747    
748    2003-07-16  Jan-Oliver Wagner <[email protected]>
749    
750            * Doc/manual/thuban-manual.xml: Added authors and an initial
751            coarse structure.
752    
753    2003-07-15  Bernhard Herzog  <[email protected]>
754    
755            * test/support.py (FloatComparisonMixin): This is a mix-in class
756            and therefore should not be derived from any other class.
757    
758            * test/test_range.py (RangeTest): FloatComparisonMixin is a
759            mix-in, so derive from TestCase as well.
760    
761    2003-07-15  Bernhard Herzog  <[email protected]>
762    
763            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
764            draw_func handling a bit to remove one layer of indirection. This
765            makes the renderer about 10% faster in the non-classifying case
766            and the code a bit cleaner
767            (MapRenderer.draw_point_shape): Add the pen and brush parameters
768            and set them in the dc. Now the draw_point_shape method and
769            wxproj's draw_polygon_shape function have basically the same
770            signature so that both can be directly used as draw_func
771    
772    2003-07-15  Bernhard Herzog  <[email protected]>
773    
774            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
775            string values (in addition to the labels) as UTF 8
776    
777            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
778            values if the field type is string
779    
780            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
781            saving a session with non-ascii string classification values.
782    
783            * test/test_load.py (TestClassification.file_contents)
784            (TestClassification.test): Check for non-ascii values in string
785            classifications
786    
787    2003-07-14  Jonathan Coles   <[email protected]>
788    
789            * test/test_view.py: New. Tests for ViewPort.
790    
791    2003-07-14  Frank Koormann   <[email protected]>
792    
793            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
794            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
795    
796            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
797            unicode strings from session file: session title, map title and
798            projection name.
799            
800    2003-07-10  Jonathan Coles   <[email protected]>
801    
802            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
803            drag_stop, not drag_move when the mouse is released.
804    
805    2003-07-10  Jonathan Coles   <[email protected]>
806    
807            The most important part of this is the seperation of view.py into
808            two pieces. viewport.py now has a class called ViewPort which
809            contains all the non-wx parts of view.py and can therefore be
810            tested. view.py contains only the wx-specific parts and is fairly
811            simple.
812    
813            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
814            RTTbug #1992.
815            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
816            RTTbug #1992.
817    
818            * Thuban/Model/classgen.py (generate_singletons,
819            generate_uniform_distribution, generate_quantiles):
820            Added 'fixes' parameter so that property attributes can
821            be held constant over the generated classification groups.
822            (CustomRamp.GetProperties): Remove unused variables.
823    
824            * Thuban/Model/map.py (Map.SetProjection): Send the old
825            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
826            event.
827    
828            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
829            parameter which is a list of records that restricts which
830            records are saved. Fixes RTbug #1997.
831    
832            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
833            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
834    
835            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
836            to allow the user to fix line color/width on generated groups.
837            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
838            functions to optionally fix group properties.
839    
840            * Thuban/UI/main.py (main): Set exception hook to the
841            ShowExceptionDialog. Fixes RTbug #1993.
842    
843            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
844            the table window when it is selectd to be shown.
845    
846            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
847            Export Selection button and move the export buttons underneath
848            the table.
849            (QueryTableFrame.UpdateStatusText): Added event argument so
850            that it can respond to grid selection events. The status text
851            is now updated even when the table is not associated with a
852            layer as was previously assumed.
853            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
854            UpdateStatusText responds to these events.
855            (QueryTableFrame.OnSaveAs): Renamed to doExport.
856            (QueryTableFrame.doExport): Helper function that saves the
857            entire table, or selected rows, to a file.
858            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
859            Respond to export button events and call doExport.
860    
861            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
862            the function doesn't return NULL without first setting a Python
863            Error.
864    
865            * test/runtests.py (main): Only print "Unknown option" for
866            unsupported options.
867    
868            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
869            optional epsilon argument to specify floating point accuracy.
870            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
871            for each item test.
872    
873            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
874            tests for saving selected records.
875    
876            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
877            tests for saving selected records.
878    
879            * test/test_map.py (TestMapWithContents.test_set_projection):
880            MAP_PROJECTION_CHANGED events send the old projection.
881    
882            * test/test_session.py
883            (TestSessionWithContent.test_forward_map_projection):
884            MAP_PROJECTION_CHANGED events send the old projection.
885    
886            * test/test_table.py (TableTest): Update tests to use non-deprecated
887            functions.
888    
889    2003-07-08  Bernhard Herzog  <[email protected]>
890    
891            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
892            constants in the column objects are the standard ones defined in
893            the table module.
894    
895            * test/test_transientdb.py
896            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
897            exporting transient tables as DBF works. This should catch the bug
898            just fixed in TransientTableBase.Width.
899    
900    2003-07-08  Bernhard Herzog  <[email protected]>
901    
902            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
903            interpolated colors correctly.
904    
905            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
906            New. Test case for the fix in classgen.py
907    
908    2003-07-08  Bernhard Herzog  <[email protected]>
909    
910            * test/runtests.py (main): Make the default output less verbose
911            and add a verbosity option (-v) to get the old output
912    
913    2003-07-08  Bernhard Herzog  <[email protected]>
914    
915            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
916            0.9.
917    
918            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
919            New. Return the join type
920    
921            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
922            DTD
923            (SessionSaver.write_data_containers): Save the join type for
924            joined tables
925    
926            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
927            namespace
928            (SessionLoader.start_jointable): Handle the jointype attribute
929    
930            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
931            as of Thuban 0.8. These are now tests to determine whether Thuban
932            can still read files generated by Thuban 0.8
933    
934            * test/test_load.py (LoadSessionTest.dtd)
935            (TestSingleLayer.file_contents)
936            (TestLayerVisibility.file_contents, TestLabels.file_contents)
937            (TestLayerProjection.file_contents)
938            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
939            (TestJoinedTable.file_contents)
940            (TestLoadError.file_contents): Update for new DTD
941            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
942            for new join type attribute
943    
944            * test/test_save.py (SaveSessionTest.dtd)
945            (SaveSessionTest.testEmptySession)
946            (SaveSessionTest.testSingleLayer)
947            (SaveSessionTest.testLayerProjection)
948            (SaveSessionTest.testRasterLayer)
949            (SaveSessionTest.testClassifiedLayer)
950            (SaveSessionTest.test_dbf_table)
951            (SaveSessionTest.test_joined_table): Update for new DTD
952            (SaveSessionTest.test_joined_table): Add test for new join type
953            attribute
954    
955    2003-07-04  Bernhard Herzog  <[email protected]>
956    
957            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
958            function for table_to_dbf
959            (table_to_dbf): Deal with names longer than the 10 character limit
960    
961            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
962            doc-string
963            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
964            long column names
965    
966    2003-07-03  Bernhard Herzog  <[email protected]>
967    
968            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
969    
970    2003-07-03  Bernhard Herzog  <[email protected]>
971    
972            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
973            for the Thuban manual and README with some basic information about
974            the manual
975    
976    2003-07-03  Bernhard Herzog  <[email protected]>
977    
978            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
979            Update doc-string
980            (TransientJoinedTable.create): Do not modify the column objects of
981            the input tables in place and copy all columns of the input tables
982            into the joined table after all.
983    
984            * test/test_transientdb.py
985            (TestTransientTable.test_transient_joined_table_same_column_name):
986            Update to reflect the new behavior
987            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
988            Update to reflect the new behavior
989            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
990            New test case for a bug which modified the column objects in place
991    
992    2003-07-02  Jonathan Coles   <[email protected]>
993    
994            * Thuban/Model/classgen.py (generate_singletons,
995            generate_uniform_distribution, generate_quantiles,
996            GenQuantiles0): Make sure maxValue isn't less than
997            one, otherwise we could divide by zero.
998    
999            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
1000            ClassGenTest.doClassSingleTest): Call doBoundsTest to
1001            check the end classification groups against the
1002            proper property values.
1003            (ClassGenTest.doBoundsTest): New. Checks the first and
1004            last classification groups to make sure their properties
1005            are the correct upper and lower bounds for a color ramp.
1006    
1007    2003-07-02  Jonathan Coles   <[email protected]>
1008    
1009            * Thuban/Model/classgen.py (generate_singletons,
1010            generate_uniform_distribution, generate_quantiles,
1011            GenQuantiles0): The denominator was one to high when
1012            calculating the index for the ramp causing the index
1013            to never to reach one.
1014    
1015    2003-07-02  Jonathan Coles   <[email protected]>
1016    
1017            Changed the singature of ClassGroupRange.__init__ and
1018            ClassGroupRange.SetRange() so that the min/max values are
1019            passed as a tuple. This makes a better calling scheme for
1020            when a Range object is passed instead.
1021    
1022            * Thuban/Model/classgen.py: Fixed parameters to
1023            ClassGroupRange constructor.
1024    
1025            * Thuban/Model/classification.py (ClassGroupRange.__init__):
1026            Consolidate the min/max parameters into a single _range which
1027            can either be a tuple or a Range object.
1028            (ClassGroupRange.SetRange): Consolidate the min/max parameters
1029            into a single _range which can either be a tuple or a Range object.
1030    
1031            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
1032            call to ClassGroupRange constructor to use a tuple.
1033    
1034            * Thuban/Model/layer.py (Layer.SetClassification): Switch
1035            the classification instance variable to the new class
1036            before calling _set_layer otherwise subscribers to a
1037            LAYER_CHANGED event will not see any difference.
1038    
1039            * test/test_classification.py: Fix tests of ClassGroupRange
1040            so that they use the new signature.
1041    
1042            * test/test_load.py: Fix use of ClassGroupRange so that it
1043            uses the new signature.
1044    
1045            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
1046            uses the new signature.
1047    
1048            * test/test_save.py: Fix use of ClassGroupRange so that it
1049            uses the new signature.
1050    
1051    
1052  2003-07-01  Jonathan Coles   <[email protected]>  2003-07-01  Jonathan Coles   <[email protected]>
1053    
1054          * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.          * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.

Legend:
Removed from v.1349  
changed lines
  Added in v.1590

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26