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

Legend:
Removed from v.2552  
changed lines
  Added in v.2612

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26