1 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
2 |
|
|
3 |
|
Added Extensions/svgexport/TODO |
4 |
|
|
5 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
6 |
|
|
7 |
|
Refactored in svgexport: |
8 |
|
DrawPath replaces DrawPolygon; added newline in front of "M" in paths. |
9 |
|
|
10 |
|
* Extensions/svgexport/svgmapwriter.py |
11 |
|
Added verbosity level 3 to print out polygon points. |
12 |
|
(class Point): added __repr__ |
13 |
|
(class Brush, __str__()): Added space after ,. |
14 |
|
(DrawPolygon): Renamed to DrawPath() |
15 |
|
(DrawPath): Takes list of polygons as input now, adds \n before "M"s. |
16 |
|
(DrawLines): Using DrawPath now. |
17 |
|
|
18 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
19 |
|
Replaced DrawPolygon() calls with DrawPath() and put the first argument |
20 |
|
inside another list. Adapted test data with a newline before "M". |
21 |
|
|
22 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
23 |
|
|
24 |
|
Refactored svgexport tests: 9 double tests runs eliminated; |
25 |
|
code size reduced by 8 lines. |
26 |
|
|
27 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
28 |
|
(class TestWithDC): Renamed to BaseTestWithDC, moved to top. |
29 |
|
(class BaseWithDCtools): New, subclass from BaseTestWithDC. |
30 |
|
(class TestDrawSplines): now subclass from BaseTestWithDCtools, |
31 |
|
this fixed the double running of the nine tests of TestVirtualDC. |
32 |
|
(class TestVirtualDC): Using self.dc and self.file from setUp(). |
33 |
|
|
34 |
|
2004-12-17 Bernhard Herzog <[email protected]> |
35 |
|
|
36 |
|
Two windows specific fixes ported from thuban-1�0-branch: |
37 |
|
|
38 |
|
* Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale |
39 |
|
instead of getlocale because getlocale doesn't return a usable |
40 |
|
encoding name on a german windows 2000 |
41 |
|
|
42 |
|
* setup.py: windows build: Removed the absolute path names and |
43 |
|
made all prfixes relative to the directory containing setup.py. |
44 |
|
Makes it a little easier to adapt to a different system. |
45 |
|
|
46 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
47 |
|
|
48 |
|
Add support for PostGIS tables with LINESTRING geometries. |
49 |
|
Fixes RT#2299 |
50 |
|
|
51 |
|
* Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING |
52 |
|
|
53 |
|
* test/postgissupport.py |
54 |
|
(PostgreSQLServer.get_default_static_data_db): Rename the "roads" |
55 |
|
table to "roads-multi" because it now uses MULTILINESTRING |
56 |
|
geometries and introduce a new "roads" table that uses LINESTRING |
57 |
|
(coords_to_multilinestring): Make the doc string more precise |
58 |
|
(coords_to_linestring): New. Create a LINESTRING WKT |
59 |
|
representatin |
60 |
|
(wkt_converter): Add coords_to_linestring |
61 |
|
(upload_shapefile): Rephrase the doc-string a bit. |
62 |
|
|
63 |
|
* test/test_postgis_db.py (TestPostGISShapestoreArc) |
64 |
|
(LineStringTests) |
65 |
|
(TestPostGISShapestoreLineString) |
66 |
|
(TestPostGISShapestoreMultiLineString): Split |
67 |
|
TestPostGISShapestoreArc into a base class LineStringTests and two |
68 |
|
derived classes TestPostGISShapestoreLineString for LINESTRING |
69 |
|
geometries and TestPostGISShapestoreMultiLineString for |
70 |
|
MULTILINESTRING geometries. Most test methods are in the base |
71 |
|
class with the exception of tests that explicitly check the raw |
72 |
|
format. |
73 |
|
|
74 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
75 |
|
|
76 |
|
Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4 |
77 |
|
|
78 |
|
* test/postgissupport.py (find_postgis_sql): Different postgis |
79 |
|
versions put the postgis.sql file into slightly different places |
80 |
|
so we have to look in both. The updated doc string describes this |
81 |
|
is more detail. |
82 |
|
|
83 |
|
* test/test_postgis_db.py |
84 |
|
(TestPostGISSpecialCases.test_column_name_quoting): The return |
85 |
|
value of UniqueValues is unsorted, so it has to be sorted for |
86 |
|
comparison. |
87 |
|
|
88 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
89 |
|
|
90 |
|
Fix for RT#2237 |
91 |
|
|
92 |
|
* Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the |
93 |
|
panel to be shown is the UnknownProjPanel disable the OK and Try |
94 |
|
buttons. Otherwise enable them. |
95 |
|
(ProjFrame.__GetProjection): The UnknownProjPanel returns None for |
96 |
|
the parameters. In that case __GetProjection also returns None |
97 |
|
now. |
98 |
|
|
99 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
100 |
|
|
101 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the |
102 |
|
minimum number of classes to 2. The calculate_quantiles needs at |
103 |
|
least two and raises an exception otherwise. |
104 |
|
Fixes RT#2549 |
105 |
|
|
106 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
107 |
|
|
108 |
|
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |
109 |
|
so that it returns a result for select statements. |
110 |
|
(PostgreSQLServer.server_version): New. Return the version of the |
111 |
|
server software. |
112 |
|
(PostgreSQLServer.require_authentication): The format of |
113 |
|
pg_hba.conf has changed between PostgrSQL 7.2 and 7.3. Check the |
114 |
|
server version and generate the file in the correct format |
115 |
|
|
116 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
117 |
|
|
118 |
|
* test/postgissupport.py (PostgreSQLServer.is_running): Fix typo |
119 |
|
in the doc string and rephrase it a little. |
120 |
|
|
121 |
|
2004-12-15 Frank Koormann <[email protected]> |
122 |
|
|
123 |
|
* test/test_load.py (TestAltPath.checkSession): New, extended checks if |
124 |
|
session has been loaded successfully. The check is called by the relevant |
125 |
|
tests after executing load_session(). |
126 |
|
|
127 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
128 |
|
|
129 |
|
Make sure the region used to determine which shapes are visible |
130 |
|
actually matches the region on the printed page. If this isn't |
131 |
|
done properly some shapes might not be printed. |
132 |
|
Fixes RT #2692 |
133 |
|
|
134 |
|
* Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the |
135 |
|
renderer has to be at the same position as the mapregion |
136 |
|
|
137 |
|
* Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region |
138 |
|
has to be moved by (self.shiftx, self.shifty) too. |
139 |
|
|
140 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
141 |
|
|
142 |
|
* libraries/pyprojection/Projection.i: Work around a bug in the |
143 |
|
generated python code which leads to exception in the __del__ |
144 |
|
method when the constructor fails. See the comments in the code |
145 |
|
for more details. |
146 |
|
|
147 |
|
* libraries/pyprojection/Projection.py: Updated from Projection.i |
148 |
|
with SWIG. |
149 |
|
|
150 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
151 |
|
|
152 |
|
* test/test_load.py (TestAltPath.test_01_single_path_error_fix) |
153 |
|
(TestAltPath.test_02_path_error_fix_from_list) |
154 |
|
(TestAltPath.test_05_path_error_fix_from_list_changed) |
155 |
|
(TestAltPath.test_06_path_error_fix_from_list_fails): self.session |
156 |
|
is destroyed in tearDown, so there's no need to do it in a test |
157 |
|
case. |
158 |
|
|
159 |
|
* Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a |
160 |
|
debug print |
161 |
|
|
162 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
163 |
|
|
164 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
165 |
|
(TestDrawSplines.setUp): Do not use super with the unittest |
166 |
|
classes because in Python 2.2 they're still old-style classes. |
167 |
|
|
168 |
|
2004-12-13 Frank Koormann <[email protected]> |
169 |
|
|
170 |
|
Alternative Path feature: When loading a (moved) session where |
171 |
|
shapefiles cannot be found, ask the user. Use the specified path |
172 |
|
if further shapefiles are missing. However, ask the usr for confirmation |
173 |
|
in such cases. |
174 |
|
|
175 |
|
* test/test_load.py (TestAltPath): New, tests for alternative path feature |
176 |
|
in load_session() |
177 |
|
(Shapefile_CallBack): Helper, implements controllable callback. |
178 |
|
|
179 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
180 |
|
Added "alt_path" to self.path |
181 |
|
(ThubanApplication.OpenSession): Added shapefile_callback as second |
182 |
|
callback similar to db_connection_callback. |
183 |
|
(ThubanApplication.run_alt_path_dialog): New, implementaion of |
184 |
|
shapefile_callback. In addition to raising the dialog the control of |
185 |
|
self.path('alt_path') is implemented here. |
186 |
|
|
187 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback. |
188 |
|
(SessionLoader.open_shapefile): Open shapefile, eventually with |
189 |
|
alternative path. This wrapps the "theSession.OpenShapefile(filename)" |
190 |
|
formerly used in start_fileshapesource()/start_layer(). |
191 |
|
(SessionLoader.start_fileshapesource): Call open_shapefile(). |
192 |
|
(SessionLoader.start_layer): Call open_shapefile(). |
193 |
|
(load_session): Added shapefile_callback. |
194 |
|
|
195 |
|
* Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path |
196 |
|
feature (search / check). |
197 |
|
|
198 |
|
* Doc/manual/thuban-manual.xml: Added documentation of new feature. |
199 |
|
|
200 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
201 |
|
|
202 |
|
svgexport 0.9.2: Point size supports for maps. |
203 |
|
|
204 |
|
* Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT |
205 |
|
(def draw_point_shape): new parameter size defaults to 2 as before. |
206 |
|
(draw_shape_layer_incrementally): Moved draw_func log line higher. |
207 |
|
Added draw_func call with size when dealing with a point layer. |
208 |
|
|
209 |
|
* Extensions/svgexport/__init__.py: bumped version to 0.9.2. |
210 |
|
|
211 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
212 |
|
|
213 |
|
Made sure that newlines are inserted in the svg path d attributes |
214 |
|
to raise the chance that the line length will be below 255 characters, |
215 |
|
as recommended by REC SVG 1.1 in section 8.3.1. |
216 |
|
|
217 |
|
* Extensions/svgexport/svgmapwriter.py(DrawPolygon): |
218 |
|
Adding \n before L's and changed whitespace handling. |
219 |
|
|
220 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
221 |
|
Adapted tests to new whitespace handling of DrawPolygon. |
222 |
|
|
223 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
224 |
|
|
225 |
|
* Doc/technotes/coding_guidelines.txt: easy typo fixed. |
226 |
|
|
227 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
228 |
|
Removed test_drawbezier in favour of new test_drawspline3 and |
229 |
|
test_drawspline4 within new class TestDrawSplines(TestVirtualDC). |
230 |
|
All only to test DrawSpline. |
231 |
|
|
232 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
233 |
|
New implementation now really using the strange algorithm of |
234 |
|
xfig 3.1's approximated splines and its conversion to postscript |
235 |
|
with one twist: SVG can do quadratic beziers, so skipped translation |
236 |
|
to cubic beziers. |
237 |
|
(TestWithDC): Typo in comment fixed. |
238 |
|
|
239 |
|
2004-12-09 Martin Schulze <[email protected]> |
240 |
|
|
241 |
|
* Thuban/Model/classgen.py: Added missing character encoding |
242 |
|
|
243 |
|
* Extensions/wms/properties.py (OpenWMSProperties): removed |
244 |
|
|
245 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped |
246 |
|
support for get_srs_discrepancies() since there are no |
247 |
|
discrepancies anymore (was a thinko) |
248 |
|
|
249 |
|
* Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic |
250 |
|
format priority now that more formats are supported globally by |
251 |
|
the render engine. |
252 |
|
|
253 |
|
2004-12-08 Silke Reimer <[email protected]> |
254 |
|
* Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings |
255 |
|
because it is not available in all versions of ogr |
256 |
|
|
257 |
|
2004-12-08 Bernhard Reiter <[email protected]> |
258 |
|
* Extensions/ogr/__init__.py: Added empty __init__.py to heal |
259 |
|
global tests until a real one is commited. |
260 |
|
|
261 |
|
2004-12-07 Nina H�ffmeyer <[email protected]> |
262 |
|
|
263 |
|
* /Extensions/ogr/: Adding a new extension to read shapefiles with |
264 |
|
ogr. It is planned to add other vector formats. |
265 |
|
|
266 |
|
* /test/runtests.py: Adding tests from /Extensions/ogr/test/. |
267 |
|
|
268 |
|
2004-12-07 Jan-Oliver Wagner <[email protected]> |
269 |
|
|
270 |
|
* /Extensions/svgexport/test/test_svgmapwriter.py: Reverting |
271 |
|
part of a (non-)fix to renable that the tests are always |
272 |
|
executed. |
273 |
|
|
274 |
|
2004-12-07 Bernhard Reiter <[email protected]> |
275 |
|
|
276 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
277 |
|
Added test_drawbezier() to test DrawSpline(). |
278 |
|
|
279 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
280 |
|
Really implemented bezier drawing. |
281 |
|
|
282 |
|
* Extensions/svgexport/__init__.py: Bumped version of svgexport |
283 |
|
to 0.9.1 because now the legend examples lines styles |
284 |
|
will be drawing with beziers. |
285 |
|
|
286 |
|
2004-12-05 Martin Schulze <[email protected]> |
287 |
|
|
288 |
|
* Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and |
289 |
|
GIF as supported bitmap image formats (helpful for the WMS extension) |
290 |
|
|
291 |
|
2004-11-30 Martin Schulze <[email protected]> |
292 |
|
|
293 |
|
* Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs): |
294 |
|
Improved the test for the internal compare method |
295 |
|
|
296 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
297 |
|
|
298 |
|
* Thuban/UI/about.py (About.__init__): Added |
299 |
|
Norbert Solymosi for hungarian translation and Ole Rahn |
300 |
|
as contrbutor. Moved Bernhard Reiter from Contributor |
301 |
|
to Developer. |
302 |
|
|
303 |
|
2004-11-27 Bernhard Reiter <[email protected]> |
304 |
|
|
305 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
306 |
|
Removed Jan from author list as he did not change enough significant |
307 |
|
lines yet. |
308 |
|
|
309 |
|
* Extensions/svgexport/__init__.py: Added Bernhard as author |
310 |
|
of the Extension. |
311 |
|
|
312 |
|
2004-11-27 Jan-Oliver Wagner <[email protected]> |
313 |
|
|
314 |
|
* po/hu.po: New. Hungarian translation. Contributed |
315 |
|
by Norbert Solymosi. |
316 |
|
|
317 |
2004-11-26 Bernhard Herzog <[email protected]> |
2004-11-26 Bernhard Herzog <[email protected]> |
318 |
|
|
319 |
* Extensions/svgexport/test/test_svgmapwriter.py |
* Extensions/svgexport/test/test_svgmapwriter.py |