1 |
|
2003-12-01 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild |
4 |
|
cards for the dialog so that shapefiles ending in all uppercase |
5 |
|
SHP are listed too |
6 |
|
|
7 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
8 |
|
|
9 |
|
* Thuban/version.py (longversion): Update to 1.0rc1 |
10 |
|
|
11 |
|
* setup.py (setup call): Update version to 1.0rc1. Use the |
12 |
|
[email protected] email address as author email instead of my |
13 |
|
personal one. |
14 |
|
|
15 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
16 |
|
|
17 |
|
* po/de.po: Update german translation. |
18 |
|
|
19 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
20 |
|
|
21 |
|
Unify the filenames stored in .thuban files so that the .thuban |
22 |
|
files are more platform independend |
23 |
|
|
24 |
|
* Thuban/Model/save.py (unify_filename): New. Unify filenames so |
25 |
|
that they can be used on both windows and unix |
26 |
|
(SessionSaver.prepare_filename): New. Handle all filename |
27 |
|
transformations for filenames stored in the thuban file |
28 |
|
(SessionSaver.write_data_containers, SessionSaver.write_layer): |
29 |
|
Use prepare_filename |
30 |
|
|
31 |
|
* test/test_save.py (SaveSessionTest.testSingleLayer) |
32 |
|
(SaveSessionTest.testLayerProjection) |
33 |
|
(SaveSessionTest.testRasterLayer) |
34 |
|
(SaveSessionTest.testClassifiedLayer) |
35 |
|
(SaveSessionTest.test_dbf_table) |
36 |
|
(SaveSessionTest.test_joined_table): Filenames are always stored |
37 |
|
with slashes on all currently supported platforms so adapt all |
38 |
|
tests to this |
39 |
|
|
40 |
|
* test/test_load.py (LoadSessionTest.filenames): With the new |
41 |
|
filename scheme the filenames in the tests should be |
42 |
|
understandable on all currently supported platforms so we turn |
43 |
|
this into an empty list because we don't have to normalize them |
44 |
|
anymore |
45 |
|
|
46 |
|
2003-11-28 Bernhard Herzog <[email protected]> |
47 |
|
|
48 |
|
* test/test_layer.py (TestLayer.test_arc_layer_with_projection): |
49 |
|
Add the ellipsoid to the projection since some Proj versions |
50 |
|
complain if it's missing. |
51 |
|
|
52 |
|
2003-11-27 Bernhard Herzog <[email protected]> |
53 |
|
|
54 |
|
Corect some bounding box projection problems |
55 |
|
|
56 |
|
* Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse |
57 |
|
version of ForwardBBox |
58 |
|
(Projection._transform_bbox): New. common implementation of |
59 |
|
ForwardBBox and InverseBBox |
60 |
|
(Projection.ForwardBBox): Use _transform_bbox. |
61 |
|
|
62 |
|
* test/test_proj.py (TestProjection.test): Add test for |
63 |
|
InverseBBox |
64 |
|
|
65 |
|
* Thuban/Model/layer.py (Layer.LatLongBoundingBox) |
66 |
|
(Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the |
67 |
|
new InverseBBox method to determine the unprojected bounding box |
68 |
|
(Layer.ShapesInRegion): Use the ForwardBBox method to project the |
69 |
|
bbox. |
70 |
|
|
71 |
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
72 |
|
Removed. |
73 |
|
(TestLayer.test_arc_layer_with_projection): New. This test is |
74 |
|
better able to test whether bounding boxes are projected correctly |
75 |
|
than test_point_layer_with_projection |
76 |
|
|
77 |
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use |
78 |
|
InverseBBox to unproject bboxes |
79 |
|
|
80 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
81 |
|
|
82 |
|
* Thuban/UI/about.py (About.__init__): Make sure we have ASCII |
83 |
|
source code. |
84 |
|
|
85 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
86 |
|
|
87 |
|
* Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only |
88 |
|
there for backwards compatibility and all code relying on that |
89 |
|
should have been updated by now. |
90 |
|
|
91 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
92 |
|
|
93 |
|
* test/test_load.py (TestClassification.test): Add the missing |
94 |
|
round trip test. |
95 |
|
(TestClassification.file_contents): Update to the newest file |
96 |
|
format |
97 |
|
|
98 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
99 |
|
|
100 |
|
Add very experimental (and possibly dangerous) extension to draw |
101 |
|
polygons: |
102 |
|
|
103 |
|
* Extensions/drawshape/README: New. Brief installation |
104 |
|
instructions |
105 |
|
|
106 |
|
* Extensions/drawshape/drawshape.py: New. Implementation of the |
107 |
|
drawshape extensions |
108 |
|
|
109 |
|
* Extensions/drawshape/patch.diff: Patch to apply before the |
110 |
|
extension can be used. |
111 |
|
|
112 |
|
2003-11-24 Bernhard Herzog <[email protected]> |
113 |
|
|
114 |
|
* Thuban/Model/data.py (ShapefileStore._open_shapefile) |
115 |
|
(ShapefileStore.__init__): Factor opening the shapefile into a |
116 |
|
separate method (the new _open_shapefile). This makes the code a |
117 |
|
bit more readable but the real reason is that it makes some evil |
118 |
|
hacks easier. :-) |
119 |
|
|
120 |
|
2003-11-24 Bernhard Herzog <[email protected]> |
121 |
|
|
122 |
|
* Thuban/Model/load.py (SessionLoader.check_attrs): If no |
123 |
|
converter is specified for an attribute assume it's a string |
124 |
|
containing only Latin1 characters. Update doc-string accordingly. |
125 |
|
This change should fix many places where unicode objects might |
126 |
|
accidentally enter Thuban. |
127 |
|
|
128 |
|
* test/test_load.py (TestNonAsciiColumnName): New test to check |
129 |
|
what happens with column names in DBF files that contain non-ascii |
130 |
|
characters |
131 |
|
|
132 |
|
2003-11-21 Bernhard Herzog <[email protected]> |
133 |
|
|
134 |
|
Enable the experimental attribute editing again and introduce a |
135 |
|
command line switch to actually activate it |
136 |
|
|
137 |
|
* Thuban/UI/main.py (options): New. Container for options set on |
138 |
|
the commmand line |
139 |
|
(main): Add the --enable-attribute-editing flag. |
140 |
|
|
141 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute |
142 |
|
editing is enabled use the grid ctrl which allows editing of the |
143 |
|
values |
144 |
|
|
145 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.write_record): |
146 |
|
New. Just delegate this to the underlying table. |
147 |
|
|
148 |
|
2003-11-20 Bernhard Herzog <[email protected]> |
149 |
|
|
150 |
|
* test/test_proj.py (ProjFileReadTests.test_read_unreadable_file): |
151 |
|
Skip this test if run under non-posix systems since it only works |
152 |
|
there |
153 |
|
|
154 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
155 |
|
|
156 |
|
* Thuban/Model/resource.py: Rework the way gdal support is |
157 |
|
determined so that we can give a reason in the about why gdal is |
158 |
|
not supported. |
159 |
|
(gdal_support_status): New. Variable holding a string with the |
160 |
|
reason for no gdal support |
161 |
|
|
162 |
|
* Thuban/UI/about.py (About.__init__): Add the reason why gdal is |
163 |
|
not supported to the message |
164 |
|
|
165 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
166 |
|
|
167 |
|
Remove the old table interface and its test cases |
168 |
|
|
169 |
|
* Thuban/Model/table.py (OldTableInterfaceMixin): Removed. |
170 |
|
(DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin |
171 |
|
anymore |
172 |
|
|
173 |
|
* Thuban/Model/transientdb.py (TransientTableBase) |
174 |
|
(AutoTransientTable): Do not derive from OldTableInterfaceMixin |
175 |
|
anymore |
176 |
|
|
177 |
|
* test/test_table.py: Removed since the old interface it tests is |
178 |
|
gone. |
179 |
|
|
180 |
|
* test/runtests.py (main): The old table interface is gone and |
181 |
|
with it the deprecation warnings so remove the code that turns |
182 |
|
these warnings into errors |
183 |
|
|
184 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
185 |
|
|
186 |
|
* test/test_table.py: Revert to revision 1.5 again. Changing the |
187 |
|
tests to use the new table interface is completely wrong since the |
188 |
|
whole purpose of the tests in this module is to test the old |
189 |
|
interface. |
190 |
|
|
191 |
|
2003-11-18 Bernhard Herzog <[email protected]> |
192 |
|
|
193 |
|
* Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters): |
194 |
|
New. Test whether the connection matches a set of connection |
195 |
|
parameters |
196 |
|
|
197 |
|
* Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string |
198 |
|
(DBFrame.OnAdd): Use the new MatchesParameters method when looking |
199 |
|
for existing connections with the same parameters and break out of |
200 |
|
the loop correctly. |
201 |
|
|
202 |
|
* test/test_postgis_db.py (TestBriefDescription) |
203 |
|
(TestPostGISSimple.test_brief_description): Rename |
204 |
|
TestBriefDescription to TestPostGISSimple and the test method to |
205 |
|
test_brief_description so that we can add more test methods. |
206 |
|
(TestPostGISSimple.test_matches_parameters): New. Test the new |
207 |
|
MatchesParameters method |
208 |
|
|
209 |
|
2003-11-18 Bernhard Herzog <[email protected]> |
210 |
|
|
211 |
|
* Thuban/Lib/connector.py (Publisher): Introduce a new flag, |
212 |
|
_was_destroyed, to indicate whether an publisher instance has |
213 |
|
already been destroyed. |
214 |
|
(Publisher.Unsubscribe): Only disconnect if the publisher has not |
215 |
|
been destroyed yet. |
216 |
|
(Publisher.Destroy): Set the _was_destroyed flag to true. |
217 |
|
|
218 |
|
* test/test_connector.py |
219 |
|
(TestPublisher.test_unsubscribe_after_destroy): New. Test that |
220 |
|
calling Unsubscribe after Destroy doesn't raise an exception |
221 |
|
|
222 |
|
2003-11-14 Bernhard Herzog <[email protected]> |
223 |
|
|
224 |
|
* Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix |
225 |
|
typo in doc-string |
226 |
|
|
227 |
|
2003-11-13 Bernhard Herzog <[email protected]> |
228 |
|
|
229 |
|
Quote table and column names properly for postgis. |
230 |
|
|
231 |
|
* Thuban/Model/postgisdb.py (quote_identifier): New. Function to |
232 |
|
quote an identifier for use in an sql statement |
233 |
|
(PostGISColumn.__init__): Add the quoted_name attribute |
234 |
|
(PostGISTable.__init__): New instance variable quoted_tablename |
235 |
|
(PostGISTable._fetch_table_information): Use the quoted table |
236 |
|
name. New isntance variable quoted_geo_col with a quoted version |
237 |
|
of geometry_column |
238 |
|
(PostGISTable.NumRows, PostGISTable.RowIdToOrdinal) |
239 |
|
(PostGISTable.RowOrdinalToId): Use the quoted table name |
240 |
|
(PostGISTable.ReadValue, PostGISTable.ValueRange) |
241 |
|
(PostGISTable.UniqueValues, PostGISTable.SimpleQuery) |
242 |
|
(PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape) |
243 |
|
(PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion): |
244 |
|
Use quoted table and column names |
245 |
|
|
246 |
|
* test/test_postgis_db.py (TestPostGISSpecialCases) |
247 |
|
(TestPostGISIgnoredColumns): Rename the class to |
248 |
|
TestPostGISSpecialCases because that better describes the new |
249 |
|
cases |
250 |
|
(TestPostGISSpecialCases.test_unsupported_types) |
251 |
|
(TestPostGISSpecialCases.test): Rename the method to |
252 |
|
test_unsupported_types because we need a more descriptive name now |
253 |
|
that there are more methods |
254 |
|
(TestPostGISSpecialCases.test_table_name_quoting) |
255 |
|
(TestPostGISSpecialCases.test_column_name_quoting) |
256 |
|
(TestPostGISSpecialCases.test_shapestore_name_quoting): New test |
257 |
|
cases to test quoting of table and column names in PostGISTable |
258 |
|
and PostGISShapeStore |
259 |
|
|
260 |
|
* test/postgissupport.py |
261 |
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if |
262 |
|
AddGeometryColumn desn't support table or column names with sapces |
263 |
|
or double quotes |
264 |
|
|
265 |
2003-11-12 Jan-Oliver Wagner <[email protected]> |
2003-11-12 Jan-Oliver Wagner <[email protected]> |
266 |
|
|
267 |
* Extensions/wms/__init__.py: New: Init to make this |
* Extensions/wms/__init__.py: New: Init to make this |