/[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 1418 by bh, Tue Jul 15 08:44:20 2003 UTC revision 1573 by bh, Mon Aug 11 10:20:16 2003 UTC
# Line 1  Line 1 
1    2003-08-11  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
4            error message
5    
6    2003-08-08  Jan-Oliver Wagner <[email protected]>
7    
8            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
9            with version number.
10            Changed title to reflect version number of Thuban.
11    
12    2003-08-08  Jan-Oliver Wagner <[email protected]>
13    
14            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
15            the list corresponds to the "About" web page.
16    
17    2003-08-08  Bernhard Herzog  <[email protected]>
18    
19            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
20            Make sure translated strings are recognized as one string literal.
21    
22            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
23            Make sure translated strings are recognized as one string literal.
24    
25            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
26            translated strings are recognized as one string literal.
27    
28            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
29            sure translated strings are recognized as one string literal.
30    
31    2003-08-07  Bernhard Herzog  <[email protected]>
32    
33            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
34            Simply delegates to the original shapestore.
35    
36            * test/test_derivedshapestore.py
37            (TestDerivedShapeStore.test_raw_format): New. Test case for
38            DerivedShapeStore.RawShapeFormat
39    
40    2003-08-07  Bernhard Herzog  <[email protected]>
41    
42            Add raw data interface to shape objects.
43    
44            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
45            class to ShapefileShape which now holds shapefile specific
46            information.
47            (ShapefileShape.compute_bbox): Simplified to not cache any
48            information. The way this method is used that shouldn't matter
49            performance wise.
50            (ShapefileShape.RawData): New. Return the shapeid which is the raw
51            data format for shapes from shapefiles.
52            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
53            in the shape objects returned by a shapestore. For a
54            ShapefileStore this is always RAW_SHAPEFILE.
55            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
56            method.
57    
58            * test/test_shapefilestore.py
59            (TestShapefileStore.test_raw_format): New test to test the raw
60            format feature of shapes.
61    
62            * Thuban/Model/layer.py: Remove the unused import of Shape from
63            data. It was only there for interface compatibility but it's not
64            used inside of Thuban and the generic Shape class has gone away.
65    
66            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
67            the raw data format and only use an optimized version of its a
68            shapefile.
69    
70    2003-08-07  Bernhard Herzog  <[email protected]>
71    
72            * test/test_baserenderer.py (SimpleShape): Shape class for the
73            tests.
74            (SimpleShapeStore.Shape): Use SimpleShape instead of
75            Thuban.Model.data.Shape to make the tests independed of the coming
76            changes.
77    
78    2003-08-07  Bernhard Herzog  <[email protected]>
79    
80            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
81            (ThubanTestProgram): New classes that extend the respective
82            classes from unittest. These new version support skipping tests
83            under certain expected conditions. In the Thuban test suite we
84            uses this for tests that require the optional gdal support.
85            (run_tests): Use ThubanTestProgram instead of the unittest.main()
86    
87            * test/runtests.py (main): Use the new ThubanTestRunner instead of
88            the normal one from unittest
89    
90            * test/test_layer.py (TestLayer.test_raster_layer): If this test
91            is not run because gdal support isn't available report this to the
92            runner.
93    
94            * test/test_baserenderer.py
95            (TestBaseRenderer.test_raster_no_projection): Do not run this test
96            if gdal support isn't available and report this to the runner.
97    
98    2003-08-06  Bernhard Herzog  <[email protected]>
99    
100            Rearrange the renderers a bit, partly in preparation for changes
101            required for the postgis merge, partly to make it more testable.
102            Also make the representation of coordinates in Shapes more
103            consistent.
104    
105            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
106            this class is now in BaseRenderer. This class is now practically
107            only a specialization of BaseRenderer for rendering to an actual
108            wx DC.
109            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
110            to get the shapetype specific rendering functions.
111    
112            * Thuban/UI/baserenderer.py: New file with the basic rendering
113            logic. The code in this file is completely independend of wx.
114            (BaseRenderer): Class with the basic rendering logic
115    
116            * test/test_baserenderer.py: New. Test cases for BaseRenderer
117    
118            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
119            error_on_redraw to guard agains endless loops and stack overflows
120            when there's a bug in the rendering code that raises exceptions.
121            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
122            rendering into a separate method _do_redraw so that error handling
123            is a bit easier. When an exception occurs, set error_on_redraw to
124            true. When it's true on entry to OnIdle do nothing and return
125            immediately.
126    
127            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
128            Shape object will always have the coordinates as a list of list of
129            coordinate pairs (tuples).
130            (Shape.compute_bbox): Adapt to new representation.
131    
132            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
133            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
134            Shape objects.
135    
136            * test/test_shapefilestore.py
137            (ShapefileStoreTests.assertFloatTuplesEqual)
138            (ShapefileStoreTests.assertPointListEquals): Rename to
139            assertPointListEquals and change purpose to checking equality of
140            the lists returned by Shape.Points().
141            (TestShapefileStoreArc.test_shape)
142            (TestShapefileStorePolygon.test_shape)
143            (TestShapefileStorePoint.test_shape): Use the new
144            assertPointListEquals instead of assertFloatTuplesEqual
145    
146            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
147            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
148            and change purpose to checking equality of the lists returned by
149            Shape.Points().
150            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
151            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
152            (TestLayer.test_derived_store): Use the new assertPointListEquals
153            instead of assertFloatTuplesEqual
154    
155            * test/test_derivedshapestore.py
156            (TestDerivedShapeStore.assertFloatTuplesEqual)
157            (TestDerivedShapeStore.assertPointListEquals): Rename to
158            assertPointListEquals and change purpose to checking equality of
159            the lists returned by Shape.Points().
160            (TestDerivedShapeStore.test_shape): Use the new
161            assertPointListEquals instead of assertFloatTuplesEqual
162    
163    2003-08-06  Jan-Oliver Wagner <[email protected]>
164    
165            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
166            a bounding box. A dialog is raised in case, no bounding box
167            is found. This fixes bug #2043:
168            https://intevation.de/rt/webrt?serial_num=2043
169    
170    2003-08-05  Bernhard Herzog  <[email protected]>
171    
172            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
173            object look like a Color instantiation. Formerly it looked like a
174            tuple.
175    
176            * test/test_color.py (TestColor.test_repr)
177            (TestColor.test_equality, TestColor.test_inequality): New. test
178            some more apects of the Color class
179            (TestTransparent.test_repr, TestTransparent.test_hex)
180            (TestTransparent.test_equality): New. Test cases for the
181            Transparent object.
182    
183    2003-08-04  Jan-Oliver Wagner <[email protected]>
184    
185            * Doc/manual/thuban-manual.xml: a number of small improvements.
186            The resulting file is the version submitted for GREAT-ER II.
187    
188    2003-08-01  Bernhard Herzog  <[email protected]>
189    
190            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
191            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
192            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
193    
194            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
195            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
196            (ThubanEndBusyCursor): Add doc-strings
197    
198    2003-08-01  Bernhard Herzog  <[email protected]>
199    
200            First step towards PostGIS integration. More abstraction by movin
201            more code from the layer to the shapestore. More methods of the
202            layer are now simply delegated to the equivalent method of the
203            shapestore. The SHAPETYPE_* constants are now in data not in
204            layer.
205    
206            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
207            (SHAPETYPE_POINT, Shape): Move these constants and classes from
208            layer.py to data.py
209            (ShapefileStore.__init__): More Initialization for the new methods
210            and functionality.
211            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
212            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
213            (ShapefileStore.Shape): New methods that were formerly implemented
214            in the layer.
215            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
216            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
217            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
218            equivalents of the new shape methods. These versions are simply
219            delegated to the original shapstore.
220    
221            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
222            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
223            (Layer.SetShapeStore): Removed the initializatin of instance
224            variables that were needed for the stuff that's now in
225            ShapefileStore
226            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
227            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
228            shapestore.
229    
230            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
231            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
232            instead of layer.
233    
234            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
235    
236            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
237    
238            * test/test_layer.py: Import the SHAPETYPE_* constants from data
239            instead of layer.
240            (TestLayer.test_derived_store): Remove the test for the exception
241            when instantiating the DerivedShapeStore with an incompatible
242            table which is now in test_derivedshapestore.py. Add some more
243            tests of the layer methods to determine whether they work for a
244            DerivedShapeStore as well.
245    
246    2003-07-31  Jonathan Coles   <[email protected]>
247    
248            * Doc/manual/thuban-manual.xml: Fix the list of required packages
249            by just listing the name and where they can be found.
250    
251    2003-07-31  Frank Koormann   <[email protected]>
252    
253            * Doc/manual/thuban-manual.xml:
254            Changed the screenshot elements to figure.
255            Changed some variablelist elements to itemizedlist.
256            Added section on GDAL formats.
257    
258    2003-07-31  Jonathan Coles   <[email protected]>
259    
260            * Doc/manual/thuban-manual.xml: Added a few sentences about
261            the Fix Border Color option when generating classes.
262    
263    2003-07-30  Jonathan Coles   <[email protected]>
264    
265            * Thuban/Model/classgen.py: Add docstrings. Rename specific
266            Ramp instances to use lower_case_style.
267    
268            * Thuban/UI/classgen.py: Use renamed Ramp instances.
269            
270            * Thuban/UI/classifier.py: Add docstrings.
271    
272            * Thuban/UI/dock.py: Add docstrings.
273    
274            * test/test_classgen.py: Use renamed Ramp instances.
275    
276    2003-07-30  Bernhard Herzog  <[email protected]>
277    
278            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
279            was never used in Thuban.
280    
281    2003-07-30  Bernhard Herzog  <[email protected]>
282    
283            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
284            method directly instead of going through the transient_table
285            method. This faster because transient_table may force the copy of
286            a DBF file into the transient database and setting a table's title
287            doesnm't affect the title of the associated transient table, so
288            this fixes RT #2042
289    
290            * Thuban/UI/main.py (__version__): Don't import the already
291            removed show_exception_dialog.
292    
293    2003-07-29  Jonathan Coles   <[email protected]>
294    
295            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
296            Put back this method and remove the equivalent function since we
297            are setting the exception hook from within this class (OnInit).
298    
299    2003-07-29  Jonathan Coles   <[email protected]>
300    
301            * Doc/manual/images/5_2_custom_ramp.png,
302            Doc/manual/images/5_2_quantiles.png,
303            Doc/manual/images/5_2_uniform_dist.png,
304            Doc/manual/images/5_2_unique_values.png,
305            Doc/manual/images/8_int_error.png: New screen shots.
306    
307            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
308            some points, and added more screen shots.
309    
310    2003-07-29  Bernhard Herzog  <[email protected]>
311    
312            * Thuban/Model/data.py: Remove the now unused import of warnings
313    
314    2003-07-29  Bernhard Herzog  <[email protected]>
315    
316            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
317            deprecated since before the 0.8 release and isn't used in Thuban
318            itself anymore.
319    
320            * Thuban/Model/transientdb.py: Remove some unnecessary imports
321    
322    2003-07-29  Jonathan Coles   <[email protected]>
323    
324            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
325            python exception hook here so that we are sure to catch any
326            Thuban exception that happen during initialization.
327    
328            * Thuban/UI/main.py (main): Don't set the exception hook here,
329            it will get set in ThubanApplication.OnInit.
330    
331    2003-07-29  Jonathan Coles   <[email protected]>
332                                                                                
333            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
334            Removed and called it show_exception_dialog() so that the exception
335            handler can be set before the class is created.
336                                                                                
337            * Thuban/UI/main.py (main): Install the exception handler before
338            a ThubanApplication is created.
339                                                                                    
340    2003-07-29  Bernhard Herzog  <[email protected]>
341    
342            * po/it.po: New. Italian translation by Maurizio Napolitano
343    
344            * po/ru.po: New. Russian translation by Alex Shevlakov
345    
346    2003-07-29  Frank Koormann   <[email protected]>
347    
348            * Doc/manual/thuban-manual.xml: Extended section on supported
349            projections.
350            
351    2003-07-29  Frank Koormann   <[email protected]>
352    
353            * Doc/manual/thuban-manual.xml: gaspell-checked.
354    
355    2003-07-29  Jonathan Coles   <[email protected]>
356    
357            * Doc/manual/images/3_5_legend.png: Added border to improve look
358            on white background.
359    
360    2003-07-29  Jonathan Coles   <[email protected]>
361    
362            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
363            descriptions for the legend toolbar.
364    
365            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
366            cursor from dialog box.
367    
368    2003-07-28  Jonathan Coles   <[email protected]>
369    
370            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
371    
372            * Doc/manual/images/2_4_session_tree.png,
373            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
374            Doc/manual/images/4_2_layer_properties.png,
375            Doc/manual/images/4_2_raster_layer_properties.png,
376            Doc/manual/images/5_3_genclass.png,
377            Doc/manual/images/5_classification.png,
378            Doc/manual/images/6_projection.png,
379            Doc/manual/images/7_1_table_view.png,
380            Doc/manual/images/7_2_5_join.png: New screenshots.
381    
382    2003-07-24  Jonathan Coles   <[email protected]>
383    
384            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
385    
386    2003-07-24  Jonathan Coles   <[email protected]>
387    
388            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
389            chapter on Layer Management.
390    
391            * Doc/manual/Makefile: New. Makefile to generate all formats for the
392            manual and images.
393    
394    2003-07-24  Bernhard Herzog  <[email protected]>
395    
396            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
397            it annoys lintian which warns about these files not being
398            executable. The #1 isn't necessary here since if you absolutely
399            must execute them you can always say "python <filename>".
400    
401            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
402            superfluous code to set brush and pen for point shapes
403    
404            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
405            belong in viewport anyway
406    
407    2003-07-24  Frank Koormann   <[email protected]>
408    
409            * Doc/manual/thuban-manual.xml: Added section on table management.
410    
411    2003-07-24  Bernhard Herzog  <[email protected]>
412    
413            * test/runtests.py (main): Recognize the long "verbose" option
414            correctly.
415    
416    2003-07-22  Jonathan Coles   <[email protected]>
417    
418            * Doc/manual/thuban-manual.xml: Continue to write first revision
419            of the manual.
420    
421            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
422            with Begin/EndDrawing() calls to ensure we aren't doing to
423            many updates to the dc during rendering.
424            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
425            a pen and brush argument so they need to be passed to the function.
426    
427            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
428            Calculates the minimum and maximum scale values. Factored out
429            of set_view_transform so that it could be used to zoom all the
430            way into a single point.
431            (ViewPort.set_view_transform): Call calc_min_max_scales().
432            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
433            if only a single point is selected.
434    
435            * Doc/manual/images/1_2_legend_close.png,
436            Doc/manual/images/1_2_legend_dock.png,
437            Doc/manual/images/1_2_mainwindow.png,
438            Doc/manual/images/1_2_mainwindow.ps,
439            Doc/manual/images/1_2_mainwindow.sk,
440            Doc/manual/images/3_2_fullextent.png,
441            Doc/manual/images/3_2_fulllayerextent.png,
442            Doc/manual/images/3_2_fullshapeextent.png,
443            Doc/manual/images/3_2_pan.png,
444            Doc/manual/images/3_2_zoomin.png,
445            Doc/manual/images/3_2_zoomout.png,
446            Doc/manual/images/3_3_identify.png,
447            Doc/manual/images/3_3_label.png,
448            Doc/manual/images/3_5_invisible.png,
449            Doc/manual/images/3_5_movedown.png,
450            Doc/manual/images/3_5_moveup.png,
451            Doc/manual/images/3_5_props.png,
452            Doc/manual/images/3_5_tobottom.png,
453            Doc/manual/images/3_5_totop.png,
454            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
455    
456    2003-07-18  Bernhard Herzog  <[email protected]>
457    
458            * Thuban/UI/messages.py (MAP_REPLACED): New message.
459    
460            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
461            after the new map has been assigned
462    
463            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
464            Delegate MAP_REPLACED to the canvas too
465            (MainWindow.prepare_new_session): Removed. Thanks to the new
466            MAP_REPLACED message it's no longer needed
467            (MainWindow.OpenSession, MainWindow.NewSession):
468            prepare_new_session has been removed.
469    
470            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
471            MAP_REPLACED so that we can close the dialog if a new map is set.
472            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
473            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
474            dialog
475    
476            * test/test_viewport.py (SimpleViewPortTest)
477            (SimpleViewPortTest.test_default_size): Add doc-strings
478            (ViewPortTest.setUp): Bind map to self.map so we can use it in
479            tests. Subscribe to MAP_REPLACED messages too.
480            (ViewPortTest.tearDown): No need to explicitly unsubscribe
481            (ViewPortTest.test_set_map): New test for the SetMap method.
482    
483    2003-07-18  Bernhard Herzog  <[email protected]>
484    
485            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
486            Move this test from ViewPortTest.setUp to this new separate test
487            case. setUp is not the place for the actual tests.
488            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
489            more of the test from setUp to the new test test_inital_settings.
490            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
491            (ViewPortTest.test_proj_conv): Split test_proj_conv into
492            test_win_to_proj and test_proj_to_win and make the tests easier to
493            understand
494            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
495            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
496            (ViewPortTest.test_unprojected_rect_around_point)
497            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
498            Reformat to increase readability.
499    
500    2003-07-18  Bernhard Herzog  <[email protected]>
501    
502            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
503    
504    2003-07-18  Bernhard Herzog  <[email protected]>
505    
506            * test/runtests.py: The test suite can now be run without an X
507            connection. To make sure this remains true, remove the DISPLAY
508            environment variable so that an error occurs if the wxGTK is
509            imported accidentally
510    
511    2003-07-18  Bernhard Herzog  <[email protected]>
512    
513            * Thuban/UI/viewport.py: Remove unused imports
514    
515            * Thuban/UI/view.py: Remove unused imports
516    
517    2003-07-18  Bernhard Herzog  <[email protected]>
518    
519            * test/test_export.py Remove unused imports. The OutputTransform
520            function is now in viewport.py and is called output_transform
521            (TestScalebar.test_output_transform)
522            (TestScalebar.test_OutputTransform): Renamed to
523            test_output_transform and updated to use output_transform instead
524            of OutputTransform
525    
526            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
527            renamed.
528            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
529            renamed to output_transform
530    
531            * Thuban/UI/viewport.py (OutputTransform, output_transform):
532            Rename to output_transform
533    
534    2003-07-18  Bernhard Herzog  <[email protected]>
535    
536            * Thuban/Model/layer.py (Layer.__init__): Rename
537            classificationField to classificatin_column and init it here so
538            that it can be used in SetClassificationColumn
539            (Layer.GetClassificationColumn, Layer.GetClassificationField):
540            Rename to GetClassificationColumn.
541            (Layer.SetClassificationColumn, Layer.SetClassificationField):
542            Rename to SetClassificationColumn and issue a LAYER_CHANGED
543            message if the column changes.
544            (Layer._classification_changed, Layer.ClassChanged): Rename to
545            _classification_changed. Update the callers.
546            (Layer.SetShapeStore): Further field->column renames.
547    
548            * Thuban/Model/load.py (SessionLoader.start_classification)
549            (SessionLoader.start_clpoint): Updates because of
550            field->column method name changes in the Layer class
551    
552            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
553            because of field->column method name changes in the Layer class
554    
555            * Thuban/UI/classifier.py (Classifier.__init__)
556            (Classifier._OnTry, Classifier._OnRevert): Updates because of
557            field->column method name changes in the Layer class
558    
559            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
560            because of field->column method name changes in the Layer class
561    
562            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
563            of field->column method name changes in the Layer class
564    
565            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
566            (SaveSessionTest.testClassifiedLayer): Update because of
567            field->column method name changes in the Layer class
568    
569            * test/test_layer.py (SetShapeStoreTests.setUp)
570            (SetShapeStoreTests.test_sanity): Update because of field->column
571            method name changes in the Layer class
572            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
573            (TestLayerModification.test_sanity)
574            (TestLayerModification.test_initial_settings): remove unsued code
575            and rename to test_sanity.
576            (TestLayerModification.test_set_classification): New test for
577            SetClassification and SetClassificationField.
578    
579    2003-07-18  Bernhard Herzog  <[email protected]>
580    
581            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
582            the non-fixed values as well. The old test would have accepted a
583            fixed ramp that only returnes the fixed properties
584    
585    2003-07-17  Jonathan Coles   <[email protected]>
586    
587            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
588            shots for the manual. The XCF file is the source image and
589            has additional layers to support changes.
590    
591            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
592    
593            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
594            Return both the new class and the field name.
595    
596            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
597            fit the map to the window as this changes any zoom level that
598            the user may have set.
599    
600    2003-07-16  Jonathan Coles   <[email protected]>
601    
602            * Thuban/Model/classgen.py (generate_singletons,
603            generate_uniform_distribution, generate_quantiles): Remove
604            fixes parameter, but maintain the same functionality by having
605            the calling function pass a FixedRamp object for the ramp.
606            (FixedRamp): New. Adapts a ramp to have fixed property values.
607    
608            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
609            (Classification): Inherit from Publisher.
610            (Classification.__init__): Remove the layer parameter.
611            Classifications no longer need to have a parent layer.
612            (Classification.GetField, Classification.GetFieldType,
613            Classification.SetFieldInfo): Removed. The field name is stored
614            in the layer, and the type can be retreived by calling
615            Layer.GetFieldType().
616            (Classification._set_layer, Classification.GetLayer): Removed.
617            Classifications no longer have a parent layer.
618    
619            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
620            classification.
621            (Layer.SetShapeStore): Reset the classification first while
622            we still have the old shape store to work with.
623            (Layer.GetClassificationField, Layer.SetClassificationField):
624            New. Method for getting/setting the field to classify on.
625            (Layer.SetClassification): Simplified now that the layer
626            simply has to hold a reference to the classification and not
627            tell the classification who owns it.
628            Fixes RTbug #2023.
629    
630            * Thuban/Model/load.py (SessionLoader.start_classification):
631            Set the field name on the layer, not the classification.
632    
633            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
634            classification is modified.
635    
636            * Thuban/Model/save.py (SessionSaver.write_classification):
637            Get the field name and type from the layer.
638    
639            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
640            parameter records to rows and add docstring. Fixes RTbug #1997.
641    
642            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
643            ramp when we need to fix certain values of a ramp rather than
644            using the old fixes parameter. Fixes RTbug #2024.
645    
646            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
647            parameter.
648            (ClassTable.Reset): Add fieldType parameter and use it, rather
649            than asking the classification.
650            (Classifier.__init__): Remember the original class's field
651            and ask the layer for the field type, rather than the classification.
652            (Classifier.__SetGridTable): Retrieve the field and field type
653            for the table because they are not in the classification.
654            (Classifier._OnTry, Classifier._OnRevert): Set the classification
655            field on the layer in addition to the classification itself.
656    
657            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
658            classification field from layer.
659    
660            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
661            classification field from layer. Split up tests and remove
662            *-imports. Fixes RTbug #1992.
663    
664            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
665    
666            * test/test_classification.py
667            (TestClassification.test_classification): Remove tests for methods
668            that no longer exist.
669    
670            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
671            __init__ no longer has a field parameter, use SetClassificationField.
672            (SetShapeStoreTests.test_sanity): Use layer object to get class
673            field info.
674    
675            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
676            SetClassificationField on layer to set class field info.
677    
678            * test/test_viewport.py: Renamed from test/test_view.py.
679    
680    2003-07-16  Jan-Oliver Wagner <[email protected]>
681    
682            * Doc/manual/thuban-manual.xml: Added authors and an initial
683            coarse structure.
684    
685    2003-07-15  Bernhard Herzog  <[email protected]>
686    
687            * test/support.py (FloatComparisonMixin): This is a mix-in class
688            and therefore should not be derived from any other class.
689    
690            * test/test_range.py (RangeTest): FloatComparisonMixin is a
691            mix-in, so derive from TestCase as well.
692    
693    2003-07-15  Bernhard Herzog  <[email protected]>
694    
695            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
696            draw_func handling a bit to remove one layer of indirection. This
697            makes the renderer about 10% faster in the non-classifying case
698            and the code a bit cleaner
699            (MapRenderer.draw_point_shape): Add the pen and brush parameters
700            and set them in the dc. Now the draw_point_shape method and
701            wxproj's draw_polygon_shape function have basically the same
702            signature so that both can be directly used as draw_func
703    
704  2003-07-15  Bernhard Herzog  <[email protected]>  2003-07-15  Bernhard Herzog  <[email protected]>
705    
706          * Thuban/Model/save.py (SessionSaver.write_classification): Encode          * Thuban/Model/save.py (SessionSaver.write_classification): Encode

Legend:
Removed from v.1418  
changed lines
  Added in v.1573

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26