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