/[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 2561 by bh, Tue Feb 8 20:34:29 2005 UTC revision 2642 by bh, Fri Jul 1 20:49:04 2005 UTC
# Line 1  Line 1 
1    2005-07-01  Bernhard Herzog  <[email protected]>
2    
3            First step towards unicode.  With this roughly we're at step 1
4            string_representation.txt
5    
6            * Doc/technotes/string_representation.txt: New.  Document how
7            strings are represented in Thuban and how to get to a Unicode
8            Thuban.
9    
10            * Thuban/__init__.py (set_internal_encoding)
11            (unicode_from_internal, internal_from_unicode): New. The first few
12            functions for the internal string representation
13    
14            * Thuban/UI/about.py (unicodeToLocale): Removed.  Use
15            internal_from_unicode instead.
16    
17            * Thuban/UI/__init__.py (install_wx_translation): Determine the
18            encoding to use for the internal string representation.  Also,
19            change the translation function to return strings in internal
20            representation even on unicode builds of wxPython
21    
22            * Thuban/Model/load.py (SessionLoader.check_attrs): Decode
23            filenames too.
24            (SessionLoader.start_clrange): Use check_attrs to decode and check
25            the attributes.
26    
27            * Thuban/Model/xmlreader.py (XMLReader.encode): Use
28            internal_from_unicode to convert unicode strings.
29    
30            * Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
31            unicode_from_internal when applicable
32    
33            * test/runtests.py (main): New command line option:
34            internal-encoding to specify the internal string encoding to use
35            in the tests.
36    
37            * test/support.py (initthuban): Set the internal encoding to
38            latin-1
39    
40            * test/test_load.py (TestSingleLayer.test, TestClassification.test)
41            (TestLabelLayer.test): Use the internal string representation when
42            dealing with non-ascii characters
43    
44            * test/test_load_1_0.py (TestSingleLayer.test)
45            (TestClassification.test, TestLabelLayer.test): Use the internal
46            string representation when dealing with non-ascii characters
47    
48            * test/test_load_0_9.py (TestSingleLayer.test)
49            (TestClassification.test): Use the internal string representation
50            when dealing with non-ascii characters
51    
52            * test/test_load_0_8.py (TestUnicodeStrings.test): Use the
53            internal string representation when dealing with non-ascii
54            characters
55    
56            * test/test_save.py (XMLWriterTest.testEncode)
57            (SaveSessionTest.testClassifiedLayer): Use the internal string
58            representation when dealing with non-ascii characters where
59            applicable
60    
61    2005-06-30  Bernhard Herzog  <[email protected]>
62    
63            * test/runtests.py: Untabify.
64    
65    2005-06-30  Bernhard Herzog  <[email protected]>
66    
67            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
68            untabify.
69    
70    2005-06-30  Bernhard Herzog  <[email protected]>
71    
72            * Extensions/ogr/test/__init__.py: Add missing coding directive
73    
74    2005-06-28  Jan-Oliver Wagner <[email protected]>
75    
76            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
77            Use the default size for rendering selected items of default type.
78            Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
79    
80    2005-06-28  Jan-Oliver Wagner <[email protected]>
81    
82            * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
83            (APR_TClr.GetThubanColor): Fix bug in color interpretation.
84            Thanks to Frank Koormann who identified this problem.
85    
86            * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
87            another symbol identified.
88    
89    2005-06-27  Jan-Oliver Wagner <[email protected]>
90    
91            * Doc/manual/thuban-manual-de.xml: More translations.
92    
93    2005-05-12  Jonathan Coles <[email protected]>
94            
95            * Thuban/UI/projdialog.py: Add missing import, which led to an
96            exception when opening a layer's projection.
97    
98    2005-05-09  Bernhard Herzog  <[email protected]>
99    
100            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
101    
102    2005-05-09  Bernhard Herzog  <[email protected]>
103    
104            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
105            connection to autoconnect.  Fixes RT#3148.
106    
107            * test/test_postgis_db.py
108            (TestPostGISSpecialCases.test_simple_error_handling): New test
109            that attempts to reproduce RT#3148.
110    
111    2005-05-06  Jonathan Coles <[email protected]>
112    
113            Add support for saving and loading the opacity and mask type
114            properties of RasterLayers. Also add support for proper use
115            of alpha information while drawing images not in 'RAW' format.
116            If transparency in an image format (e.g, PNG) is supported by
117            wxWidgets then the image would previously have been draw with
118            transparent regions, but the opaque regions would have been
119            unaffected by a change in the layer's opacity. This patch
120            corrects the problem.
121    
122            * Thuban/Model/layer.py (RasterLayer): Added opacity and
123            masktype parameters to the constructor, and set the
124            appropriate variables to those values.
125    
126            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
127            code to read the opacity and mask type of the layer and construct
128            a new layer with the additional parameters.
129    
130            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
131            to save the opacity and mask type of a layer.
132    
133            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
134            the opacity of the layer to draw_raster_data rather than the layer.
135            (BaseRenderer.draw_raster_data): Remove the layer parameter because
136            the function doesn't need to know about the layer. Add the optional
137            opacity parameter whose default is 1.0. Add 'PNG' as a supported
138            graphics format.
139    
140            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
141            signature to match that in BaseRenderer. Use the new opacity argument
142            in place of calling layer.Opacity(). In the case where the
143            format is not 'RAW', alpha_data is None and the loaded image has
144            alpha information, use the file's alpha information. This is
145            still subject to the layer's opacity setting.
146    
147            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
148            Fixed signature to match that in BaseRenderer.
149    
150            * test/test_load.py (TestRasterLayer): Change file_contents to
151            include opacity and masktype variables.
152            (TestRasterLayer.test): Include tests for opacity and masktype
153            changes.
154    
155            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
156            test to cover a variety of combinations of masktype and opacity
157            settings.
158    
159    2005-05-02  Jan-Oliver Wagner <[email protected]>
160    
161            * debian/rules: add --use-wx-python-swig-hack
162            to the build command.
163            Thanks to Moritz Lennert for pointing this out.
164    
165    2005-04-28  Jan-Oliver Wagner <[email protected]>
166    
167            Introduce OGRFileShapeStore in ogr extension.
168            This allows at least that loaded shapefile shape stores
169            can be saved correctly in the thuban session file
170            and reloaded again (reload is via core shapefile
171            routine, not OGR). For other types, .thuban files
172            can not be reloaded for the time being.
173    
174            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
175            class ist to be used for any file-based shape stores
176            accessed through OGR.
177    
178            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
179            forgotten _ for i18n. Adapted call OpenFileShapestore
180            regarding new parameter.
181            (OpenFileShapestore): Use OGRFileShapeStore instead of
182            OGRShapeStore. Fix return value (None instead of null).
183            Add new parameter "mainwindow" to avoid accessing global
184            context.
185    
186    2005-04-27  Jan-Oliver Wagner <[email protected]>
187    
188            Introduce FileShapeStore as generalization for
189            file-based shape stores. In a first instance
190            this allows additional modules to handle shapefile
191            format as well, namely the OGR extension.
192    
193            * Thuban/Model/data.py: Various small fixes in doc-strings.
194            (FileShapeStore): New class.
195            (ShapefileStore): Derive from FileShapeStore.
196            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
197            rename self.table to self._table, initialize self._bbox
198            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
199            and self.FileName() instead of self.filename.
200            (ShapefileStore.Table): Use self._table instead of self.table.
201            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
202            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
203    
204            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
205            (SessionSaver.write_data_containers): Only use methods of the
206            base class FileShapeStore.
207    
208    2005-04-26  Martin Schulze  <[email protected]>
209    
210            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
211            function to the modified render engine
212    
213    2005-04-25  Martin Schulze  <[email protected]>
214    
215            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
216            Added a description according to the CVS log message
217    
218    2005-04-23  Martin Schulze  <[email protected]>
219    
220            * Thuban/UI/renderer.py: Added a missing import
221    
222    2005-04-23  Russell Nelson  <[email protected]>
223    
224            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
225            way the previous tool is remembered, so that middle-button
226            panning works even if you haven't selected a tool.
227    
228    2005-04-11  Bernhard Herzog  <[email protected]>
229    
230            * libraries/thuban/wxproj.cpp: Move the compatibility code that
231            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
232            branch that includes wxPython.h because it's only needed when
233            wxPython.h is used.  Also, it won't compile when
234            USE_WX_PYTHON_SWIG_HACK is set otherwise.
235    
236    2005-04-07  Bernhard Herzog  <[email protected]>
237    
238            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
239            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
240            ClassGrid.__init__ and it's value is outside of the valid
241            range (must be < 32768).  wxPython 2.5 complains about it with an
242            exception.
243    
244    2005-04-05  Jan-Oliver Wagner <[email protected]>
245    
246            * Doc/manual/thuban-manual-de.xml: More translations.
247    
248    2005-04-05  Bernhard Herzog  <[email protected]>
249    
250            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
251            wxPython 2.4 as well.  Also, remove a now obsolete comment.
252    
253    2005-04-05  Bernhard Herzog  <[email protected]>
254    
255            Use wxPython.h by default but provide a workaround when it isn't
256            available.
257    
258            * setup.py (wxproj_extension): New variable.  Assign the Extension
259            instance for Lib.wxproj to this variable instead of putting it
260            directly into the listso that it can be accessed by other code
261            later.
262            (thuban_build_ext.user_options): Added boolean option
263            --use-wx-python-swig-hack.
264            (thuban_build_ext.initialize_options): Initialize the new option
265            to False.
266            (thuban_build_ext.finalize_options): If the new option was given,
267            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
268            (thuban_build_ext): Update the doc-string
269    
270            * libraries/thuban/wxproj.cpp: Normally we use
271            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
272            defined, use swigPtrConvertHack.h instead.
273    
274            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
275            copied over from wxPython.h.
276            (decode_pointer_new): New.  Equivalent of decode_pointer for
277            wxPython 2.5.
278            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
279    
280            * README: Add section on potential build problems which explains
281            how the work-around for a missing wxPython.h is activated.
282    
283    2005-03-29  Bernhard Herzog  <[email protected]>
284    
285            * test/postgissupport.py (find_postgis_sql): Added yet another
286            potential location for (lw)postgis.sql because the file has moved
287            again in postgis 1.0.0 rc4.
288    
289    2005-03-29  Bernhard Herzog  <[email protected]>
290    
291            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
292            match the site of the legend_icon_layer icon.  Otherwise wxpython
293            2.5 complains when the legend is created with the error:
294    
295            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
296            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
297            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
298            in wxImageList: this might work on this platform but definitely
299            won't under Windows.
300    
301    2005-03-23  Jonathan Coles <[email protected]>
302    
303            These changes add support for adjusting the opacity of a raster layer.
304    
305            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
306            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
307            a LAYER_CHANGED event if the opacity actually changes.
308    
309            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
310            layer parameter needed in the implementation of this method in
311            renderer.py.
312    
313            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
314            typo 00 -> 0.
315    
316            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
317            control to adjust opacity.
318    
319            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
320            alpha data based on the opacity level of the layer.
321    
322            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
323            accepts a layer parameter.
324    
325            * test/test_layer.py (TestLayerModification.test_raster_layer):
326            Rename opacity method calls and add test for LAYER_CHANGED.
327    
328    2005-03-16  Bernhard Herzog  <[email protected]>
329    
330            * test/test_connector.py (DeletionTestMixin.check_deletions)
331            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
332            update the callers.
333    
334    2005-03-14  Jan-Oliver Wagner <[email protected]>
335    
336            * Doc/manual/thuban-manual-de.xml: More translations.
337    
338    2005-03-10  Jan-Oliver Wagner <[email protected]>
339    
340            Introducing initialization callbacks for extensions.
341    
342            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
343            optional parameter init_callback.
344            (ExtensionDesc.init_ext): New. Executes the callback and sets
345            a status.
346    
347            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
348            initialization of the extensions.
349            (ThubanApplication.init_extensions): Init all extensions.
350    
351            * Thuban/UI/about.py (About.__init__): Added status of the extensions
352            to the about text.
353    
354            * Extensions/gns2shp/__init__.py: Added init method for Extension
355            description.
356            (init): New. Contains the initialization of the module.
357    
358    2005-03-04  Nina H�ffmeyer <[email protected]>
359    
360            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
361            OGRConnection to open a datasource. Removed dialog to display all
362            available drivers. Added some doc strings.
363    
364            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
365            OGRDatasource with a string. Added two opening methods which return an
366            OGRDatasource (either data from file or from DB).
367    
368            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
369            represents a geometry reference of an OGRFeature. OGRShape now has a
370            list of referenced geometry objects (important for geometry
371            collections).
372            For OGRShapeStores loaded from a DB an ID column can be specified now.
373    
374    2005-02-22  Jan-Oliver Wagner <[email protected]>
375    
376            * test/test_map.py (TestMapWithContents.test_tree_info):
377            Added label layer for comparison.
378    
379    2005-02-18  Jonathan Coles <[email protected]>
380    
381            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
382            which builds a mask. Handle the majority of an image in a loop,
383            creating 8 bits at a time. Later, handle the edge case where less
384            than 8 bits are packed.
385    
386    2005-02-18  Bernhard Herzog  <[email protected]>
387    
388            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
389            doc-string
390    
391    2005-02-18  Jonathan Coles <[email protected]>
392    
393            * setup.py: Remove wx_cs_params from gdal compile options.
394    
395    2005-02-18  Jonathan Coles <[email protected]>
396    
397            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
398            dependencies on wxPython. Added a new method projected_raster_layer()
399            that returns a raster layer image in projected space. This must be
400            implemented in classes derived from BaseRenderer. This also eliminates
401            the dependency on gdal in baserenderer.py.
402    
403            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
404            new projected_raster_layer() to get projected raster image instead
405            of directly calling ProjectRasterFile().
406            (BaseRenderer.projected_raster_layer): New. This must be implemented
407            by derived classes. It takes almost the same arguments as ProjectRasterFile
408            did and returns a projected image with mask and alpha data (if requested).
409            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
410            that check will be done in MapRenderer.projected_raster_layer(). This
411            also allows other implementations to use different projection code.
412    
413            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
414            Implementation of BaseRenderer.projected_raster_layer. Checks for
415            gdal support and wxPython version. Also handles exceptions from
416            ProjectRasterFile.
417    
418            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
419            and added a variable which can be set through the options argument
420            of ProjectRasterFile.
421    
422            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
423            Calls ProjectRasterFile and returns the result.
424            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
425            of calling projected_raster_layer() with different options.
426            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
427            wxPython version and all tests of masks and alpha channels. These are
428            now in test_projected_raster_layer().
429    
430    2005-02-17  Jan-Oliver Wagner <[email protected]>
431    
432            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
433            doc-strings to comply with coding_guidelines.
434    
435    2005-02-17  Jan-Oliver Wagner <[email protected]>
436    
437            Docstring improvements and minor fixes for labellayer.
438    
439            * Thuban/Model/map.py:
440            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
441            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
442            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
443            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
444            doc string.
445            (Map.BoundingBox): Removed superfluous test for label_layer
446            and improved doc string.
447            (Map.TreeInfo): Added label_layer and improved sdo string.
448    
449            * Thuban/Model/label.py: Added import of _.
450            (Label, Label.__init__): Improved/added doc string.
451            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
452            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
453            Improved/added doc string.
454            (LabelLayer.AddLabel): Use already defined names for
455            align strings and improved doc string.
456            (LabelLayer.TreeInfo): New. Return the object data for
457            the tree view.
458    
459    2005-02-16  Jonathan Coles <[email protected]>
460    
461            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
462            so that that wxproj doesn't crash. Added GUI support for selecting
463            alpha channel (opacity can't be selected yet).
464    
465            NOTE: If wxPython.h is including in future distribution packages
466            then it will not be necessary to have the files swigPtrConvertHack.h
467            and wxPython_int.h included with Thuban. This is hopefully
468            a temporary workaround.
469    
470            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
471            access to the macro wxCHECK_VERSION so that it will properly
472            generate a bit mask. There was a problem between wx2.4 and wx2.5
473            that this works around.
474    
475            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
476            of RasterLayer.MaskType.
477            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
478            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
479            specify none, a bitmap, or an alpha channel.
480            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
481    
482            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
483            Set the raster warping options for the mask based on the value
484            of RasterLayer.MaskType.
485    
486            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
487            deprecated calls to SetItemSelectedImage in favor of SetItemImage
488            with wxTreeItemIcon_Selected.
489    
490            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
491            an alpha channel for the mask.
492    
493            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
494            data if it is available and an alpha channel is supported under
495            the current version of wxPython.
496    
497            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
498            to select whether 1's or 0's select the desired portion of an image
499            in the bit mask. wx2.4 has a bug where the documentation is the opposite
500            from behavior.
501            (ProjectRasterFile): Only generate an alpha channel if the version
502            of wxPython is >= 2.5.3.
503    
504            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
505            When wxPython >= 2.5.3 use the special swig functions to decode an
506            object's address.
507    
508            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
509            based on the version of wxPython. If >= 2.5.3 use the special swig
510            functions from wxPython to decode wxPython objects, otherwise use
511            the old method of retrieving the address from the object __repr__ string.
512    
513            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
514            Unnecessary code was removed to make it smaller.
515    
516            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
517            Add tests for returning an alpha channel.
518    
519            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
520            tests that used removed functions UseMask and SetUseMask
521    
522    
523  2005-02-08  Bernhard Herzog  <[email protected]>  2005-02-08  Bernhard Herzog  <[email protected]>
524    
525          More wxPython 2.5 changes.  This time taken from a patch from          More wxPython 2.5 changes.  This time taken from a patch from

Legend:
Removed from v.2561  
changed lines
  Added in v.2642

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26