1 |
|
2005-03-10 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
Introducing initialization callbacks for extensions. |
4 |
|
|
5 |
|
* Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added |
6 |
|
optional parameter init_callback. |
7 |
|
(ExtensionDesc.init_ext): New. Executes the callback and sets |
8 |
|
a status. |
9 |
|
|
10 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit): Add the |
11 |
|
initialization of the extensions. |
12 |
|
(ThubanApplication.init_extensions): Init all extensions. |
13 |
|
|
14 |
|
* Thuban/UI/about.py (About.__init__): Added status of the extensions |
15 |
|
to the about text. |
16 |
|
|
17 |
|
* Extensions/gns2shp/__init__.py: Added init method for Extension |
18 |
|
description. |
19 |
|
(init): New. Contains the initialization of the module. |
20 |
|
|
21 |
|
2005-03-04 Nina H�ffmeyer <[email protected]> |
22 |
|
|
23 |
|
* Extensions/ogr/ogrdialog.py: Added a dialog, which asks for |
24 |
|
OGRConnection to open a datasource. Removed dialog to display all |
25 |
|
available drivers. Added some doc strings. |
26 |
|
|
27 |
|
* Extensions/ogr/ogrstart.py: Added menu entry for opening an |
28 |
|
OGRDatasource with a string. Added two opening methods which return an |
29 |
|
OGRDatasource (either data from file or from DB). |
30 |
|
|
31 |
|
* Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which |
32 |
|
represents a geometry reference of an OGRFeature. OGRShape now has a |
33 |
|
list of referenced geometry objects (important for geometry |
34 |
|
collections). |
35 |
|
For OGRShapeStores loaded from a DB an ID column can be specified now. |
36 |
|
|
37 |
|
2005-02-22 Jan-Oliver Wagner <[email protected]> |
38 |
|
|
39 |
|
* test/test_map.py (TestMapWithContents.test_tree_info): |
40 |
|
Added label layer for comparison. |
41 |
|
|
42 |
|
2005-02-18 Jonathan Coles <[email protected]> |
43 |
|
|
44 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop |
45 |
|
which builds a mask. Handle the majority of an image in a loop, |
46 |
|
creating 8 bits at a time. Later, handle the edge case where less |
47 |
|
than 8 bits are packed. |
48 |
|
|
49 |
|
2005-02-18 Bernhard Herzog <[email protected]> |
50 |
|
|
51 |
|
* test/test_baserenderer.py (TestBaseRenderer.setUp): Fix |
52 |
|
doc-string |
53 |
|
|
54 |
|
2005-02-18 Jonathan Coles <[email protected]> |
55 |
|
|
56 |
|
* setup.py: Remove wx_cs_params from gdal compile options. |
57 |
|
|
58 |
|
2005-02-18 Jonathan Coles <[email protected]> |
59 |
|
|
60 |
|
Refactored baserenderer.py and renderer.py to remove baserenderer.py's |
61 |
|
dependencies on wxPython. Added a new method projected_raster_layer() |
62 |
|
that returns a raster layer image in projected space. This must be |
63 |
|
implemented in classes derived from BaseRenderer. This also eliminates |
64 |
|
the dependency on gdal in baserenderer.py. |
65 |
|
|
66 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call |
67 |
|
new projected_raster_layer() to get projected raster image instead |
68 |
|
of directly calling ProjectRasterFile(). |
69 |
|
(BaseRenderer.projected_raster_layer): New. This must be implemented |
70 |
|
by derived classes. It takes almost the same arguments as ProjectRasterFile |
71 |
|
did and returns a projected image with mask and alpha data (if requested). |
72 |
|
(BaseRenderer.render_map_incrementally): Remove the check for gdal since |
73 |
|
that check will be done in MapRenderer.projected_raster_layer(). This |
74 |
|
also allows other implementations to use different projection code. |
75 |
|
|
76 |
|
* Thuban/UI/renderer.py (MapRenderer.projected_raster_layer): |
77 |
|
Implementation of BaseRenderer.projected_raster_layer. Checks for |
78 |
|
gdal support and wxPython version. Also handles exceptions from |
79 |
|
ProjectRasterFile. |
80 |
|
|
81 |
|
* libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions |
82 |
|
and added a variable which can be set through the options argument |
83 |
|
of ProjectRasterFile. |
84 |
|
|
85 |
|
* test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New. |
86 |
|
Calls ProjectRasterFile and returns the result. |
87 |
|
(TestBaseRenderer.test_projected_raster_layer): New. Tests the results |
88 |
|
of calling projected_raster_layer() with different options. |
89 |
|
(TestBaseRenderer.test_raster_no_projection): Removed tests based on |
90 |
|
wxPython version and all tests of masks and alpha channels. These are |
91 |
|
now in test_projected_raster_layer(). |
92 |
|
|
93 |
|
2005-02-17 Jan-Oliver Wagner <[email protected]> |
94 |
|
|
95 |
|
* Thuban/Model/map.py, Thuban/Model/label.py: Fixed |
96 |
|
doc-strings to comply with coding_guidelines. |
97 |
|
|
98 |
|
2005-02-17 Jan-Oliver Wagner <[email protected]> |
99 |
|
|
100 |
|
Docstring improvements and minor fixes for labellayer. |
101 |
|
|
102 |
|
* Thuban/Model/map.py: |
103 |
|
(Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers, |
104 |
|
Map.Layers, Map.HasLayers, Map.MoveLayerToTop, |
105 |
|
Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom, |
106 |
|
Map.ProjectedBoundingBox, Map.GetProjection): Improved/added |
107 |
|
doc string. |
108 |
|
(Map.BoundingBox): Removed superfluous test for label_layer |
109 |
|
and improved doc string. |
110 |
|
(Map.TreeInfo): Added label_layer and improved sdo string. |
111 |
|
|
112 |
|
* Thuban/Model/label.py: Added import of _. |
113 |
|
(Label, Label.__init__): Improved/added doc string. |
114 |
|
(LabelLayer, LabelLayer.__init__, LabelLayer.Labels, |
115 |
|
LabelLayer.RemoveLabel, LabelLayer.ClearLabels): |
116 |
|
Improved/added doc string. |
117 |
|
(LabelLayer.AddLabel): Use already defined names for |
118 |
|
align strings and improved doc string. |
119 |
|
(LabelLayer.TreeInfo): New. Return the object data for |
120 |
|
the tree view. |
121 |
|
|
122 |
|
2005-02-16 Jonathan Coles <[email protected]> |
123 |
|
|
124 |
|
Further wxPython 2.5 changes using patches from Daniel Calvelo Aros |
125 |
|
so that that wxproj doesn't crash. Added GUI support for selecting |
126 |
|
alpha channel (opacity can't be selected yet). |
127 |
|
|
128 |
|
NOTE: If wxPython.h is including in future distribution packages |
129 |
|
then it will not be necessary to have the files swigPtrConvertHack.h |
130 |
|
and wxPython_int.h included with Thuban. This is hopefully |
131 |
|
a temporary workaround. |
132 |
|
|
133 |
|
* setup.py (thuban_build_ext.finalize_options): gdalwarp needs |
134 |
|
access to the macro wxCHECK_VERSION so that it will properly |
135 |
|
generate a bit mask. There was a problem between wx2.4 and wx2.5 |
136 |
|
that this works around. |
137 |
|
|
138 |
|
* Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor |
139 |
|
of RasterLayer.MaskType. |
140 |
|
(RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType |
141 |
|
(RasterLayer.MaskType): New. Returns the type of mask to use. Can |
142 |
|
specify none, a bitmap, or an alpha channel. |
143 |
|
(RasterLayer.SetMaskType): New. Set what kind of mask to use. |
144 |
|
|
145 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): |
146 |
|
Set the raster warping options for the mask based on the value |
147 |
|
of RasterLayer.MaskType. |
148 |
|
|
149 |
|
* Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove |
150 |
|
deprecated calls to SetItemSelectedImage in favor of SetItemImage |
151 |
|
with wxTreeItemIcon_Selected. |
152 |
|
|
153 |
|
* Thuban/UI/rasterlayerproperties.py: Support selecting to use |
154 |
|
an alpha channel for the mask. |
155 |
|
|
156 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha |
157 |
|
data if it is available and an alpha channel is supported under |
158 |
|
the current version of wxPython. |
159 |
|
|
160 |
|
* libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define |
161 |
|
to select whether 1's or 0's select the desired portion of an image |
162 |
|
in the bit mask. wx2.4 has a bug where the documentation is the opposite |
163 |
|
from behavior. |
164 |
|
(ProjectRasterFile): Only generate an alpha channel if the version |
165 |
|
of wxPython is >= 2.5.3. |
166 |
|
|
167 |
|
* libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros. |
168 |
|
When wxPython >= 2.5.3 use the special swig functions to decode an |
169 |
|
object's address. |
170 |
|
|
171 |
|
* libraries/thuban/swigPtrConvertHack.h: Includes conditional code |
172 |
|
based on the version of wxPython. If >= 2.5.3 use the special swig |
173 |
|
functions from wxPython to decode wxPython objects, otherwise use |
174 |
|
the old method of retrieving the address from the object __repr__ string. |
175 |
|
|
176 |
|
* libraries/thuban/wxPython_int.h: Copied from wxPython source. |
177 |
|
Unnecessary code was removed to make it smaller. |
178 |
|
|
179 |
|
* test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection): |
180 |
|
Add tests for returning an alpha channel. |
181 |
|
|
182 |
|
* test/test_layer.py (TestLayerModification.test_raster_layer): Fix |
183 |
|
tests that used removed functions UseMask and SetUseMask |
184 |
|
|
185 |
|
|
186 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
187 |
|
|
188 |
|
More wxPython 2.5 changes. This time taken from a patch from |
189 |
|
Daniel Calvelo Aros. |
190 |
|
|
191 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__) |
192 |
|
(QueryTableFrame.__init__): Pass the size of a spacer as a single |
193 |
|
item. |
194 |
|
|
195 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog) |
196 |
|
(ProjFrame.build_dialog): Pass the size of a spacer as a single |
197 |
|
item. |
198 |
|
|
199 |
|
* Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the |
200 |
|
size of a spacer as a single item. |
201 |
|
|
202 |
|
* Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the |
203 |
|
size of a spacer as a single item. |
204 |
|
|
205 |
|
2005-02-08 Bernhard Herzog <[email protected]> |
206 |
|
|
207 |
|
Compatibility with wxPython 2.5. The changes should make it work |
208 |
|
better with 2.5 while still keeping compatibility with 2.4. There |
209 |
|
are still problems with 2.5, though. |
210 |
|
|
211 |
|
* Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size |
212 |
|
of a spacer as a single item. |
213 |
|
|
214 |
|
* Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only |
215 |
|
from wxControl |
216 |
|
|
217 |
|
* Thuban/UI/legend.py (LegendTree): When running with wxPython < |
218 |
|
2.5, add an implementation of the GetFirstChild method that does |
219 |
|
not require the second parameter. |
220 |
|
(LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded) |
221 |
|
(LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems) |
222 |
|
(LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not |
223 |
|
pass the second parameter to GetFirstChild |
224 |
|
|
225 |
|
2005-02-08 Nina H�ffmeyer <[email protected]> |
226 |
|
|
227 |
|
* Extensions/ogr/ogrshapes.py: Removed some print commands. |
228 |
|
|
229 |
|
* Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an |
230 |
|
additional menu but appears as a possibility in the menu Map. |
231 |
|
|
232 |
|
2005-02-07 Jonathan Coles <[email protected]> |
233 |
|
* libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR |
234 |
|
and PYTHON_ERRF since they were no longer necessary. |
235 |
|
|
236 |
|
2005-02-07 Bernhard Reiter <[email protected]> |
237 |
|
* Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows): |
238 |
|
Enable translation for message string. |
239 |
|
|
240 |
|
2005-02-06 Martin Schulze <[email protected]> |
241 |
|
|
242 |
|
* Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted |
243 |
|
the arguments of the contstructor to fit the global scheme |
244 |
|
|
245 |
|
2005-01-31 Nina H�ffmeyer <[email protected]> |
246 |
|
|
247 |
|
* Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides |
248 |
|
some dialogs needed to start ogr. |
249 |
|
|
250 |
|
* Extensions/ogr/__init__.py: Changed comments to avoid encoding |
251 |
|
warnings. |
252 |
|
|
253 |
|
* Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid |
254 |
|
encoding warnings. |
255 |
|
|
256 |
2005-01-28 Jonathan Coles <[email protected]> |
2005-01-28 Jonathan Coles <[email protected]> |
257 |
|
|
258 |
* libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the |
* libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the |