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