1 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Add support for PostGIS tables with LINESTRING geomentries. |
4 |
|
Fixes RT#2299 |
5 |
|
|
6 |
|
* Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING |
7 |
|
|
8 |
|
* test/postgissupport.py |
9 |
|
(PostgreSQLServer.get_default_static_data_db): Rename the "roads" |
10 |
|
table to "roads-multi" because it now uses MULTILINESTRING |
11 |
|
geometries and introduce a new "roads" table that uses LINESTRING |
12 |
|
(coords_to_multilinestring): Make the doc string more precise |
13 |
|
(coords_to_linestring): New. Create a LINESTRING WKT |
14 |
|
representatin |
15 |
|
(wkt_converter): Add coords_to_linestring |
16 |
|
(upload_shapefile): Rephrase the doc-string a bit. |
17 |
|
|
18 |
|
* test/test_postgis_db.py (TestPostGISShapestoreArc) |
19 |
|
(LineStringTests) |
20 |
|
(TestPostGISShapestoreLineString) |
21 |
|
(TestPostGISShapestoreMultiLineString): Split |
22 |
|
TestPostGISShapestoreArc into a base class LineStringTests and two |
23 |
|
derived classes TestPostGISShapestoreLineString for LINESTRING |
24 |
|
geometries and TestPostGISShapestoreMultiLineString for |
25 |
|
MULTILINESTRING geometries. Most test methods are in the base |
26 |
|
class with the exception of tests that explicitly check the raw |
27 |
|
format. |
28 |
|
|
29 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
30 |
|
|
31 |
|
Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4 |
32 |
|
|
33 |
|
* test/postgissupport.py (find_postgis_sql): Different postgis |
34 |
|
versions put the postgis.sql file into slightly different places |
35 |
|
so we have to look in both. The updated doc string describes this |
36 |
|
is more detail. |
37 |
|
|
38 |
|
* test/test_postgis_db.py |
39 |
|
(TestPostGISSpecialCases.test_column_name_quoting): The return |
40 |
|
value of UniqueValues is unsorted, so it has to be sorted for |
41 |
|
comparison. |
42 |
|
|
43 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
44 |
|
|
45 |
|
Fix for RT#2237 |
46 |
|
|
47 |
|
* Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the |
48 |
|
panel to be shown is the UnknownProjPanel disable the OK and Try |
49 |
|
buttons. Otherwise enable them. |
50 |
|
(ProjFrame.__GetProjection): The UnknownProjPanel returns None for |
51 |
|
the parameters. In that case __GetProjection also returns None |
52 |
|
now. |
53 |
|
|
54 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
55 |
|
|
56 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the |
57 |
|
minimum number of classes to 2. The calculate_quantiles needs at |
58 |
|
least two and raises an exception otherwise. |
59 |
|
Fixes RT#2549 |
60 |
|
|
61 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
62 |
|
|
63 |
|
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |
64 |
|
so that it returns a result for select statements. |
65 |
|
(PostgreSQLServer.server_version): New. Return the version of the |
66 |
|
server software. |
67 |
|
(PostgreSQLServer.require_authentication): The format of |
68 |
|
pg_hba.conf has changed between PostgrSQL 7.2 and 7.3. Check the |
69 |
|
server version and generate the file in the correct format |
70 |
|
|
71 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
72 |
|
|
73 |
|
* test/postgissupport.py (PostgreSQLServer.is_running): Fix typo |
74 |
|
in the doc string and rephrase it a little. |
75 |
|
|
76 |
|
2004-12-15 Frank Koormann <[email protected]> |
77 |
|
|
78 |
|
* test/test_load.py (TestAltPath.checkSession): New, extended checks if |
79 |
|
session has been loaded successfully. The check is called by the relevant |
80 |
|
tests after executing load_session(). |
81 |
|
|
82 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
83 |
|
|
84 |
|
Make sure the region used to determine which shapes are visible |
85 |
|
actually matches the region on the printed page. If this isn't |
86 |
|
done properly some shapes might not be printed. |
87 |
|
Fixes RT #2692 |
88 |
|
|
89 |
|
* Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the |
90 |
|
renderer has to be at the same position as the mapregion |
91 |
|
|
92 |
|
* Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region |
93 |
|
has to be moved by (self.shiftx, self.shifty) too. |
94 |
|
|
95 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
96 |
|
|
97 |
|
* libraries/pyprojection/Projection.i: Work around a bug in the |
98 |
|
generated python code which leads to exception in the __del__ |
99 |
|
method when the constructor fails. See the comments in the code |
100 |
|
for more details. |
101 |
|
|
102 |
|
* libraries/pyprojection/Projection.py: Updated from Projection.i |
103 |
|
with SWIG. |
104 |
|
|
105 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
106 |
|
|
107 |
|
* test/test_load.py (TestAltPath.test_01_single_path_error_fix) |
108 |
|
(TestAltPath.test_02_path_error_fix_from_list) |
109 |
|
(TestAltPath.test_05_path_error_fix_from_list_changed) |
110 |
|
(TestAltPath.test_06_path_error_fix_from_list_fails): self.session |
111 |
|
is destroyed in tearDown, so there's no need to do it in a test |
112 |
|
case. |
113 |
|
|
114 |
|
* Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a |
115 |
|
debug print |
116 |
|
|
117 |
|
2004-12-13 Bernhard Herzog <[email protected]> |
118 |
|
|
119 |
|
* Extensions/svgexport/test/test_svgmapwriter.py |
120 |
|
(TestDrawSplines.setUp): Do not use super with the unittest |
121 |
|
classes because in Python 2.2 they're still old-style classes. |
122 |
|
|
123 |
|
2004-12-13 Frank Koormann <[email protected]> |
124 |
|
|
125 |
|
Alternative Path feature: When loading a (moved) session where |
126 |
|
shapefiles cannot be found, ask the user. Use the specified path |
127 |
|
if further shapefiles are missing. However, ask the usr for confirmation |
128 |
|
in such cases. |
129 |
|
|
130 |
|
* test/test_load.py (TestAltPath): New, tests for alternative path feature |
131 |
|
in load_session() |
132 |
|
(Shapefile_CallBack): Helper, implements controllable callback. |
133 |
|
|
134 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): |
135 |
|
Added "alt_path" to self.path |
136 |
|
(ThubanApplication.OpenSession): Added shapefile_callback as second |
137 |
|
callback similar to db_connection_callback. |
138 |
|
(ThubanApplication.run_alt_path_dialog): New, implementaion of |
139 |
|
shapefile_callback. In addition to raising the dialog the control of |
140 |
|
self.path('alt_path') is implemented here. |
141 |
|
|
142 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback. |
143 |
|
(SessionLoader.open_shapefile): Open shapefile, eventually with |
144 |
|
alternative path. This wrapps the "theSession.OpenShapefile(filename)" |
145 |
|
formerly used in start_fileshapesource()/start_layer(). |
146 |
|
(SessionLoader.start_fileshapesource): Call open_shapefile(). |
147 |
|
(SessionLoader.start_layer): Call open_shapefile(). |
148 |
|
(load_session): Added shapefile_callback. |
149 |
|
|
150 |
|
* Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path |
151 |
|
feature (search / check). |
152 |
|
|
153 |
|
* Doc/manual/thuban-manual.xml: Added documentation of new feature. |
154 |
|
|
155 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
156 |
|
|
157 |
|
svgexport 0.9.2: Point size supports for maps. |
158 |
|
|
159 |
|
* Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT |
160 |
|
(def draw_point_shape): new parameter size defaults to 2 as before. |
161 |
|
(draw_shape_layer_incrementally): Moved draw_func log line higher. |
162 |
|
Added draw_func call with size when dealing with a point layer. |
163 |
|
|
164 |
|
* Extensions/svgexport/__init__.py: bumped version to 0.9.2. |
165 |
|
|
166 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
167 |
|
|
168 |
|
Made sure that newlines are inserted in the svg path d attributes |
169 |
|
to raise the chance that the line length will be below 255 characters, |
170 |
|
as recommended by REC SVG 1.1 in section 8.3.1. |
171 |
|
|
172 |
|
* Extensions/svgexport/svgmapwriter.py(DrawPolygon): |
173 |
|
Adding \n before L's and changed whitespace handling. |
174 |
|
|
175 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
176 |
|
Adapted tests to new whitespace handling of DrawPolygon. |
177 |
|
|
178 |
|
2004-12-11 Bernhard Reiter <[email protected]> |
179 |
|
|
180 |
|
* Doc/technotes/coding_guidelines.txt: easy typo fixed. |
181 |
|
|
182 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
183 |
|
Removed test_drawbezier in favour of new test_drawspline3 and |
184 |
|
test_drawspline4 within new class TestDrawSplines(TestVirtualDC). |
185 |
|
All only to test DrawSpline. |
186 |
|
|
187 |
|
* Extensions/svgexport/svgmapwriter.py(DrawSpline): |
188 |
|
New implementation now really using the strange algorithm of |
189 |
|
xfig 3.1's approximated splines and its conversion to postscript |
190 |
|
with one twist: SVG can do quadratic beziers, so skipped translation |
191 |
|
to cubic beziers. |
192 |
|
(TestWithDC): Typo in comment fixed. |
193 |
|
|
194 |
|
2004-12-09 Martin Schulze <[email protected]> |
195 |
|
|
196 |
|
* Thuban/Model/classgen.py: Added missing character encoding |
197 |
|
|
198 |
|
* Extensions/wms/properties.py (OpenWMSProperties): removed |
199 |
|
|
200 |
|
* Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped |
201 |
|
support for get_srs_discrepancies() since there are no |
202 |
|
discrepancies anymore (was a thinko) |
203 |
|
|
204 |
|
* Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic |
205 |
|
format priority now that more formats are supported globally by |
206 |
|
the render engine. |
207 |
|
|
208 |
|
2004-12-08 Silke Reimer <[email protected]> |
209 |
|
* Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings |
210 |
|
because it is not available in all versions of ogr |
211 |
|
|
212 |
|
2004-12-08 Bernhard Reiter <[email protected]> |
213 |
|
* Extensions/ogr/__init__.py: Added empty __init__.py to heal |
214 |
|
global tests until a real one is commited. |
215 |
|
|
216 |
2004-12-07 Nina H�ffmeyer <[email protected]> |
2004-12-07 Nina H�ffmeyer <[email protected]> |
217 |
|
|
218 |
* /Extensions/ogr/: Adding a new extension to read shapefiles with |
* /Extensions/ogr/: Adding a new extension to read shapefiles with |