/[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 1573 by bh, Mon Aug 11 10:20:16 2003 UTC revision 1596 by jan, Mon Aug 18 10:03:28 2003 UTC
# Line 1  Line 1 
1    2003-08-18  Jan-Oliver Wagner <[email protected]>
2    
3            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
4    
5    2003-08-15  Bernhard Herzog  <[email protected]>
6    
7            Change the way shapes are returned by a shape store. The
8            ShapesInRegion method returns an iterator over actual shape
9            objects instead of a list of shape ids.
10    
11            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
12            id.
13            (ShapefileStore.ShapesInRegion): Return an iterator over the
14            shapes which yields shape objects instead of returning a list of
15            shape ids
16            (ShapefileStore.AllShapes): New. Return an iterator over all
17            shapes in the shape store
18            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
19    
20            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
21            doc-string.
22    
23            * Thuban/UI/baserenderer.py
24            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
25            layer_shapes and make it return an iterator containg shapes
26            instead of a list of ids.
27            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
28            layer_shapes() change
29    
30            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
31            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
32    
33            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
34            changes in the ShapesInRegion return value.
35            (ViewPort._get_hit_tester): Remove commented out code
36    
37            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
38            new return value.
39            (SimpleShapeStore.AllShapes): New. Implement this method too.
40    
41            * test/test_layer.py (TestLayer.test_arc_layer)
42            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
43            (TestLayer.test_point_layer_with_projection)
44            (TestLayer.test_derived_store): Adapt to changes in the
45            ShapesInRegion return value.
46    
47            * test/test_shapefilestore.py
48            (TestShapefileStoreArc.test_shapes_in_region)
49            (TestShapefileStorePolygon.test_shapes_in_region)
50            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
51            in the ShapesInRegion return value.
52            (TestShapefileStorePoint.test_all_shapes)
53            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
54            methods
55    
56            * test/test_derivedshapestore.py
57            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
58            the ShapesInRegion return value.
59            (TestDerivedShapeStore.test_all_shapes)
60            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
61            methods
62    
63    2003-08-15  Bernhard Herzog  <[email protected]>
64    
65            Make the renderers deal correctly with raw vs. python level
66            representation of shape geometries
67    
68            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
69            Return a flag useraw in addition to the callable and the parameter
70            to indicate whether the callable can deal with the raw shape data
71            or uses the higher level python lists of coordinates. The callable
72            now should accept either the raw data or the return value of the
73            shape's Points() method.
74            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
75            change
76            (BaseRenderer.projected_points): Instead of the shape id use the
77            points list as parameter.
78            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
79            (BaseRenderer.draw_point_shape): Adapt to projected_points()
80            change and accept the points list as parameter instead of the
81            shape id.
82    
83            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
84            the useraw flag as required by the BaseRenderer
85            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
86            changes.
87    
88            * test/test_baserenderer.py
89            (TestBaseRenderer.test_point_with_classification): New test for
90            rendering a map with classifications.
91    
92    2003-08-15  Bernhard Herzog  <[email protected]>
93    
94            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
95            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
96            (ViewPort._get_hit_tester, ViewPort.projected_points)
97            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
98            (ViewPort._find_label_at): Split the find_shape_at method into
99            several new methods and use the functions in the hit-test module.
100    
101            * Thuban/UI/hittest.py: New module with Python-level hit-testing
102            functions
103    
104            * test/test_hittest.py: New. Test for the new hittest module
105    
106    2003-08-15  Bernhard Herzog  <[email protected]>
107    
108            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
109            projection to all corners of the bounding box to get a better
110            approximation of the projected bounding box
111    
112            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
113            New. Test coordinate handling of a layer with a projection.
114            Catches the bug fixed in Layer.ShapesInRegion
115    
116    2003-08-15  Bernhard Herzog  <[email protected]>
117    
118            Move some of the mock objects in test_baserenderer into their own
119            module so they can easily be used from other tests
120    
121            * test/mockgeo.py: New test helper module with some mock objects
122            for geometry related things like shapes, shapestores and
123            projections.
124    
125            * test/test_mockgeo.py: New. Tests for the new helper module
126    
127            * test/test_baserenderer.py: Some of the mock-objects are in
128            mockgeo now.
129    
130    2003-08-12  Jan-Oliver Wagner <[email protected]>
131    
132            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
133    
134    2003-08-12  Bernhard Herzog  <[email protected]>
135    
136            * po/de.po: New. German translations by Bjoern Broscheit
137    
138    2003-08-12  Bernhard Herzog  <[email protected]>
139    
140            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
141            strings have to be one string literal.
142    
143    2003-08-11  Bernhard Herzog  <[email protected]>
144    
145            * test/support.py (FloatComparisonMixin.assertPointListEquals):
146            New. This method was used in various derived classes, but it's
147            better to have it here.
148    
149            * test/test_shapefilestore.py
150            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
151            FloatComparisonMixin
152    
153            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
154            It's now in FloatComparisonMixin
155    
156            * test/test_derivedshapestore.py
157            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
158            in FloatComparisonMixin
159    
160  2003-08-11  Bernhard Herzog  <[email protected]>  2003-08-11  Bernhard Herzog  <[email protected]>
161    
162          * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to          * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26