1 |
|
2003-05-21 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
* Resources/Projections/defaults.proj: Renamed 'Universal Transverse |
4 |
|
Mercator' to 'UTM Zone 32' as a more convenient example. |
5 |
|
Added 'Gauss Krueger Zone 6'. |
6 |
|
|
7 |
|
* Data/iceland_sample_raster.thuban: political polygon now |
8 |
|
filled transparent to have the raster image visible at once. |
9 |
|
|
10 |
|
2003-05-21 Frank Koormann <[email protected]> |
11 |
|
|
12 |
|
* Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to |
13 |
|
OnClose() to keep in sync with extensions. Internally Thuban |
14 |
|
still uses "underscored" names. |
15 |
|
|
16 |
|
2003-05-20 Jonathan Coles <[email protected]> |
17 |
|
|
18 |
|
This puts back Raster layer support. These layers support projections |
19 |
|
through the GDAL library. Currently, the CVS version is being used. |
20 |
|
There are no Debian packages available although this may change soon. |
21 |
|
A GDAL driver was extended to support writing to memory rather to |
22 |
|
files. |
23 |
|
|
24 |
|
There is still some work that needs to be done, such as some error |
25 |
|
handling when loading invalid images or when there is a problem |
26 |
|
projecting the image. This putback simply checks in the majority |
27 |
|
of the work. |
28 |
|
|
29 |
|
* setup.py: Add gdalwarp library extension. |
30 |
|
|
31 |
|
* Thuban/Model/layer.py (BaseLayer.HasClassification): New. |
32 |
|
Defaults to False, but can be overridden by subclasses if they |
33 |
|
support classification. |
34 |
|
(RasterLayer): New. Defines a new layer that represents an |
35 |
|
image. |
36 |
|
|
37 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer |
38 |
|
tag handler. |
39 |
|
(SessionLoader.start_layer): Encode the filename. |
40 |
|
(SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer): |
41 |
|
New. Supports reading a rasterlayer tag. |
42 |
|
|
43 |
|
* Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment. |
44 |
|
|
45 |
|
* Thuban/Model/save.py (XMLWriter.encode): Don't assume that we |
46 |
|
get a string in Latin1. If we get such as string convert it to |
47 |
|
unicode first, otherwise leave if alone before encoding. |
48 |
|
(SessionSaver.write_layer): Add support for writing both Layers |
49 |
|
and RasterLayers. |
50 |
|
|
51 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
52 |
|
The right argument may not be a string, it could also be a Column. |
53 |
|
|
54 |
|
* Thuban/UI/application.py (ThubanApplication.CreateMainWindow): |
55 |
|
Make initial window size 600x400. Fixes RTBug #1872. |
56 |
|
|
57 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Rearrange how |
58 |
|
the dialog is constructed so that we can support layers that |
59 |
|
do not have classifications. |
60 |
|
(Classifier._OnTry): Only build a classification if the layer |
61 |
|
supports one. |
62 |
|
|
63 |
|
* Thuban/UI/legend.py: Change all checks that a layer is an |
64 |
|
instance of Layer into checks against BaseLayer. |
65 |
|
(LegendTree.__FillTreeLayer): Only add children to a branch if |
66 |
|
the layer supports classification. |
67 |
|
|
68 |
|
* Thuban/UI/mainwindow.py (MainWindow.NewSession, |
69 |
|
MainWindow.OpenSession): Don't proceed with an action if the |
70 |
|
user chooses Cancel when they are asked to save changes. |
71 |
|
(MainWindow.AddRasterLayer): New. Open a dialog to allow the |
72 |
|
user to select an image file. Create a new RasterLayer and add |
73 |
|
it to the map. |
74 |
|
|
75 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Add support |
76 |
|
for rendering RasterLayer layers. |
77 |
|
(MapRenderer.draw_raster_layer): Actually method that calls |
78 |
|
the GDALWarp python wrapper and constructs an image from the |
79 |
|
data returned. |
80 |
|
|
81 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the |
82 |
|
Choices symbols to match those used in the table query method. |
83 |
|
Replace deprecated method calls on table with new method names. |
84 |
|
|
85 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit |
86 |
|
how small the scale can get. This still needs more testing. |
87 |
|
|
88 |
|
* extensions/thuban/bmpdataset.cpp: New, but copied from GDAL. |
89 |
|
Provides a driver to output in .bmp format. |
90 |
|
|
91 |
|
* extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h: |
92 |
|
New. Provides IO routines which write to memory, rather than a file. |
93 |
|
|
94 |
|
* extensions/thuban/gdalwarp.cpp: New, but basically a direct copy |
95 |
|
of the gdalwarp utility provided in GDAL. Added function calls |
96 |
|
that can be accessed from python. |
97 |
|
|
98 |
|
* Data/iceland_sample_raster.thuban: New. Sample file that uses |
99 |
|
a raster layer. |
100 |
|
|
101 |
|
* Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster |
102 |
|
layer image data. |
103 |
|
|
104 |
|
* Doc/thuban.dtd: Added rasterlayer attribute definition. |
105 |
|
|
106 |
|
* test/test_layer.py, test/test_load.py, test/test_save.py: Added |
107 |
|
tests associated with the raster layer code. |
108 |
|
|
109 |
|
* test/test_transientdb.py |
110 |
|
(TestTransientTable.test_auto_transient_table_query): Added a test |
111 |
|
for using a Column object as the "right" parameter to a query. |
112 |
|
|
113 |
|
2003-05-19 Frank Koormann <[email protected]> |
114 |
|
|
115 |
|
* Thuban/version.py (get_changelog_date): |
116 |
|
Catch exceptions if ChangeLog does not exist. |
117 |
|
|
118 |
|
* Thuban/UI/view.py (MapCanvas.Export): Bugfix |
119 |
|
|
120 |
|
2003-05-19 Frank Koormann <[email protected]> |
121 |
|
|
122 |
|
Extended version information for Thuban |
123 |
|
|
124 |
|
* Thuban/version.py: New, version information for Thuban: Last |
125 |
|
modification date and last ChangeLog entry date. |
126 |
|
|
127 |
|
* Thuban/UI/mainwindow.py (MainWindow.About()): Extended version |
128 |
|
information: Display Thuban, wxPython and Python version. |
129 |
|
|
130 |
|
2003-05-16 Bernhard Herzog <[email protected]> |
131 |
|
|
132 |
|
* Thuban/Model/save.py: Remove some unused imports including the |
133 |
|
__future__ import for nested_scopes as Thuban relies on Python 2.2 |
134 |
|
now. |
135 |
|
(XMLWriter.encode): Remove the special case for a None argument. |
136 |
|
In the saver encode is always called with a string argument. |
137 |
|
|
138 |
|
2003-05-16 Bernhard Herzog <[email protected]> |
139 |
|
|
140 |
|
* Thuban/UI/__init__.py: Remove the work-around for the locale bug |
141 |
|
in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom |
142 |
|
of the bug was that e.g. float("1.2") would fail. Thuban now |
143 |
|
requires 2.4.x. |
144 |
|
|
145 |
|
2003-05-16 Frank Koormann <[email protected]> |
146 |
|
|
147 |
|
Printing enhancement and WMF export (under Win32) |
148 |
|
|
149 |
|
* Thuban/UI/renderer.py (ExportRenderer): New, derived from |
150 |
|
ScreenRenderer. Renders Map, Legend and Scalebar for export. |
151 |
|
(PrinterRenderer): New, derived from ExportRenderer. Replaces the old |
152 |
|
PrintRender. |
153 |
|
|
154 |
|
* Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set |
155 |
|
to fullfil information needed for PrinterRenderer. |
156 |
|
(MapCanvas.Export): New. Export Map (currently only to WMF on Win32). |
157 |
|
(MapCanvas.Print): Adapted to new MapPrintout. |
158 |
|
(OutputTransform): General calculations to transform from canvas |
159 |
|
coordinates to export/printing devices. |
160 |
|
|
161 |
|
* Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also |
162 |
|
new method_command to call ExportMap, with platform dependency (only |
163 |
|
__WXMSW__) |
164 |
|
|
165 |
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size |
166 |
|
of scalebar drawing area as new parameters. |
167 |
|
|
168 |
|
* Thuban/Model/scalebar.py (roundInterval): round long instead of int |
169 |
|
|
170 |
|
* Thuban/UI/legend.py (ScalebarBitmap.__SetScale): |
171 |
|
Update to extended scalebar.DrawScalebar header. |
172 |
|
|
173 |
|
* test/test_export.py: New, test Thuban.UI.view.OutputTransform() |
174 |
|
|
175 |
|
* test/test_scalebar.py: Made test executable as standalone. |
176 |
|
|
177 |
|
2003-05-16 Bernhard Herzog <[email protected]> |
178 |
|
|
179 |
|
* Thuban/Model/table.py (Table): Remove this compatibility alias |
180 |
|
for DBFTable. |
181 |
|
|
182 |
|
* test/test_table.py: Import DBFTable as Table because that alias |
183 |
|
doesn't exist anymore. |
184 |
|
|
185 |
|
* Thuban/UI/classgen.py: Remove some unused imports |
186 |
|
|
187 |
|
2003-05-14 Jonathan Coles <[email protected]> |
188 |
|
|
189 |
|
* Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList): |
190 |
|
Fix docstring. |
191 |
|
(ClassGenerator.GenUniformDistribution): Fix spelling of method name. |
192 |
|
(ClassGenerator.GenQuantiles): Use the left/right brackets and min/max |
193 |
|
values of the supplied range to determine the beginning and end |
194 |
|
bounds of the generated classes. |
195 |
|
|
196 |
|
* Thuban/Model/range.py (Range.number_re): Now accepts floats that |
197 |
|
do not have a leading 0 (.5 is now accepted as well as 0.5). |
198 |
|
|
199 |
|
* Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method |
200 |
|
call to ClassGenerator.GenUniformDistribution. |
201 |
|
|
202 |
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows |
203 |
|
layout bug with the 'Projection' label. |
204 |
|
|
205 |
|
* test/support.py (FloatTestCase): New. Needed for the Range tests. |
206 |
|
|
207 |
|
* test/test_range.py: New. Imported from SciParam. |
208 |
|
|
209 |
|
2003-05-12 Jonathan Coles <[email protected]> |
210 |
|
|
211 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call |
212 |
|
to table.UniqueValues() with calls that retrieve all the values |
213 |
|
from the table. This will need to be replaced by a method on table |
214 |
|
which can simply return the list (perhaps more efficiently). |
215 |
|
|
216 |
2003-05-12 Jonathan Coles <[email protected]> |
2003-05-12 Jonathan Coles <[email protected]> |
217 |
|
|
218 |
The return value of ClassGenerator.CalculateQuantiles has changed. |
The return value of ClassGenerator.CalculateQuantiles has changed. |