1 |
|
2004-12-15 Frank Koormann <[email protected]> |
2 |
|
|
3 |
|
* test/test_load.py (TestAltPath.checkSession): New, extended checks if |
4 |
|
session has been loaded successfully. The check is called by the relevant |
5 |
|
tests after executing load_session(). |
6 |
|
|
7 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
8 |
|
|
9 |
|
Make sure the region used to determine which shapes are visible |
10 |
|
actually matches the region on the printed page. If this isn't |
11 |
|
done properly some shapes might not be printed. |
12 |
|
Fixes RT #2692 |
13 |
|
|
14 |
|
* Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the |
15 |
|
renderer has to be at the same position as the mapregion |
16 |
|
|
17 |
|
* Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region |
18 |
|
has to be moved by (self.shiftx, self.shifty) too. |
19 |
|
|
20 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
21 |
|
|
22 |
|
* libraries/pyprojection/Projection.i: Work around a bug in the |
23 |
|
generated python code which leads to exception in the __del__ |
24 |
|
method when the constructor fails. See the comments in the code |
25 |
|
for more details. |
26 |
|
|
27 |
|
* libraries/pyprojection/Projection.py: Updated from Projection.i |
28 |
|
with SWIG. |
29 |
|
|
30 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
31 |
|
|
32 |
|
* test/test_load.py (TestAltPath.test_01_single_path_error_fix) |
33 |
|
(TestAltPath.test_02_path_error_fix_from_list) |
34 |
|
(TestAltPath.test_05_path_error_fix_from_list_changed) |
35 |
|
(TestAltPath.test_06_path_error_fix_from_list_fails): self.session |
36 |
|
is destroyed in tearDown, so there's no need to do it in a test |
37 |
|
case. |
38 |
|
|
39 |
|
* Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a |
40 |
|
debug print |
41 |
|
|
42 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
43 |
|
|
44 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
45 |
|
(TestDrawSplines.setUp): Do not use super with the unittest |
46 |
|
classes because in Python 2.2 they're still old-style classes. |
47 |
|
|
48 |
|
2004-12-13 Frank Koormann <[email protected]> |
49 |
|
|
50 |
|
Alternative Path feature: When loading a (moved) session where |
51 |
|
shapefiles cannot be found, ask the user. Use the specified path |
52 |
|
if further shapefiles are missing. However, ask the usr for confirmation |
53 |
|
in such cases. |
54 |
|
|
55 |
|
* test/test_load.py (TestAltPath): New, tests for alternative path feature |
56 |
|
in load_session() |
57 |
|
(Shapefile_CallBack): Helper, implements controllable callback. |
58 |
|
|
59 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
60 |
|
Added "alt_path" to self.path |
61 |
|
(ThubanApplication.OpenSession): Added shapefile_callback as second |
62 |
|
callback similar to db_connection_callback. |
63 |
|
(ThubanApplication.run_alt_path_dialog): New, implementaion of |
64 |
|
shapefile_callback. In addition to raising the dialog the control of |
65 |
|
self.path('alt_path') is implemented here. |
66 |
|
|
67 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback. |
68 |
|
(SessionLoader.open_shapefile): Open shapefile, eventually with |
69 |
|
alternative path. This wrapps the "theSession.OpenShapefile(filename)" |
70 |
|
formerly used in start_fileshapesource()/start_layer(). |
71 |
|
(SessionLoader.start_fileshapesource): Call open_shapefile(). |
72 |
|
(SessionLoader.start_layer): Call open_shapefile(). |
73 |
|
(load_session): Added shapefile_callback. |
74 |
|
|
75 |
|
* Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path |
76 |
|
feature (search / check). |
77 |
|
|
78 |
|
* Doc/manual/thuban-manual.xml: Added documentation of new feature. |
79 |
|
|
80 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
81 |
|
|
82 |
|
svgexport 0.9.2: Point size supports for maps. |
83 |
|
|
84 |
|
* Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT |
85 |
|
(def draw_point_shape): new parameter size defaults to 2 as before. |
86 |
|
(draw_shape_layer_incrementally): Moved draw_func log line higher. |
87 |
|
Added draw_func call with size when dealing with a point layer. |
88 |
|
|
89 |
|
* Extensions/svgexport/__init__.py: bumped version to 0.9.2. |
90 |
|
|
91 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
92 |
|
|
93 |
|
Made sure that newlines are inserted in the svg path d attributes |
94 |
|
to raise the chance that the line length will be below 255 characters, |
95 |
|
as recommended by REC SVG 1.1 in section 8.3.1. |
96 |
|
|
97 |
|
* Extensions/svgexport/svgmapwriter.py(DrawPolygon): |
98 |
|
Adding \n before L's and changed whitespace handling. |
99 |
|
|
100 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
101 |
|
Adapted tests to new whitespace handling of DrawPolygon. |
102 |
|
|
103 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
104 |
|
|
105 |
|
* Doc/technotes/coding_guidelines.txt: easy typo fixed. |
106 |
|
|
107 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
108 |
|
Removed test_drawbezier in favour of new test_drawspline3 and |
109 |
|
test_drawspline4 within new class TestDrawSplines(TestVirtualDC). |
110 |
|
All only to test DrawSpline. |
111 |
|
|
112 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
113 |
|
New implementation now really using the strange algorithm of |
114 |
|
xfig 3.1's approximated splines and its conversion to postscript |
115 |
|
with one twist: SVG can do quadratic beziers, so skipped translation |
116 |
|
to cubic beziers. |
117 |
|
(TestWithDC): Typo in comment fixed. |
118 |
|
|
119 |
|
2004-12-09 Martin Schulze <[email protected]> |
120 |
|
|
121 |
|
* Thuban/Model/classgen.py: Added missing character encoding |
122 |
|
|
123 |
|
* Extensions/wms/properties.py (OpenWMSProperties): removed |
124 |
|
|
125 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped |
126 |
|
support for get_srs_discrepancies() since there are no |
127 |
|
discrepancies anymore (was a thinko) |
128 |
|
|
129 |
|
* Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic |
130 |
|
format priority now that more formats are supported globally by |
131 |
|
the render engine. |
132 |
|
|
133 |
|
2004-12-08 Silke Reimer <[email protected]> |
134 |
|
* Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings |
135 |
|
because it is not available in all versions of ogr |
136 |
|
|
137 |
|
2004-12-08 Bernhard Reiter <[email protected]> |
138 |
|
* Extensions/ogr/__init__.py: Added empty __init__.py to heal |
139 |
|
global tests until a real one is commited. |
140 |
|
|
141 |
|
2004-12-07 Nina H�ffmeyer <[email protected]> |
142 |
|
|
143 |
|
* /Extensions/ogr/: Adding a new extension to read shapefiles with |
144 |
|
ogr. It is planned to add other vector formats. |
145 |
|
|
146 |
|
* /test/runtests.py: Adding tests from /Extensions/ogr/test/. |
147 |
|
|
148 |
2004-12-07 Jan-Oliver Wagner <[email protected]> |
2004-12-07 Jan-Oliver Wagner <[email protected]> |
149 |
|
|
150 |
* /Extensions/svgexport/test/test_svgmapwriter.py: Reverting |
* /Extensions/svgexport/test/test_svgmapwriter.py: Reverting |