1 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
2 |
|
|
3 |
|
* Extensions/svgexport/TODO: Added idea to support triggering |
4 |
|
the application down the pipe. |
5 |
|
|
6 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
7 |
|
|
8 |
|
svgexport: Improved code quality, mainly by better naming. |
9 |
|
|
10 |
|
* Extensions/svgexport/svgmapwriter.py: |
11 |
|
DrawPath() renamed to DrawPolygonPath(), |
12 |
|
added documentation, improved comments and variable names. |
13 |
|
|
14 |
|
* Extensions/svgexport/svgmapwriter.py, |
15 |
|
Extensions/svgexport/test/test_svgmapwriter.py: |
16 |
|
All using DrawPolygonPath() now, the default parameter closed=True |
17 |
|
omitted. |
18 |
|
|
19 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
20 |
|
renamed test_polygon_opened() to test_polyline() |
21 |
|
renamed test_transparent_polygon() to test_transparent_polyline() |
22 |
|
|
23 |
|
2004-12-18 Jan-Oliver Wagner <[email protected]> |
24 |
|
|
25 |
|
Some fixes of gns2shp extension. |
26 |
|
|
27 |
|
* Extensions/gns2shp/test/__init__.py: New. Make this directory a |
28 |
|
package. |
29 |
|
|
30 |
|
* Extensions/gns2shp/test/test_gns2shp.py: Add some import paths |
31 |
|
dynamically. |
32 |
|
|
33 |
|
* Extensions/gns2shp/test/README: Simplified description how to test. |
34 |
|
|
35 |
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string, |
36 |
|
fixed some dimensions of fields according to the GNS documentation |
37 |
|
which seems to change undocumented. |
38 |
|
Now killing trailing \n and/or \r from MODIFY_DATE. |
39 |
|
This fixes RT#2453. |
40 |
|
|
41 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
42 |
|
|
43 |
|
svgexport 1.0.0: Treats holes and islands nicely. Documentation added. |
44 |
|
|
45 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
46 |
|
Added new tests: test_export_polygon_with_hole() |
47 |
|
and test_polygon_with_hole(). |
48 |
|
|
49 |
|
* Extensions/svgexport/svgmapwriter.py |
50 |
|
(draw_polygon_shape()): Uses DrawPath correctly now. |
51 |
|
|
52 |
|
* Doc/manual/thuban-manual.xml: Added documentation for stable |
53 |
|
extention svgexport. |
54 |
|
* Doc/manual/thuban-manual-de.xml: Copied English section about |
55 |
|
svexport over. |
56 |
|
|
57 |
|
* Extensions/svgexport/__init__.py: Bumped version number to 1.0.0. |
58 |
|
|
59 |
|
* Extensions/svgexport/svgsaver.py,maplegend.py: |
60 |
|
Moved from experimental to stable extension menu. |
61 |
|
|
62 |
|
* Extensions/svgexport/TODO: updated. |
63 |
|
|
64 |
|
|
65 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
66 |
|
|
67 |
|
Added Extensions/svgexport/TODO |
68 |
|
|
69 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
70 |
|
|
71 |
|
Refactored in svgexport: |
72 |
|
DrawPath replaces DrawPolygon; added newline in front of "M" in paths. |
73 |
|
|
74 |
|
* Extensions/svgexport/svgmapwriter.py |
75 |
|
Added verbosity level 3 to print out polygon points. |
76 |
|
(class Point): added __repr__ |
77 |
|
(class Brush, __str__()): Added space after ,. |
78 |
|
(DrawPolygon): Renamed to DrawPath() |
79 |
|
(DrawPath): Takes list of polygons as input now, adds \n before "M"s. |
80 |
|
(DrawLines): Using DrawPath now. |
81 |
|
|
82 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
83 |
|
Replaced DrawPolygon() calls with DrawPath() and put the first argument |
84 |
|
inside another list. Adapted test data with a newline before "M". |
85 |
|
|
86 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
87 |
|
|
88 |
|
Refactored svgexport tests: 9 double tests runs eliminated; |
89 |
|
code size reduced by 8 lines. |
90 |
|
|
91 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
92 |
|
(class TestWithDC): Renamed to BaseTestWithDC, moved to top. |
93 |
|
(class BaseWithDCtools): New, subclass from BaseTestWithDC. |
94 |
|
(class TestDrawSplines): now subclass from BaseTestWithDCtools, |
95 |
|
this fixed the double running of the nine tests of TestVirtualDC. |
96 |
|
(class TestVirtualDC): Using self.dc and self.file from setUp(). |
97 |
|
|
98 |
|
2004-12-17 Bernhard Herzog <[email protected]> |
99 |
|
|
100 |
|
Two windows specific fixes ported from thuban-1�0-branch: |
101 |
|
|
102 |
|
* Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale |
103 |
|
instead of getlocale because getlocale doesn't return a usable |
104 |
|
encoding name on a german windows 2000 |
105 |
|
|
106 |
|
* setup.py: windows build: Removed the absolute path names and |
107 |
|
made all prfixes relative to the directory containing setup.py. |
108 |
|
Makes it a little easier to adapt to a different system. |
109 |
|
|
110 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
111 |
|
|
112 |
|
Add support for PostGIS tables with LINESTRING geometries. |
113 |
|
Fixes RT#2299 |
114 |
|
|
115 |
|
* Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING |
116 |
|
|
117 |
|
* test/postgissupport.py |
118 |
|
(PostgreSQLServer.get_default_static_data_db): Rename the "roads" |
119 |
|
table to "roads-multi" because it now uses MULTILINESTRING |
120 |
|
geometries and introduce a new "roads" table that uses LINESTRING |
121 |
|
(coords_to_multilinestring): Make the doc string more precise |
122 |
|
(coords_to_linestring): New. Create a LINESTRING WKT |
123 |
|
representatin |
124 |
|
(wkt_converter): Add coords_to_linestring |
125 |
|
(upload_shapefile): Rephrase the doc-string a bit. |
126 |
|
|
127 |
|
* test/test_postgis_db.py (TestPostGISShapestoreArc) |
128 |
|
(LineStringTests) |
129 |
|
(TestPostGISShapestoreLineString) |
130 |
|
(TestPostGISShapestoreMultiLineString): Split |
131 |
|
TestPostGISShapestoreArc into a base class LineStringTests and two |
132 |
|
derived classes TestPostGISShapestoreLineString for LINESTRING |
133 |
|
geometries and TestPostGISShapestoreMultiLineString for |
134 |
|
MULTILINESTRING geometries. Most test methods are in the base |
135 |
|
class with the exception of tests that explicitly check the raw |
136 |
|
format. |
137 |
|
|
138 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
139 |
|
|
140 |
|
Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4 |
141 |
|
|
142 |
|
* test/postgissupport.py (find_postgis_sql): Different postgis |
143 |
|
versions put the postgis.sql file into slightly different places |
144 |
|
so we have to look in both. The updated doc string describes this |
145 |
|
is more detail. |
146 |
|
|
147 |
|
* test/test_postgis_db.py |
148 |
|
(TestPostGISSpecialCases.test_column_name_quoting): The return |
149 |
|
value of UniqueValues is unsorted, so it has to be sorted for |
150 |
|
comparison. |
151 |
|
|
152 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
153 |
|
|
154 |
|
Fix for RT#2237 |
155 |
|
|
156 |
|
* Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the |
157 |
|
panel to be shown is the UnknownProjPanel disable the OK and Try |
158 |
|
buttons. Otherwise enable them. |
159 |
|
(ProjFrame.__GetProjection): The UnknownProjPanel returns None for |
160 |
|
the parameters. In that case __GetProjection also returns None |
161 |
|
now. |
162 |
|
|
163 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
164 |
|
|
165 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the |
166 |
|
minimum number of classes to 2. The calculate_quantiles needs at |
167 |
|
least two and raises an exception otherwise. |
168 |
|
Fixes RT#2549 |
169 |
|
|
170 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
171 |
|
|
172 |
|
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |
173 |
|
so that it returns a result for select statements. |
174 |
|
(PostgreSQLServer.server_version): New. Return the version of the |
175 |
|
server software. |
176 |
|
(PostgreSQLServer.require_authentication): The format of |
177 |
|
pg_hba.conf has changed between PostgrSQL 7.2 and 7.3. Check the |
178 |
|
server version and generate the file in the correct format |
179 |
|
|
180 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
181 |
|
|
182 |
|
* test/postgissupport.py (PostgreSQLServer.is_running): Fix typo |
183 |
|
in the doc string and rephrase it a little. |
184 |
|
|
185 |
2004-12-15 Frank Koormann <[email protected]> |
2004-12-15 Frank Koormann <[email protected]> |
186 |
|
|
187 |
* test/test_load.py (TestAltPath.checkSession): New, extended checks if |
* test/test_load.py (TestAltPath.checkSession): New, extended checks if |