/[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 1534 by jonathan, Thu Jul 31 12:44:30 2003 UTC revision 1560 by bh, Thu Aug 7 17:32:20 2003 UTC
# Line 1  Line 1 
1    2003-08-07  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/layer.py: Remove the unused import of Shape from
4            data. It was only there for interface compatibility but it's not
5            used inside of Thuban and the generic Shape class will go away
6            soon anyway.
7    
8            * test/test_baserenderer.py (SimpleShape): Shape class for the
9            tests.
10            (SimpleShapeStore.Shape): Use SimpleShape instead of
11            Thuban.Model.data.Shape to make the tests independed of the coming
12            changes.
13    
14    2003-08-07  Bernhard Herzog  <[email protected]>
15    
16            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
17            (ThubanTestProgram): New classes that extend the respective
18            classes from unittest. These new version support skipping tests
19            under certain expected conditions. In the Thuban test suite we
20            uses this for tests that require the optional gdal support.
21            (run_tests): Use ThubanTestProgram instead of the unittest.main()
22    
23            * test/runtests.py (main): Use the new ThubanTestRunner instead of
24            the normal one from unittest
25    
26            * test/test_layer.py (TestLayer.test_raster_layer): If this test
27            is not run because gdal support isn't available report this to the
28            runner.
29    
30            * test/test_baserenderer.py
31            (TestBaseRenderer.test_raster_no_projection): Do not run this test
32            if gdal support isn't available and report this to the runner.
33    
34    2003-08-06  Bernhard Herzog  <[email protected]>
35    
36            Rearrange the renderers a bit, partly in preparation for changes
37            required for the postgis merge, partly to make it more testable.
38            Also make the representation of coordinates in Shapes more
39            consistent.
40    
41            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
42            this class is now in BaseRenderer. This class is now practically
43            only a specialization of BaseRenderer for rendering to an actual
44            wx DC.
45            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
46            to get the shapetype specific rendering functions.
47    
48            * Thuban/UI/baserenderer.py: New file with the basic rendering
49            logic. The code in this file is completely independend of wx.
50            (BaseRenderer): Class with the basic rendering logic
51    
52            * test/test_baserenderer.py: New. Test cases for BaseRenderer
53    
54            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
55            error_on_redraw to guard agains endless loops and stack overflows
56            when there's a bug in the rendering code that raises exceptions.
57            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
58            rendering into a separate method _do_redraw so that error handling
59            is a bit easier. When an exception occurs, set error_on_redraw to
60            true. When it's true on entry to OnIdle do nothing and return
61            immediately.
62    
63            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
64            Shape object will always have the coordinates as a list of list of
65            coordinate pairs (tuples).
66            (Shape.compute_bbox): Adapt to new representation.
67    
68            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
69            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
70            Shape objects.
71    
72            * test/test_shapefilestore.py
73            (ShapefileStoreTests.assertFloatTuplesEqual)
74            (ShapefileStoreTests.assertPointListEquals): Rename to
75            assertPointListEquals and change purpose to checking equality of
76            the lists returned by Shape.Points().
77            (TestShapefileStoreArc.test_shape)
78            (TestShapefileStorePolygon.test_shape)
79            (TestShapefileStorePoint.test_shape): Use the new
80            assertPointListEquals instead of assertFloatTuplesEqual
81    
82            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
83            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
84            and change purpose to checking equality of the lists returned by
85            Shape.Points().
86            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
87            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
88            (TestLayer.test_derived_store): Use the new assertPointListEquals
89            instead of assertFloatTuplesEqual
90    
91            * test/test_derivedshapestore.py
92            (TestDerivedShapeStore.assertFloatTuplesEqual)
93            (TestDerivedShapeStore.assertPointListEquals): Rename to
94            assertPointListEquals and change purpose to checking equality of
95            the lists returned by Shape.Points().
96            (TestDerivedShapeStore.test_shape): Use the new
97            assertPointListEquals instead of assertFloatTuplesEqual
98    
99    2003-08-06  Jan-Oliver Wagner <[email protected]>
100    
101            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
102            a bounding box. A dialog is raised in case, no bounding box
103            is found. This fixes bug #2043:
104            https://intevation.de/rt/webrt?serial_num=2043
105    
106    2003-08-05  Bernhard Herzog  <[email protected]>
107    
108            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
109            object look like a Color instantiation. Formerly it looked like a
110            tuple.
111    
112            * test/test_color.py (TestColor.test_repr)
113            (TestColor.test_equality, TestColor.test_inequality): New. test
114            some more apects of the Color class
115            (TestTransparent.test_repr, TestTransparent.test_hex)
116            (TestTransparent.test_equality): New. Test cases for the
117            Transparent object.
118    
119    2003-08-04  Jan-Oliver Wagner <[email protected]>
120    
121            * Doc/manual/thuban-manual.xml: a number of small improvements.
122            The resulting file is the version submitted for GREAT-ER II.
123    
124    2003-08-01  Bernhard Herzog  <[email protected]>
125    
126            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
127            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
128            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
129    
130            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
131            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
132            (ThubanEndBusyCursor): Add doc-strings
133    
134    2003-08-01  Bernhard Herzog  <[email protected]>
135    
136            First step towards PostGIS integration. More abstraction by movin
137            more code from the layer to the shapestore. More methods of the
138            layer are now simply delegated to the equivalent method of the
139            shapestore. The SHAPETYPE_* constants are now in data not in
140            layer.
141    
142            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
143            (SHAPETYPE_POINT, Shape): Move these constants and classes from
144            layer.py to data.py
145            (ShapefileStore.__init__): More Initialization for the new methods
146            and functionality.
147            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
148            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
149            (ShapefileStore.Shape): New methods that were formerly implemented
150            in the layer.
151            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
152            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
153            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
154            equivalents of the new shape methods. These versions are simply
155            delegated to the original shapstore.
156    
157            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
158            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
159            (Layer.SetShapeStore): Removed the initializatin of instance
160            variables that were needed for the stuff that's now in
161            ShapefileStore
162            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
163            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
164            shapestore.
165    
166            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
167            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
168            instead of layer.
169    
170            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
171    
172            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
173    
174            * test/test_layer.py: Import the SHAPETYPE_* constants from data
175            instead of layer.
176            (TestLayer.test_derived_store): Remove the test for the exception
177            when instantiating the DerivedShapeStore with an incompatible
178            table which is now in test_derivedshapestore.py. Add some more
179            tests of the layer methods to determine whether they work for a
180            DerivedShapeStore as well.
181    
182  2003-07-31  Jonathan Coles   <[email protected]>  2003-07-31  Jonathan Coles   <[email protected]>
183    
184          * Doc/manual/thuban-manual.xml: Fix the list of required packages          * Doc/manual/thuban-manual.xml: Fix the list of required packages

Legend:
Removed from v.1534  
changed lines
  Added in v.1560

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26