/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2558 by jonathan, Mon Feb 7 19:51:13 2005 UTC revision 2597 by bh, Thu Apr 7 19:46:29 2005 UTC
# Line 1  Line 1 
1    2005-04-07  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
4            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
5            ClassGrid.__init__ and it's value is outside of the valid
6            range (must be < 32768).  wxPython 2.5 complains about it with an
7            exception.
8    
9    2005-04-05  Jan-Oliver Wagner <[email protected]>
10    
11            * Doc/manual/thuban-manual-de.xml: More translations.
12    
13    2005-04-05  Bernhard Herzog  <[email protected]>
14    
15            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
16            wxPython 2.4 as well.  Also, remove a now obsolete comment.
17    
18    2005-04-05  Bernhard Herzog  <[email protected]>
19    
20            Use wxPython.h by default but provide a workaround when it isn't
21            available.
22    
23            * setup.py (wxproj_extension): New variable.  Assign the Extension
24            instance for Lib.wxproj to this variable instead of putting it
25            directly into the listso that it can be accessed by other code
26            later.
27            (thuban_build_ext.user_options): Added boolean option
28            --use-wx-python-swig-hack.
29            (thuban_build_ext.initialize_options): Initialize the new option
30            to False.
31            (thuban_build_ext.finalize_options): If the new option was given,
32            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
33            (thuban_build_ext): Update the doc-string
34    
35            * libraries/thuban/wxproj.cpp: Normally we use
36            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
37            defined, use swigPtrConvertHack.h instead.
38    
39            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
40            copied over from wxPython.h.
41            (decode_pointer_new): New.  Equivalent of decode_pointer for
42            wxPython 2.5.
43            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
44    
45            * README: Add section on potential build problems which explains
46            how the work-around for a missing wxPython.h is activated.
47    
48    2005-03-29  Bernhard Herzog  <[email protected]>
49    
50            * test/postgissupport.py (find_postgis_sql): Added yet another
51            potential location for (lw)postgis.sql because the file has moved
52            again in postgis 1.0.0 rc4.
53    
54    2005-03-29  Bernhard Herzog  <[email protected]>
55    
56            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
57            match the site of the legend_icon_layer icon.  Otherwise wxpython
58            2.5 complains when the legend is created with the error:
59    
60            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
61            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
62            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
63            in wxImageList: this might work on this platform but definitely
64            won't under Windows.
65    
66    2005-03-23  Jonathan Coles <[email protected]>
67    
68            These changes add support for adjusting the opacity of a raster layer.
69    
70            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
71            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
72            a LAYER_CHANGED event if the opacity actually changes.
73    
74            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
75            layer parameter needed in the implementation of this method in
76            renderer.py.
77    
78            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
79            typo 00 -> 0.
80    
81            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
82            control to adjust opacity.
83    
84            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
85            alpha data based on the opacity level of the layer.
86    
87            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
88            accepts a layer parameter.
89    
90            * test/test_layer.py (TestLayerModification.test_raster_layer):
91            Rename opacity method calls and add test for LAYER_CHANGED.
92    
93    2005-03-16  Bernhard Herzog  <[email protected]>
94    
95            * test/test_connector.py (DeletionTestMixin.check_deletions)
96            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
97            update the callers.
98    
99    2005-03-14  Jan-Oliver Wagner <[email protected]>
100    
101            * Doc/manual/thuban-manual-de.xml: More translations.
102    
103    2005-03-10  Jan-Oliver Wagner <[email protected]>
104    
105            Introducing initialization callbacks for extensions.
106    
107            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
108            optional parameter init_callback.
109            (ExtensionDesc.init_ext): New. Executes the callback and sets
110            a status.
111    
112            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
113            initialization of the extensions.
114            (ThubanApplication.init_extensions): Init all extensions.
115    
116            * Thuban/UI/about.py (About.__init__): Added status of the extensions
117            to the about text.
118    
119            * Extensions/gns2shp/__init__.py: Added init method for Extension
120            description.
121            (init): New. Contains the initialization of the module.
122    
123    2005-03-04  Nina H�ffmeyer <[email protected]>
124    
125            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
126            OGRConnection to open a datasource. Removed dialog to display all
127            available drivers. Added some doc strings.
128    
129            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
130            OGRDatasource with a string. Added two opening methods which return an
131            OGRDatasource (either data from file or from DB).
132    
133            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
134            represents a geometry reference of an OGRFeature. OGRShape now has a
135            list of referenced geometry objects (important for geometry
136            collections).
137            For OGRShapeStores loaded from a DB an ID column can be specified now.
138    
139    2005-02-22  Jan-Oliver Wagner <[email protected]>
140    
141            * test/test_map.py (TestMapWithContents.test_tree_info):
142            Added label layer for comparison.
143    
144    2005-02-18  Jonathan Coles <[email protected]>
145    
146            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
147            which builds a mask. Handle the majority of an image in a loop,
148            creating 8 bits at a time. Later, handle the edge case where less
149            than 8 bits are packed.
150    
151    2005-02-18  Bernhard Herzog  <[email protected]>
152    
153            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
154            doc-string
155    
156    2005-02-18  Jonathan Coles <[email protected]>
157    
158            * setup.py: Remove wx_cs_params from gdal compile options.
159    
160    2005-02-18  Jonathan Coles <[email protected]>
161    
162            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
163            dependencies on wxPython. Added a new method projected_raster_layer()
164            that returns a raster layer image in projected space. This must be
165            implemented in classes derived from BaseRenderer. This also eliminates
166            the dependency on gdal in baserenderer.py.
167    
168            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
169            new projected_raster_layer() to get projected raster image instead
170            of directly calling ProjectRasterFile().
171            (BaseRenderer.projected_raster_layer): New. This must be implemented
172            by derived classes. It takes almost the same arguments as ProjectRasterFile
173            did and returns a projected image with mask and alpha data (if requested).
174            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
175            that check will be done in MapRenderer.projected_raster_layer(). This
176            also allows other implementations to use different projection code.
177    
178            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
179            Implementation of BaseRenderer.projected_raster_layer. Checks for
180            gdal support and wxPython version. Also handles exceptions from
181            ProjectRasterFile.
182    
183            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
184            and added a variable which can be set through the options argument
185            of ProjectRasterFile.
186    
187            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
188            Calls ProjectRasterFile and returns the result.
189            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
190            of calling projected_raster_layer() with different options.
191            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
192            wxPython version and all tests of masks and alpha channels. These are
193            now in test_projected_raster_layer().
194    
195    2005-02-17  Jan-Oliver Wagner <[email protected]>
196    
197            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
198            doc-strings to comply with coding_guidelines.
199    
200    2005-02-17  Jan-Oliver Wagner <[email protected]>
201    
202            Docstring improvements and minor fixes for labellayer.
203    
204            * Thuban/Model/map.py:
205            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
206            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
207            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
208            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
209            doc string.
210            (Map.BoundingBox): Removed superfluous test for label_layer
211            and improved doc string.
212            (Map.TreeInfo): Added label_layer and improved sdo string.
213    
214            * Thuban/Model/label.py: Added import of _.
215            (Label, Label.__init__): Improved/added doc string.
216            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
217            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
218            Improved/added doc string.
219            (LabelLayer.AddLabel): Use already defined names for
220            align strings and improved doc string.
221            (LabelLayer.TreeInfo): New. Return the object data for
222            the tree view.
223    
224    2005-02-16  Jonathan Coles <[email protected]>
225    
226            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
227            so that that wxproj doesn't crash. Added GUI support for selecting
228            alpha channel (opacity can't be selected yet).
229    
230            NOTE: If wxPython.h is including in future distribution packages
231            then it will not be necessary to have the files swigPtrConvertHack.h
232            and wxPython_int.h included with Thuban. This is hopefully
233            a temporary workaround.
234    
235            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
236            access to the macro wxCHECK_VERSION so that it will properly
237            generate a bit mask. There was a problem between wx2.4 and wx2.5
238            that this works around.
239    
240            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
241            of RasterLayer.MaskType.
242            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
243            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
244            specify none, a bitmap, or an alpha channel.
245            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
246    
247            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
248            Set the raster warping options for the mask based on the value
249            of RasterLayer.MaskType.
250    
251            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
252            deprecated calls to SetItemSelectedImage in favor of SetItemImage
253            with wxTreeItemIcon_Selected.
254    
255            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
256            an alpha channel for the mask.
257    
258            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
259            data if it is available and an alpha channel is supported under
260            the current version of wxPython.
261    
262            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
263            to select whether 1's or 0's select the desired portion of an image
264            in the bit mask. wx2.4 has a bug where the documentation is the opposite
265            from behavior.
266            (ProjectRasterFile): Only generate an alpha channel if the version
267            of wxPython is >= 2.5.3.
268    
269            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
270            When wxPython >= 2.5.3 use the special swig functions to decode an
271            object's address.
272    
273            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
274            based on the version of wxPython. If >= 2.5.3 use the special swig
275            functions from wxPython to decode wxPython objects, otherwise use
276            the old method of retrieving the address from the object __repr__ string.
277    
278            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
279            Unnecessary code was removed to make it smaller.
280    
281            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
282            Add tests for returning an alpha channel.
283    
284            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
285            tests that used removed functions UseMask and SetUseMask
286    
287    
288    2005-02-08  Bernhard Herzog  <[email protected]>
289    
290            More wxPython 2.5 changes.  This time taken from a patch from
291            Daniel Calvelo Aros.
292    
293            * Thuban/UI/tableview.py (QueryTableFrame.__init__)
294            (QueryTableFrame.__init__): Pass the size of a spacer as a single
295            item.
296    
297            * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
298            (ProjFrame.build_dialog): Pass the size of a spacer as a single
299            item.
300    
301            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
302            size of a spacer as a single item.
303    
304            * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
305            size of a spacer as a single item.
306    
307    2005-02-08  Bernhard Herzog  <[email protected]>
308    
309            Compatibility with wxPython 2.5.  The changes should make it work
310            better with 2.5 while still keeping compatibility with 2.4.  There
311            are still problems with 2.5, though.
312    
313            * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
314            of a spacer as a single item.
315    
316            * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
317            from wxControl
318    
319            * Thuban/UI/legend.py (LegendTree): When running with wxPython <
320            2.5, add an implementation of the GetFirstChild method that does
321            not require the second parameter.
322            (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
323            (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
324            (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
325            pass the second parameter to GetFirstChild
326    
327    2005-02-08  Nina H�ffmeyer <[email protected]>
328    
329            * Extensions/ogr/ogrshapes.py: Removed some print commands.
330    
331            * Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an
332            additional menu but appears as a possibility in the menu Map.
333    
334  2005-02-07  Jonathan Coles <[email protected]>  2005-02-07  Jonathan Coles <[email protected]>
335          * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR          * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR
336          and PYTHON_ERRF since they were no longer necessary.          and PYTHON_ERRF since they were no longer necessary.

Legend:
Removed from v.2558  
changed lines
  Added in v.2597

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26