1 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Fix for RT#2237 |
4 |
|
|
5 |
|
* Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the |
6 |
|
panel to be shown is the UnknownProjPanel disable the OK and Try |
7 |
|
buttons. Otherwise enable them. |
8 |
|
(ProjFrame.__GetProjection): The UnknownProjPanel returns None for |
9 |
|
the parameters. In that case __GetProjection also returns None |
10 |
|
now. |
11 |
|
|
12 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
13 |
|
|
14 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the |
15 |
|
minimum number of classes to 2. The calculate_quantiles needs at |
16 |
|
least two and raises an exception otherwise. |
17 |
|
Fixes RT#2549 |
18 |
|
|
19 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
20 |
|
|
21 |
|
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |
22 |
|
so that it returns a result for select statements. |
23 |
|
(PostgreSQLServer.server_version): New. Return the version of the |
24 |
|
server software. |
25 |
|
(PostgreSQLServer.require_authentication): The format of |
26 |
|
pg_hba.conf has changed between PostgrSQL 7.2 and 7.3. Check the |
27 |
|
server version and generate the file in the correct format |
28 |
|
|
29 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
30 |
|
|
31 |
|
* test/postgissupport.py (PostgreSQLServer.is_running): Fix typo |
32 |
|
in the doc string and rephrase it a little. |
33 |
|
|
34 |
|
2004-12-15 Frank Koormann <[email protected]> |
35 |
|
|
36 |
|
* test/test_load.py (TestAltPath.checkSession): New, extended checks if |
37 |
|
session has been loaded successfully. The check is called by the relevant |
38 |
|
tests after executing load_session(). |
39 |
|
|
40 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
41 |
|
|
42 |
|
Make sure the region used to determine which shapes are visible |
43 |
|
actually matches the region on the printed page. If this isn't |
44 |
|
done properly some shapes might not be printed. |
45 |
|
Fixes RT #2692 |
46 |
|
|
47 |
|
* Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the |
48 |
|
renderer has to be at the same position as the mapregion |
49 |
|
|
50 |
|
* Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region |
51 |
|
has to be moved by (self.shiftx, self.shifty) too. |
52 |
|
|
53 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
54 |
|
|
55 |
|
* libraries/pyprojection/Projection.i: Work around a bug in the |
56 |
|
generated python code which leads to exception in the __del__ |
57 |
|
method when the constructor fails. See the comments in the code |
58 |
|
for more details. |
59 |
|
|
60 |
|
* libraries/pyprojection/Projection.py: Updated from Projection.i |
61 |
|
with SWIG. |
62 |
|
|
63 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
64 |
|
|
65 |
|
* test/test_load.py (TestAltPath.test_01_single_path_error_fix) |
66 |
|
(TestAltPath.test_02_path_error_fix_from_list) |
67 |
|
(TestAltPath.test_05_path_error_fix_from_list_changed) |
68 |
|
(TestAltPath.test_06_path_error_fix_from_list_fails): self.session |
69 |
|
is destroyed in tearDown, so there's no need to do it in a test |
70 |
|
case. |
71 |
|
|
72 |
|
* Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a |
73 |
|
debug print |
74 |
|
|
75 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
76 |
|
|
77 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
78 |
|
(TestDrawSplines.setUp): Do not use super with the unittest |
79 |
|
classes because in Python 2.2 they're still old-style classes. |
80 |
|
|
81 |
|
2004-12-13 Frank Koormann <[email protected]> |
82 |
|
|
83 |
|
Alternative Path feature: When loading a (moved) session where |
84 |
|
shapefiles cannot be found, ask the user. Use the specified path |
85 |
|
if further shapefiles are missing. However, ask the usr for confirmation |
86 |
|
in such cases. |
87 |
|
|
88 |
|
* test/test_load.py (TestAltPath): New, tests for alternative path feature |
89 |
|
in load_session() |
90 |
|
(Shapefile_CallBack): Helper, implements controllable callback. |
91 |
|
|
92 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
93 |
|
Added "alt_path" to self.path |
94 |
|
(ThubanApplication.OpenSession): Added shapefile_callback as second |
95 |
|
callback similar to db_connection_callback. |
96 |
|
(ThubanApplication.run_alt_path_dialog): New, implementaion of |
97 |
|
shapefile_callback. In addition to raising the dialog the control of |
98 |
|
self.path('alt_path') is implemented here. |
99 |
|
|
100 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback. |
101 |
|
(SessionLoader.open_shapefile): Open shapefile, eventually with |
102 |
|
alternative path. This wrapps the "theSession.OpenShapefile(filename)" |
103 |
|
formerly used in start_fileshapesource()/start_layer(). |
104 |
|
(SessionLoader.start_fileshapesource): Call open_shapefile(). |
105 |
|
(SessionLoader.start_layer): Call open_shapefile(). |
106 |
|
(load_session): Added shapefile_callback. |
107 |
|
|
108 |
|
* Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path |
109 |
|
feature (search / check). |
110 |
|
|
111 |
|
* Doc/manual/thuban-manual.xml: Added documentation of new feature. |
112 |
|
|
113 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
114 |
|
|
115 |
|
svgexport 0.9.2: Point size supports for maps. |
116 |
|
|
117 |
|
* Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT |
118 |
|
(def draw_point_shape): new parameter size defaults to 2 as before. |
119 |
|
(draw_shape_layer_incrementally): Moved draw_func log line higher. |
120 |
|
Added draw_func call with size when dealing with a point layer. |
121 |
|
|
122 |
|
* Extensions/svgexport/__init__.py: bumped version to 0.9.2. |
123 |
|
|
124 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
125 |
|
|
126 |
|
Made sure that newlines are inserted in the svg path d attributes |
127 |
|
to raise the chance that the line length will be below 255 characters, |
128 |
|
as recommended by REC SVG 1.1 in section 8.3.1. |
129 |
|
|
130 |
|
* Extensions/svgexport/svgmapwriter.py(DrawPolygon): |
131 |
|
Adding \n before L's and changed whitespace handling. |
132 |
|
|
133 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
134 |
|
Adapted tests to new whitespace handling of DrawPolygon. |
135 |
|
|
136 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
137 |
|
|
138 |
|
* Doc/technotes/coding_guidelines.txt: easy typo fixed. |
139 |
|
|
140 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
141 |
|
Removed test_drawbezier in favour of new test_drawspline3 and |
142 |
|
test_drawspline4 within new class TestDrawSplines(TestVirtualDC). |
143 |
|
All only to test DrawSpline. |
144 |
|
|
145 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
146 |
|
New implementation now really using the strange algorithm of |
147 |
|
xfig 3.1's approximated splines and its conversion to postscript |
148 |
|
with one twist: SVG can do quadratic beziers, so skipped translation |
149 |
|
to cubic beziers. |
150 |
|
(TestWithDC): Typo in comment fixed. |
151 |
|
|
152 |
|
2004-12-09 Martin Schulze <[email protected]> |
153 |
|
|
154 |
|
* Thuban/Model/classgen.py: Added missing character encoding |
155 |
|
|
156 |
|
* Extensions/wms/properties.py (OpenWMSProperties): removed |
157 |
|
|
158 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped |
159 |
|
support for get_srs_discrepancies() since there are no |
160 |
|
discrepancies anymore (was a thinko) |
161 |
|
|
162 |
|
* Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic |
163 |
|
format priority now that more formats are supported globally by |
164 |
|
the render engine. |
165 |
|
|
166 |
|
2004-12-08 Silke Reimer <[email protected]> |
167 |
|
* Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings |
168 |
|
because it is not available in all versions of ogr |
169 |
|
|
170 |
|
2004-12-08 Bernhard Reiter <[email protected]> |
171 |
|
* Extensions/ogr/__init__.py: Added empty __init__.py to heal |
172 |
|
global tests until a real one is commited. |
173 |
|
|
174 |
|
2004-12-07 Nina H�ffmeyer <[email protected]> |
175 |
|
|
176 |
|
* /Extensions/ogr/: Adding a new extension to read shapefiles with |
177 |
|
ogr. It is planned to add other vector formats. |
178 |
|
|
179 |
|
* /test/runtests.py: Adding tests from /Extensions/ogr/test/. |
180 |
|
|
181 |
|
2004-12-07 Jan-Oliver Wagner <[email protected]> |
182 |
|
|
183 |
|
* /Extensions/svgexport/test/test_svgmapwriter.py: Reverting |
184 |
|
part of a (non-)fix to renable that the tests are always |
185 |
|
executed. |
186 |
|
|
187 |
|
2004-12-07 Bernhard Reiter <[email protected]> |
188 |
|
|
189 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
190 |
|
Added test_drawbezier() to test DrawSpline(). |
191 |
|
|
192 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
193 |
|
Really implemented bezier drawing. |
194 |
|
|
195 |
|
* Extensions/svgexport/__init__.py: Bumped version of svgexport |
196 |
|
to 0.9.1 because now the legend examples lines styles |
197 |
|
will be drawing with beziers. |
198 |
|
|
199 |
|
2004-12-05 Martin Schulze <[email protected]> |
200 |
|
|
201 |
|
* Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and |
202 |
|
GIF as supported bitmap image formats (helpful for the WMS extension) |
203 |
|
|
204 |
|
2004-11-30 Martin Schulze <[email protected]> |
205 |
|
|
206 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs): |
207 |
|
Improved the test for the internal compare method |
208 |
|
|
209 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
210 |
|
|
211 |
|
* Thuban/UI/about.py (About.__init__): Added |
212 |
|
Norbert Solymosi for hungarian translation and Ole Rahn |
213 |
|
as contrbutor. Moved Bernhard Reiter from Contributor |
214 |
|
to Developer. |
215 |
|
|
216 |
|
2004-11-27 Bernhard Reiter <[email protected]> |
217 |
|
|
218 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
219 |
|
Removed Jan from author list as he did not change enough significant |
220 |
|
lines yet. |
221 |
|
|
222 |
|
* Extensions/svgexport/__init__.py: Added Bernhard as author |
223 |
|
of the Extension. |
224 |
|
|
225 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
226 |
|
|
227 |
|
* po/hu.po: New. Hungarian translation. Contributed |
228 |
|
by Norbert Solymosi. |
229 |
|
|
230 |
|
2004-11-26 Bernhard Herzog <[email protected]> |
231 |
|
|
232 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
233 |
|
(Testobjectexport.test_transparent_polygon): Commented out some |
234 |
|
debug prints |
235 |
|
|
236 |
|
2004-11-24 Jan-Oliver Wagner <[email protected]> |
237 |
|
|
238 |
|
Fix broken tests for svg extension and added svg legend |
239 |
|
to Experimental menu. |
240 |
|
|
241 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: Fix to have |
242 |
|
the test run correctly even if the extension is a package. |
243 |
|
Also removed the "import Thuban" which makes no sense. |
244 |
|
|
245 |
|
* Extensions/svgexport/__init__.py: Fix to have the extensions' |
246 |
|
test module also be executed from the global test routine. |
247 |
|
This is done by looking for the absense of the DISPLAY variable. |
248 |
|
|
249 |
|
* Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions |
250 |
|
to Experimental menu since this module has yet not reached a stable |
251 |
|
status (ie. 1.0). |
252 |
|
|
253 |
|
2004-11-22 Bernhard Reiter <[email protected]> |
254 |
|
|
255 |
|
* Extensions/svgexport/svgmapwriter.py: |
256 |
|
Added verbose variable and some logging depending on it. |
257 |
|
(class VirtualDC(XMLWriter)): Minor improvement in the polygon loop, |
258 |
|
because counting i is not necessary. |
259 |
|
(class Pen, class Brush): Added simple __str__ methods. |
260 |
|
(SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are |
261 |
|
not exported to svg file) Note: holes still unhandled. |
262 |
|
|
263 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
264 |
|
Made a baseclass TestWithDC for test needed a DC. |
265 |
|
Added tests for bug #2698 (transparent polygons are not |
266 |
|
exported to svg file): |
267 |
|
Testobjectexport.test_transparent_polygon() |
268 |
|
|
269 |
|
* Thuban/Model/base.py (UnsetModified): |
270 |
|
Fixed some typos in docstring. |
271 |
|
|
272 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()): |
273 |
|
Added hints on the used algorithm for handling holes. |
274 |
|
|
275 |
2004-11-20 Jan-Oliver Wagner <[email protected]> |
2004-11-20 Jan-Oliver Wagner <[email protected]> |
276 |
|
|
277 |
Some face lifting for the examples. |
Some face lifting for the examples. |