1 |
|
2003-08-19 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
Moved anything from extensions to libraries. |
4 |
|
|
5 |
|
* libraries: New. |
6 |
|
|
7 |
|
* libraries/ pyprojection, pyshapelib, shapelib, thuban: New. |
8 |
|
|
9 |
|
* libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i, |
10 |
|
Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have |
11 |
|
been moved here from thuban/extensions/pyprojection/ |
12 |
|
See there in the Attic for the older history. |
13 |
|
|
14 |
|
* libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i, |
15 |
|
dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py, |
16 |
|
shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files |
17 |
|
have been moved here from thuban/extensions/pyshapelib/ |
18 |
|
See there in the Attic for the older history. |
19 |
|
|
20 |
|
* libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These |
21 |
|
files have been moved here from thuban/extensions/shapelib/ |
22 |
|
See there in the Attic for the older history. |
23 |
|
|
24 |
|
* libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h, |
25 |
|
gdalwarp.cpp, wxproj.cpp: These files have been moved here from |
26 |
|
thuban/extensions/thuban/ |
27 |
|
See there in the Attic for the older history. |
28 |
|
|
29 |
|
* MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries. |
30 |
|
|
31 |
|
* extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h, |
32 |
|
gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban. |
33 |
|
|
34 |
|
* extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: |
35 |
|
Moved to libraries/shapelib. |
36 |
|
|
37 |
|
* extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py, |
38 |
|
shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c, |
39 |
|
ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c: |
40 |
|
Moved to libraries/pyshapelib. |
41 |
|
|
42 |
|
* extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py, |
43 |
|
LICENSE, Projection.i, Projection_wrap.c, swighelp.txt: |
44 |
|
Moved to libraries/pyprojection. |
45 |
|
|
46 |
|
* extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed. |
47 |
|
|
48 |
|
* extensions: Removed. |
49 |
|
|
50 |
|
2003-08-19 Bernhard Herzog <[email protected]> |
51 |
|
|
52 |
|
* test/test_viewport.py (ViewPortTest): We don't use the |
53 |
|
facilities of FileTestMixin so don't derive from it. |
54 |
|
(TestViewportWithPostGIS): New class with tests for using a |
55 |
|
viewport on a map with postgis layers. |
56 |
|
|
57 |
|
2003-08-19 Bernhard Herzog <[email protected]> |
58 |
|
|
59 |
|
Add the db connection management to the session. |
60 |
|
|
61 |
|
* Thuban/Model/session.py (Session.__init__): New instance |
62 |
|
variable db_connections |
63 |
|
(Session.AddDBConnection, Session.DBConnections) |
64 |
|
(Session.HasDBConnections, Session.CanRemoveDBConnection) |
65 |
|
(Session.RemoveDBConnection): New methods to manage and query the |
66 |
|
db connections managed by the session |
67 |
|
(Session.OpenDBShapeStore): New method to open a shapestore from a |
68 |
|
db connection |
69 |
|
|
70 |
|
* Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New |
71 |
|
messages for the db connection handling in the session |
72 |
|
|
73 |
|
* test/test_postgis_session.py: New. test cases for the session's |
74 |
|
db connection handling with postgis connections |
75 |
|
|
76 |
|
2003-08-19 Bernhard Herzog <[email protected]> |
77 |
|
|
78 |
|
Add very basic postgis database support and the corresponding test |
79 |
|
cases. The test cases require a PostgreSQL + postgis installation |
80 |
|
but no existing database. The database will be created |
81 |
|
automatically by the test cases |
82 |
|
|
83 |
|
* test/README: Add note about skipped tests and the requirements |
84 |
|
of the postgis tests. |
85 |
|
|
86 |
|
* Thuban/Model/postgisdb.py: New. Basic postgis database support. |
87 |
|
|
88 |
|
* test/test_postgis_db.py: New. Test cases for the postgis |
89 |
|
support. |
90 |
|
|
91 |
|
* Thuban/Model/wellknowntext.py: New. Parser for well-known-text |
92 |
|
format |
93 |
|
|
94 |
|
* test/test_wellknowntext.py: New. Test cases for the |
95 |
|
wellknowntext parser |
96 |
|
|
97 |
|
* test/postgissupport.py: New. Support module for tests involving |
98 |
|
a postgis database. |
99 |
|
|
100 |
|
* test/support.py (execute_as_testsuite): Shut down the postmaster |
101 |
|
if it's still running after the tests |
102 |
|
|
103 |
|
* Thuban/Model/data.py (RAW_WKT): New constant for raw data in |
104 |
|
well known text format |
105 |
|
|
106 |
|
2003-08-19 Jan-Oliver Wagner <[email protected]> |
107 |
|
|
108 |
|
* Examples/simple_extensions/hello_world.py: New. Raises a Hello World |
109 |
|
message dialog. |
110 |
|
|
111 |
|
2003-08-18 Bernhard Herzog <[email protected]> |
112 |
|
|
113 |
|
* test/support.py (ThubanTestResult.printErrors): Indent the |
114 |
|
reason for the skips in the output to make it a bit more readable. |
115 |
|
(execute_as_testsuite): New helper function to run a test suite |
116 |
|
and print some more information. |
117 |
|
(run_tests): Use execute_as_testsuite to run the tests |
118 |
|
|
119 |
|
* test/runtests.py (main): Use execute_as_testsuite to run the |
120 |
|
tests |
121 |
|
|
122 |
|
2003-08-18 Bernhard Herzog <[email protected]> |
123 |
|
|
124 |
|
Fix some bugs in Thuban and the test suite that were uncovered by |
125 |
|
changes introduced in Python 2.3: |
126 |
|
|
127 |
|
* Thuban/Model/table.py (DBFTable.__init__): Make sure the |
128 |
|
filename is an absolute name |
129 |
|
|
130 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Make sure the |
131 |
|
filename is an absolute name |
132 |
|
|
133 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Use a |
134 |
|
unique filename to save to and use the correct relative filename |
135 |
|
in the expected output. |
136 |
|
(SaveSessionTest.test_dbf_table): Use the correct relative |
137 |
|
filename in the expected output. |
138 |
|
|
139 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Update the |
140 |
|
test to check whether the filename is absolute. |
141 |
|
|
142 |
|
2003-08-18 Jan-Oliver Wagner <[email protected]> |
143 |
|
|
144 |
|
* Thuban/UI/about.py (About.__init__): Added Silke Reimer. |
145 |
|
|
146 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
147 |
|
|
148 |
|
Change the way shapes are returned by a shape store. The |
149 |
|
ShapesInRegion method returns an iterator over actual shape |
150 |
|
objects instead of a list of shape ids. |
151 |
|
|
152 |
|
* Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape |
153 |
|
id. |
154 |
|
(ShapefileStore.ShapesInRegion): Return an iterator over the |
155 |
|
shapes which yields shape objects instead of returning a list of |
156 |
|
shape ids |
157 |
|
(ShapefileStore.AllShapes): New. Return an iterator over all |
158 |
|
shapes in the shape store |
159 |
|
(DerivedShapeStore.AllShapes): New. Like in ShapefileStore |
160 |
|
|
161 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Update |
162 |
|
doc-string. |
163 |
|
|
164 |
|
* Thuban/UI/baserenderer.py |
165 |
|
(BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to |
166 |
|
layer_shapes and make it return an iterator containg shapes |
167 |
|
instead of a list of ids. |
168 |
|
(BaseRenderer.draw_shape_layer): Update doc-string; Adapt to |
169 |
|
layer_shapes() change |
170 |
|
|
171 |
|
* Thuban/UI/renderer.py (ScreenRenderer.layer_ids) |
172 |
|
(ScreenRenderer.layer_shapes): Rename as in BaseRenderer |
173 |
|
|
174 |
|
* Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to |
175 |
|
changes in the ShapesInRegion return value. |
176 |
|
(ViewPort._get_hit_tester): Remove commented out code |
177 |
|
|
178 |
|
* test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the |
179 |
|
new return value. |
180 |
|
(SimpleShapeStore.AllShapes): New. Implement this method too. |
181 |
|
|
182 |
|
* test/test_layer.py (TestLayer.test_arc_layer) |
183 |
|
(TestLayer.test_polygon_layer, TestLayer.test_point_layer) |
184 |
|
(TestLayer.test_point_layer_with_projection) |
185 |
|
(TestLayer.test_derived_store): Adapt to changes in the |
186 |
|
ShapesInRegion return value. |
187 |
|
|
188 |
|
* test/test_shapefilestore.py |
189 |
|
(TestShapefileStoreArc.test_shapes_in_region) |
190 |
|
(TestShapefileStorePolygon.test_shapes_in_region) |
191 |
|
(TestShapefileStorePoint.test_shapes_in_region): Adapt to changes |
192 |
|
in the ShapesInRegion return value. |
193 |
|
(TestShapefileStorePoint.test_all_shapes) |
194 |
|
(TestShapefileStoreArc.test_shape_shapeid): New tests for the new |
195 |
|
methods |
196 |
|
|
197 |
|
* test/test_derivedshapestore.py |
198 |
|
(TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in |
199 |
|
the ShapesInRegion return value. |
200 |
|
(TestDerivedShapeStore.test_all_shapes) |
201 |
|
(TestDerivedShapeStore.test_shape_shapeid): New tests for the new |
202 |
|
methods |
203 |
|
|
204 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
205 |
|
|
206 |
|
Make the renderers deal correctly with raw vs. python level |
207 |
|
representation of shape geometries |
208 |
|
|
209 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer): |
210 |
|
Return a flag useraw in addition to the callable and the parameter |
211 |
|
to indicate whether the callable can deal with the raw shape data |
212 |
|
or uses the higher level python lists of coordinates. The callable |
213 |
|
now should accept either the raw data or the return value of the |
214 |
|
shape's Points() method. |
215 |
|
(BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer |
216 |
|
change |
217 |
|
(BaseRenderer.projected_points): Instead of the shape id use the |
218 |
|
points list as parameter. |
219 |
|
(BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape) |
220 |
|
(BaseRenderer.draw_point_shape): Adapt to projected_points() |
221 |
|
change and accept the points list as parameter instead of the |
222 |
|
shape id. |
223 |
|
|
224 |
|
* Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return |
225 |
|
the useraw flag as required by the BaseRenderer |
226 |
|
(ScreenRenderer.draw_shape_layer): Adapt to low-level renderer |
227 |
|
changes. |
228 |
|
|
229 |
|
* test/test_baserenderer.py |
230 |
|
(TestBaseRenderer.test_point_with_classification): New test for |
231 |
|
rendering a map with classifications. |
232 |
|
|
233 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
234 |
|
|
235 |
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at) |
236 |
|
(ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer) |
237 |
|
(ViewPort._get_hit_tester, ViewPort.projected_points) |
238 |
|
(ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon) |
239 |
|
(ViewPort._find_label_at): Split the find_shape_at method into |
240 |
|
several new methods and use the functions in the hit-test module. |
241 |
|
|
242 |
|
* Thuban/UI/hittest.py: New module with Python-level hit-testing |
243 |
|
functions |
244 |
|
|
245 |
|
* test/test_hittest.py: New. Test for the new hittest module |
246 |
|
|
247 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
248 |
|
|
249 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer |
250 |
|
projection to all corners of the bounding box to get a better |
251 |
|
approximation of the projected bounding box |
252 |
|
|
253 |
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
254 |
|
New. Test coordinate handling of a layer with a projection. |
255 |
|
Catches the bug fixed in Layer.ShapesInRegion |
256 |
|
|
257 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
258 |
|
|
259 |
|
Move some of the mock objects in test_baserenderer into their own |
260 |
|
module so they can easily be used from other tests |
261 |
|
|
262 |
|
* test/mockgeo.py: New test helper module with some mock objects |
263 |
|
for geometry related things like shapes, shapestores and |
264 |
|
projections. |
265 |
|
|
266 |
|
* test/test_mockgeo.py: New. Tests for the new helper module |
267 |
|
|
268 |
|
* test/test_baserenderer.py: Some of the mock-objects are in |
269 |
|
mockgeo now. |
270 |
|
|
271 |
|
2003-08-12 Jan-Oliver Wagner <[email protected]> |
272 |
|
|
273 |
|
* Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit. |
274 |
|
|
275 |
2003-08-12 Bernhard Herzog <[email protected]> |
2003-08-12 Bernhard Herzog <[email protected]> |
276 |
|
|
277 |
* po/de.po: New. German translations by Bjoern Broscheit |
* po/de.po: New. German translations by Bjoern Broscheit |