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]> |
2004-12-15 Bernhard Herzog <[email protected]> |
107 |
|
|
108 |
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |