1 |
|
2005-01-21 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes |
4 |
|
a projection and returns a formatted string representing the |
5 |
|
parameters to feed to gdalwarp. This function eliminates |
6 |
|
redundancy in draw_raster_layer(). |
7 |
|
(render_map_incrementally): Removed the optimization which |
8 |
|
drew the top most raster layer first and then only those vector- |
9 |
|
based layers that are above it. With the support for transparency |
10 |
|
this optimization breaks correct behaviour. |
11 |
|
(draw_raster_layer): Reorganize code to support possible future |
12 |
|
enhancements to raster layer bounding box. The old behaviour has not |
13 |
|
changed. Also, change calling parameters to draw_raster_data() |
14 |
|
to specify new RAW data format and mask. |
15 |
|
(draw_raster_data): Change signature to include an optional |
16 |
|
parameter for mask information. Change documentation to mention |
17 |
|
support for new parameter and added option for RAW data format. |
18 |
|
The data argument is now a list of [width, height, data]. |
19 |
|
|
20 |
|
* Thuban/UI/renderer.py (draw_raster_data): Add new optional |
21 |
|
mask parameter. Add new condition for RAW format, which |
22 |
|
significantly reduces rendering time. Add condition for |
23 |
|
mask parameter. |
24 |
|
|
25 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a |
26 |
|
data array of RGB values from the projected image returned from |
27 |
|
the gdal warping functions. In the case of palette based images, it |
28 |
|
converts the NO_DATA index to the mask color. |
29 |
|
(ProjectRasterFile): Removed all custom memory driver references |
30 |
|
and replaced it with the standard in-memory dataset provided |
31 |
|
by gdal. The return data is no longer a BMP file, but an array |
32 |
|
of RGB values, one set triple per pixel. |
33 |
|
|
34 |
|
* libraries/thuban/bmpdataset.cpp: Removed. Unnecessary. |
35 |
|
* libraries/thuban/cpl_mfile.h: Removed. Unnecessary. |
36 |
|
* libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary. |
37 |
|
|
38 |
|
* setup.py (thuban_build_ext.finalize_options): Removed mention |
39 |
|
of cpl_mfile.cpp and bmpdataset.cpp files in the list of source |
40 |
|
files. These are obsolete with the new version of gdalwarp.cpp |
41 |
|
|
42 |
|
* test/test_baserenderer.py (draw_raster_data): Updated signature. |
43 |
|
(test_raster_no_projection): Changed the test data to be data |
44 |
|
in the uncompressed RAW format returned from ProjectRasterFile. |
45 |
|
|
46 |
|
2005-01-21 Jan-Oliver Wagner <[email protected]> |
47 |
|
|
48 |
|
* Thuban/UI/mainwindow.py (view_position_changed): Made string |
49 |
|
available for i18n. |
50 |
|
|
51 |
|
2005-01-20 Russell Nelson <[email protected]> |
52 |
|
|
53 |
|
* Resources/Projections/defaults.proj: Ruin the speling of the |
54 |
|
Lambert-93 projection so it doesn't run into the wx UTF-8 bug. |
55 |
|
It's the wrong thing to do in the long run, but it's necessary for |
56 |
|
those users until that bug is fixed. Otherwise the projection |
57 |
|
dialog segfaults. Better to annoy some Lambert-93 users with a |
58 |
|
spelling mistake than every Fedora Core 3 user of Thuban-CVS. |
59 |
|
|
60 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
61 |
|
|
62 |
|
* Thuban/UI/mainwindow.py(view_position_changed): Added docstring |
63 |
|
and comment that the warning code here is a hack. |
64 |
|
|
65 |
|
2005-01-20 Russell Nelson <[email protected]> |
66 |
|
|
67 |
|
* Thuban/UI/mainwindow.py(view_position_changed): Warn user about |
68 |
|
misprojected layers when their lat/lon bounding |
69 |
|
box exceeds rational lat/lon values. |
70 |
|
|
71 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
72 |
|
|
73 |
|
* Thuban/UI/about.py (unicodeToLocale()): Improved: |
74 |
|
Use 'ascii' and then 'replace' for other characters |
75 |
|
when getdefaultlocale returns None. Thanks to Bernhard H. . |
76 |
|
|
77 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
78 |
|
|
79 |
|
* Thuban/UI/classgen.py (OnRetrieve()): Added a comment |
80 |
|
that OnRangeText might be called twice and using None as argument. |
81 |
|
|
82 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
83 |
|
|
84 |
|
* Thuban/UI/classgen.py (OnRetrieve()): Add a OnRangeText(0) |
85 |
|
to work around a different in wx Behaviour noticed on MacOSX, |
86 |
|
thanks to Lorenzo Moretti and Daniel Calvelo for the fix. |
87 |
|
|
88 |
|
2005-01-20 Bernhard Reiter <[email protected]> |
89 |
|
|
90 |
|
* Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns |
91 |
|
None. (Fixes rt#2910.) |
92 |
|
|
93 |
|
2005-01-18 Frank Koormann <[email protected]> |
94 |
|
|
95 |
|
New Extension: mouseposition |
96 |
|
Tool to collect mouse click positions (map coordinates) in a dialog. |
97 |
|
|
98 |
|
* Extensions/mouseposition/__init__.py: New, extension registration |
99 |
|
|
100 |
|
* Extensions/mouseposition/mouseposition.py: New, implements the |
101 |
|
dialog and adds a tool to Thuban mainwindow. |
102 |
|
|
103 |
|
* Extensions/mouseposition/position.xpm: New, icon for tool. |
104 |
|
|
105 |
|
2005-01-14 Jan-Oliver Wagner <[email protected]> |
106 |
|
|
107 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
108 |
|
|
109 |
|
2005-01-11 Frank Koormann <[email protected]> |
110 |
|
|
111 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
112 |
|
Fix indention bug. |
113 |
|
|
114 |
|
2005-01-09 Frank Koormann <[email protected]> |
115 |
|
|
116 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer): |
117 |
|
BugFix 2901: Explicitly copy layers ClassificationColumn since it |
118 |
|
is not part of the layers Classification. |
119 |
|
|
120 |
|
2005-01-03 Frank Koormann <[email protected]> |
121 |
|
|
122 |
|
* Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally): |
123 |
|
BugFix 2883: Former implementation only worked on classified point |
124 |
|
layers: KeyError was raised, now use the default size if field is None. |
125 |
|
|
126 |
|
2004-12-27 Bernhard Reiter <[email protected]> |
127 |
|
|
128 |
|
svgexport 1.0.0cvs: Fixed label export. |
129 |
|
|
130 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
131 |
|
class TestSVGRenderer(): New class; new test test_label_font(). |
132 |
|
|
133 |
|
* Extensions/svgexport/svgmapwriter.py |
134 |
|
(SVGRenderer.label_font()): initialised Font size with self.factor now, |
135 |
|
makes test_label_font happy. |
136 |
|
|
137 |
|
* Extensions/svgexport/TODO: crossed out fixed label export item. |
138 |
|
Added item for options. |
139 |
|
|
140 |
|
* Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs. |
141 |
|
|
142 |
|
2004-12-27 Russell Nelson <[email protected]> |
143 |
|
|
144 |
|
Middle mouse button pans. |
145 |
|
|
146 |
|
* Thuban/UI/view.py (MapCanvas.__init__): Subscribe also |
147 |
|
OnMiddleDown and OnMiddleUp events. |
148 |
|
(MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the |
149 |
|
previously used tool. |
150 |
|
(MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before |
151 |
|
pressing the middle mouse button. |
152 |
|
|
153 |
|
2004-12-27 Jan-Oliver Wagner <[email protected]> |
154 |
|
|
155 |
|
* Doc/manual/thuban-manual-de.xml: More translations. |
156 |
|
|
157 |
|
2004-12-23 Jan-Oliver Wagner <[email protected]> |
158 |
|
|
159 |
|
* Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a |
160 |
|
\n to stderr after the warnings. Thanks to Russell Nelson. |
161 |
|
|
162 |
|
2004-12-20 Nina Hueffmeyer <[email protected]> |
163 |
|
|
164 |
|
* Extensions/ogr/ogrshapes.py: Fixed some issues from |
165 |
|
Bernhard (coding guidelines etc.). Additionally it is now possible to |
166 |
|
display shapefiles containing feature collections (e.g.polygons |
167 |
|
with holes). Works with gdal 1.2.1 now. |
168 |
|
|
169 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues |
170 |
|
from Bernhard (coding guidelines etc.). If ogr can't be imported, |
171 |
|
tests are skipped now. |
172 |
|
|
173 |
|
* Extensions/ogr/ogrstart.py: Fixed some typings. |
174 |
|
|
175 |
|
2004-12-20 Bernhard Reiter <[email protected]> |
176 |
|
|
177 |
|
* Extensions/svgexport/TODO: updated to add support for |
178 |
|
raster layers and labels for 1.0.1. |
179 |
|
|
180 |
|
* Extensions/svgexport/svgmapwriter.py (draw_raster_layer): |
181 |
|
Issue a warning now. |
182 |
|
|
183 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
184 |
|
|
185 |
|
* Extensions/svgexport/TODO: Added idea to support triggering |
186 |
|
the application down the pipe. |
187 |
|
|
188 |
|
2004-12-19 Bernhard Reiter <[email protected]> |
189 |
|
|
190 |
|
svgexport: Improved code quality, mainly by better naming. |
191 |
|
|
192 |
|
* Extensions/svgexport/svgmapwriter.py: |
193 |
|
DrawPath() renamed to DrawPolygonPath(), |
194 |
|
added documentation, improved comments and variable names. |
195 |
|
|
196 |
|
* Extensions/svgexport/svgmapwriter.py, |
197 |
|
Extensions/svgexport/test/test_svgmapwriter.py: |
198 |
|
All using DrawPolygonPath() now, the default parameter closed=True |
199 |
|
omitted. |
200 |
|
|
201 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
202 |
|
renamed test_polygon_opened() to test_polyline() |
203 |
|
renamed test_transparent_polygon() to test_transparent_polyline() |
204 |
|
|
205 |
|
2004-12-18 Jan-Oliver Wagner <[email protected]> |
206 |
|
|
207 |
|
Some fixes of gns2shp extension. |
208 |
|
|
209 |
|
* Extensions/gns2shp/test/__init__.py: New. Make this directory a |
210 |
|
package. |
211 |
|
|
212 |
|
* Extensions/gns2shp/test/test_gns2shp.py: Add some import paths |
213 |
|
dynamically. |
214 |
|
|
215 |
|
* Extensions/gns2shp/test/README: Simplified description how to test. |
216 |
|
|
217 |
|
* Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string, |
218 |
|
fixed some dimensions of fields according to the GNS documentation |
219 |
|
which seems to change undocumented. |
220 |
|
Now killing trailing \n and/or \r from MODIFY_DATE. |
221 |
|
This fixes RT#2453. |
222 |
|
|
223 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
224 |
|
|
225 |
|
svgexport 1.0.0: Treats holes and islands nicely. Documentation added. |
226 |
|
|
227 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
228 |
|
Added new tests: test_export_polygon_with_hole() |
229 |
|
and test_polygon_with_hole(). |
230 |
|
|
231 |
|
* Extensions/svgexport/svgmapwriter.py |
232 |
|
(draw_polygon_shape()): Uses DrawPath correctly now. |
233 |
|
|
234 |
|
* Doc/manual/thuban-manual.xml: Added documentation for stable |
235 |
|
extention svgexport. |
236 |
|
* Doc/manual/thuban-manual-de.xml: Copied English section about |
237 |
|
svexport over. |
238 |
|
|
239 |
|
* Extensions/svgexport/__init__.py: Bumped version number to 1.0.0. |
240 |
|
|
241 |
|
* Extensions/svgexport/svgsaver.py,maplegend.py: |
242 |
|
Moved from experimental to stable extension menu. |
243 |
|
|
244 |
|
* Extensions/svgexport/TODO: updated. |
245 |
|
|
246 |
|
|
247 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
248 |
|
|
249 |
|
Added Extensions/svgexport/TODO |
250 |
|
|
251 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
252 |
|
|
253 |
|
Refactored in svgexport: |
254 |
|
DrawPath replaces DrawPolygon; added newline in front of "M" in paths. |
255 |
|
|
256 |
|
* Extensions/svgexport/svgmapwriter.py |
257 |
|
Added verbosity level 3 to print out polygon points. |
258 |
|
(class Point): added __repr__ |
259 |
|
(class Brush, __str__()): Added space after ,. |
260 |
|
(DrawPolygon): Renamed to DrawPath() |
261 |
|
(DrawPath): Takes list of polygons as input now, adds \n before "M"s. |
262 |
|
(DrawLines): Using DrawPath now. |
263 |
|
|
264 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
265 |
|
Replaced DrawPolygon() calls with DrawPath() and put the first argument |
266 |
|
inside another list. Adapted test data with a newline before "M". |
267 |
|
|
268 |
|
2004-12-18 Bernhard Reiter <[email protected]> |
269 |
|
|
270 |
|
Refactored svgexport tests: 9 double tests runs eliminated; |
271 |
|
code size reduced by 8 lines. |
272 |
|
|
273 |
|
* Extensions/svgexport/test/test_svgmapwriter.py: |
274 |
|
(class TestWithDC): Renamed to BaseTestWithDC, moved to top. |
275 |
|
(class BaseWithDCtools): New, subclass from BaseTestWithDC. |
276 |
|
(class TestDrawSplines): now subclass from BaseTestWithDCtools, |
277 |
|
this fixed the double running of the nine tests of TestVirtualDC. |
278 |
|
(class TestVirtualDC): Using self.dc and self.file from setUp(). |
279 |
|
|
280 |
|
2004-12-17 Bernhard Herzog <[email protected]> |
281 |
|
|
282 |
|
Two windows specific fixes ported from thuban-1�0-branch: |
283 |
|
|
284 |
|
* Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale |
285 |
|
instead of getlocale because getlocale doesn't return a usable |
286 |
|
encoding name on a german windows 2000 |
287 |
|
|
288 |
|
* setup.py: windows build: Removed the absolute path names and |
289 |
|
made all prfixes relative to the directory containing setup.py. |
290 |
|
Makes it a little easier to adapt to a different system. |
291 |
|
|
292 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
293 |
|
|
294 |
|
Add support for PostGIS tables with LINESTRING geometries. |
295 |
|
Fixes RT#2299 |
296 |
|
|
297 |
|
* Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING |
298 |
|
|
299 |
|
* test/postgissupport.py |
300 |
|
(PostgreSQLServer.get_default_static_data_db): Rename the "roads" |
301 |
|
table to "roads-multi" because it now uses MULTILINESTRING |
302 |
|
geometries and introduce a new "roads" table that uses LINESTRING |
303 |
|
(coords_to_multilinestring): Make the doc string more precise |
304 |
|
(coords_to_linestring): New. Create a LINESTRING WKT |
305 |
|
representatin |
306 |
|
(wkt_converter): Add coords_to_linestring |
307 |
|
(upload_shapefile): Rephrase the doc-string a bit. |
308 |
|
|
309 |
|
* test/test_postgis_db.py (TestPostGISShapestoreArc) |
310 |
|
(LineStringTests) |
311 |
|
(TestPostGISShapestoreLineString) |
312 |
|
(TestPostGISShapestoreMultiLineString): Split |
313 |
|
TestPostGISShapestoreArc into a base class LineStringTests and two |
314 |
|
derived classes TestPostGISShapestoreLineString for LINESTRING |
315 |
|
geometries and TestPostGISShapestoreMultiLineString for |
316 |
|
MULTILINESTRING geometries. Most test methods are in the base |
317 |
|
class with the exception of tests that explicitly check the raw |
318 |
|
format. |
319 |
|
|
320 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
321 |
|
|
322 |
|
Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4 |
323 |
|
|
324 |
|
* test/postgissupport.py (find_postgis_sql): Different postgis |
325 |
|
versions put the postgis.sql file into slightly different places |
326 |
|
so we have to look in both. The updated doc string describes this |
327 |
|
is more detail. |
328 |
|
|
329 |
|
* test/test_postgis_db.py |
330 |
|
(TestPostGISSpecialCases.test_column_name_quoting): The return |
331 |
|
value of UniqueValues is unsorted, so it has to be sorted for |
332 |
|
comparison. |
333 |
|
|
334 |
|
2004-12-16 Bernhard Herzog <[email protected]> |
335 |
|
|
336 |
|
Fix for RT#2237 |
337 |
|
|
338 |
|
* Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the |
339 |
|
panel to be shown is the UnknownProjPanel disable the OK and Try |
340 |
|
buttons. Otherwise enable them. |
341 |
|
(ProjFrame.__GetProjection): The UnknownProjPanel returns None for |
342 |
|
the parameters. In that case __GetProjection also returns None |
343 |
|
now. |
344 |
|
|
345 |
|
2004-12-15 Bernhard Herzog <[email protected]> |
346 |
|
|
347 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the |
348 |
|
minimum number of classes to 2. The calculate_quantiles needs at |
349 |
|
least two and raises an exception otherwise. |
350 |
|
Fixes RT#2549 |
351 |
|
|
352 |
2004-12-15 Bernhard Herzog <[email protected]> |
2004-12-15 Bernhard Herzog <[email protected]> |
353 |
|
|
354 |
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |
* test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to |