1 |
|
2003-11-27 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Corect some bounding box projection problems |
4 |
|
|
5 |
|
* Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse |
6 |
|
version of ForwardBBox |
7 |
|
(Projection._transform_bbox): New. common implementation of |
8 |
|
ForwardBBox and InverseBBox |
9 |
|
(Projection.ForwardBBox): Use _transform_bbox. |
10 |
|
|
11 |
|
* test/test_proj.py (TestProjection.test): Add test for |
12 |
|
InverseBBox |
13 |
|
|
14 |
|
* Thuban/Model/layer.py (Layer.LatLongBoundingBox) |
15 |
|
(Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the |
16 |
|
new InverseBBox method to determine the unprojected bounding box |
17 |
|
(Layer.ShapesInRegion): Use the ForwardBBox method to project the |
18 |
|
bbox. |
19 |
|
|
20 |
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
21 |
|
Removed. |
22 |
|
(TestLayer.test_arc_layer_with_projection): New. This test is |
23 |
|
better able to test whether bounding boxes are projected correctly |
24 |
|
than test_point_layer_with_projection |
25 |
|
|
26 |
|
* Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use |
27 |
|
InverseBBox to unproject bboxes |
28 |
|
|
29 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
30 |
|
|
31 |
|
* Thuban/UI/about.py (About.__init__): Make sure we have ASCII |
32 |
|
source code. |
33 |
|
|
34 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
35 |
|
|
36 |
|
* Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only |
37 |
|
there for backwards compatibility and all code relying on that |
38 |
|
should have been updated by now. |
39 |
|
|
40 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
41 |
|
|
42 |
|
* test/test_load.py (TestClassification.test): Add the missing |
43 |
|
round trip test. |
44 |
|
(TestClassification.file_contents): Update to the newest file |
45 |
|
format |
46 |
|
|
47 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
48 |
|
|
49 |
|
Add very experimental (and possibly dangerous) extension to draw |
50 |
|
polygons: |
51 |
|
|
52 |
|
* Extensions/drawshape/README: New. Brief installation |
53 |
|
instructions |
54 |
|
|
55 |
|
* Extensions/drawshape/drawshape.py: New. Implementation of the |
56 |
|
drawshape extensions |
57 |
|
|
58 |
|
* Extensions/drawshape/patch.diff: Patch to apply before the |
59 |
|
extension can be used. |
60 |
|
|
61 |
|
2003-11-24 Bernhard Herzog <[email protected]> |
62 |
|
|
63 |
|
* Thuban/Model/data.py (ShapefileStore._open_shapefile) |
64 |
|
(ShapefileStore.__init__): Factor opening the shapefile into a |
65 |
|
separate method (the new _open_shapefile). This makes the code a |
66 |
|
bit more readable but the real reason is that it makes some evil |
67 |
|
hacks easier. :-) |
68 |
|
|
69 |
|
2003-11-24 Bernhard Herzog <[email protected]> |
70 |
|
|
71 |
|
* Thuban/Model/load.py (SessionLoader.check_attrs): If no |
72 |
|
converter is specified for an attribute assume it's a string |
73 |
|
containing only Latin1 characters. Update doc-string accordingly. |
74 |
|
This change should fix many places where unicode objects might |
75 |
|
accidentally enter Thuban. |
76 |
|
|
77 |
|
* test/test_load.py (TestNonAsciiColumnName): New test to check |
78 |
|
what happens with column names in DBF files that contain non-ascii |
79 |
|
characters |
80 |
|
|
81 |
|
2003-11-21 Bernhard Herzog <[email protected]> |
82 |
|
|
83 |
|
Enable the experimental attribute editing again and introduce a |
84 |
|
command line switch to actually activate it |
85 |
|
|
86 |
|
* Thuban/UI/main.py (options): New. Container for options set on |
87 |
|
the commmand line |
88 |
|
(main): Add the --enable-attribute-editing flag. |
89 |
|
|
90 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute |
91 |
|
editing is enabled use the grid ctrl which allows editing of the |
92 |
|
values |
93 |
|
|
94 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.write_record): |
95 |
|
New. Just delegate this to the underlying table. |
96 |
|
|
97 |
|
2003-11-20 Bernhard Herzog <[email protected]> |
98 |
|
|
99 |
|
* test/test_proj.py (ProjFileReadTests.test_read_unreadable_file): |
100 |
|
Skip this test if run under non-posix systems since it only works |
101 |
|
there |
102 |
|
|
103 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
104 |
|
|
105 |
|
* Thuban/Model/resource.py: Rework the way gdal support is |
106 |
|
determined so that we can give a reason in the about why gdal is |
107 |
|
not supported. |
108 |
|
(gdal_support_status): New. Variable holding a string with the |
109 |
|
reason for no gdal support |
110 |
|
|
111 |
|
* Thuban/UI/about.py (About.__init__): Add the reason why gdal is |
112 |
|
not supported to the message |
113 |
|
|
114 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
115 |
|
|
116 |
|
Remove the old table interface and its test cases |
117 |
|
|
118 |
|
* Thuban/Model/table.py (OldTableInterfaceMixin): Removed. |
119 |
|
(DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin |
120 |
|
anymore |
121 |
|
|
122 |
|
* Thuban/Model/transientdb.py (TransientTableBase) |
123 |
|
(AutoTransientTable): Do not derive from OldTableInterfaceMixin |
124 |
|
anymore |
125 |
|
|
126 |
|
* test/test_table.py: Removed since the old interface it tests is |
127 |
|
gone. |
128 |
|
|
129 |
|
* test/runtests.py (main): The old table interface is gone and |
130 |
|
with it the deprecation warnings so remove the code that turns |
131 |
|
these warnings into errors |
132 |
|
|
133 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
134 |
|
|
135 |
|
* test/test_table.py: Revert to revision 1.5 again. Changing the |
136 |
|
tests to use the new table interface is completely wrong since the |
137 |
|
whole purpose of the tests in this module is to test the old |
138 |
|
interface. |
139 |
|
|
140 |
|
2003-11-18 Bernhard Herzog <[email protected]> |
141 |
|
|
142 |
|
* Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters): |
143 |
|
New. Test whether the connection matches a set of connection |
144 |
|
parameters |
145 |
|
|
146 |
|
* Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string |
147 |
|
(DBFrame.OnAdd): Use the new MatchesParameters method when looking |
148 |
|
for existing connections with the same parameters and break out of |
149 |
|
the loop correctly. |
150 |
|
|
151 |
|
* test/test_postgis_db.py (TestBriefDescription) |
152 |
|
(TestPostGISSimple.test_brief_description): Rename |
153 |
|
TestBriefDescription to TestPostGISSimple and the test method to |
154 |
|
test_brief_description so that we can add more test methods. |
155 |
|
(TestPostGISSimple.test_matches_parameters): New. Test the new |
156 |
|
MatchesParameters method |
157 |
|
|
158 |
|
2003-11-18 Bernhard Herzog <[email protected]> |
159 |
|
|
160 |
|
* Thuban/Lib/connector.py (Publisher): Introduce a new flag, |
161 |
|
_was_destroyed, to indicate whether an publisher instance has |
162 |
|
already been destroyed. |
163 |
|
(Publisher.Unsubscribe): Only disconnect if the publisher has not |
164 |
|
been destroyed yet. |
165 |
|
(Publisher.Destroy): Set the _was_destroyed flag to true. |
166 |
|
|
167 |
|
* test/test_connector.py |
168 |
|
(TestPublisher.test_unsubscribe_after_destroy): New. Test that |
169 |
|
calling Unsubscribe after Destroy doesn't raise an exception |
170 |
|
|
171 |
|
2003-11-14 Bernhard Herzog <[email protected]> |
172 |
|
|
173 |
|
* Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix |
174 |
|
typo in doc-string |
175 |
|
|
176 |
|
2003-11-13 Bernhard Herzog <[email protected]> |
177 |
|
|
178 |
|
Quote table and column names properly for postgis. |
179 |
|
|
180 |
|
* Thuban/Model/postgisdb.py (quote_identifier): New. Function to |
181 |
|
quote an identifier for use in an sql statement |
182 |
|
(PostGISColumn.__init__): Add the quoted_name attribute |
183 |
|
(PostGISTable.__init__): New instance variable quoted_tablename |
184 |
|
(PostGISTable._fetch_table_information): Use the quoted table |
185 |
|
name. New isntance variable quoted_geo_col with a quoted version |
186 |
|
of geometry_column |
187 |
|
(PostGISTable.NumRows, PostGISTable.RowIdToOrdinal) |
188 |
|
(PostGISTable.RowOrdinalToId): Use the quoted table name |
189 |
|
(PostGISTable.ReadValue, PostGISTable.ValueRange) |
190 |
|
(PostGISTable.UniqueValues, PostGISTable.SimpleQuery) |
191 |
|
(PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape) |
192 |
|
(PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion): |
193 |
|
Use quoted table and column names |
194 |
|
|
195 |
|
* test/test_postgis_db.py (TestPostGISSpecialCases) |
196 |
|
(TestPostGISIgnoredColumns): Rename the class to |
197 |
|
TestPostGISSpecialCases because that better describes the new |
198 |
|
cases |
199 |
|
(TestPostGISSpecialCases.test_unsupported_types) |
200 |
|
(TestPostGISSpecialCases.test): Rename the method to |
201 |
|
test_unsupported_types because we need a more descriptive name now |
202 |
|
that there are more methods |
203 |
|
(TestPostGISSpecialCases.test_table_name_quoting) |
204 |
|
(TestPostGISSpecialCases.test_column_name_quoting) |
205 |
|
(TestPostGISSpecialCases.test_shapestore_name_quoting): New test |
206 |
|
cases to test quoting of table and column names in PostGISTable |
207 |
|
and PostGISShapeStore |
208 |
|
|
209 |
|
* test/postgissupport.py |
210 |
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if |
211 |
|
AddGeometryColumn desn't support table or column names with sapces |
212 |
|
or double quotes |
213 |
|
|
214 |
|
2003-11-12 Jan-Oliver Wagner <[email protected]> |
215 |
|
|
216 |
|
* Extensions/wms/__init__.py: New: Init to make this |
217 |
|
directory a package. |
218 |
|
|
219 |
|
* Extensions/wms/wms.py: New: Provide layers via OGC WMS. |
220 |
|
|
221 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
222 |
|
|
223 |
|
* Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New. |
224 |
|
Constant for the file woth deprecated epsg projections |
225 |
|
(get_system_proj_file): Update doc-string |
226 |
|
|
227 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space |
228 |
|
above the EPS widgets, introduce a check box for the deprecated |
229 |
|
eps projections and a label for the epsg widgets |
230 |
|
(ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections |
231 |
|
too |
232 |
|
|
233 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
234 |
|
|
235 |
|
Avoid warnings when run under Python 2.3 |
236 |
|
|
237 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape) |
238 |
|
(BaseRenderer.draw_label_layer): Coordinates must be ints. |
239 |
|
|
240 |
|
* Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a |
241 |
|
real method so that we can convert to int. |
242 |
|
(MapRenderer.label_font): The font size mist be an int. |
243 |
|
|
244 |
|
* Thuban/UI/common.py (Color2wxColour): The color values must be |
245 |
|
ints. Also, remove the unnecessary asserts. |
246 |
|
|
247 |
|
* test/test_load_0_8.py (TestUnicodeStrings.file_contents) |
248 |
|
(TestUnicodeStrings.test): Python source code should not contain |
249 |
|
non-ascii characters unless an encoding is specified in the file. |
250 |
|
Therefore use \x escapes in the string literals for non-ascii |
251 |
|
characters. |
252 |
|
|
253 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
254 |
|
|
255 |
|
* Thuban/Model/resource.py (get_system_proj_file): Add a filename |
256 |
|
parameter so that this function can be used for all proj files in |
257 |
|
Resource/Projections |
258 |
|
(DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for |
259 |
|
get_system_proj_file |
260 |
|
|
261 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one |
262 |
|
ProjFile self.__sysProjFile use a dictionary of system ProjFile |
263 |
|
objects self._sys_proj_files |
264 |
|
(ProjFrame.build_dialog): Adapt to the new changes in the |
265 |
|
ProjectionList constructor. Add a check button to toggle whether |
266 |
|
EPSG projections are shown |
267 |
|
(ProjFrame._OnShowEPSG): New. Handler for the epsg check button |
268 |
|
events. |
269 |
|
(ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show |
270 |
|
the busy cursor if the files have not yet been loaded by the |
271 |
|
dialog. |
272 |
|
(ProjFrame.load_system_proj): Add a parameter for the name of the |
273 |
|
proj file. Maintain the dictionary of system projections |
274 |
|
self._sys_proj_files |
275 |
|
|
276 |
|
* Thuban/UI/projlist.py (ProjectionList): Merge the system_projs, |
277 |
|
user_projs parameters into one parameter proj_files which is a |
278 |
|
list of proj files. |
279 |
|
(ProjectionList._subscribe_proj_files) |
280 |
|
(ProjectionList._unsubscribe_proj_files): New. Move |
281 |
|
subscription/unsubscription of projfile messages to separate |
282 |
|
methods |
283 |
|
(ProjectionList.Destroy): The unsubscribe is now done in |
284 |
|
_unsubscribe_proj_files |
285 |
|
(ProjectionList.update_projections): We now have a list of proj |
286 |
|
file objects |
287 |
|
(ProjectionList.SetProjFiles): New method to set a new list of |
288 |
|
proj file objects |
289 |
|
|
290 |
|
* test/test_proj.py (ProjFileReadTests.test_get_system_proj_file): |
291 |
|
Specify explicitly which system proj file to load. |
292 |
|
|
293 |
2003-11-11 Bernhard Herzog <[email protected]> |
2003-11-11 Bernhard Herzog <[email protected]> |
294 |
|
|
295 |
* Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all |
* Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all |