/[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 2559 by nhueffme, Tue Feb 8 09:52:56 2005 UTC revision 2673 by bernhard, Wed Oct 19 08:08:29 2005 UTC
# Line 1  Line 1 
1    2005-10-18  Bernhard Reiter <[email protected]>
2    
3            Startup improved: We fail right away if the internal encoding could
4            not be determined.
5    
6            * Thuban/__init__.py (get_internal_encoding): new.
7    
8            * test/test_stringrepresentation.py (class TestInternalEncoding):
9            Preserve the internal encoding for the tests in this class.
10    
11    2005-10-17  Bernhard Reiter <[email protected]>
12    
13    
14            * test/test_stringrepresentation.py: New file, for now testing
15            that set_internal_coding() is throwing an exception for bad exceptions.
16    
17            * Thuban/__init__.py (set_internal_encoding): added a forwards
18            and backward translation, so that we fail early if the
19            internal_encoding is bad.
20    
21    2005-10-17  Bernhard Reiter <[email protected]>
22    
23            svgexport 1.0.0cvs: Fixed ARC layer writing: No filling is done.
24            You could actually get polylines with filling in between,
25            when the classification for the lines had a fill color.
26            E.g. this happens when you generate a classification from a ramp.
27    
28            * Extensions/svgexport/test/test_svgmapwriter.py:
29            New test_export_arc_no_fill(). Extend copyright notice to 2005.
30    
31            * Extensions/svgexport/svgmapwriter.py
32            (SVGRenderer.draw_shape_layer_incrementally()):
33            Setting TRANSPARENT_BRUSH for shaptype ARC.
34            Extend copyright notice to 2005.
35    
36            * Extensions/svgexport/__init__.py: Extend copyright notice to 2005.
37    
38    2005-09-08  Frank Koormann <[email protected]>
39    
40            * Doc/manual/thuban-manual.xml (Map Management): Fixed typo reported
41            by Erik (sigra.at.home.se)
42    
43    2005-08-18  Jan-Oliver Wagner <[email protected]>
44    
45            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
46            Call the right method for the default size.
47    
48    2005-08-11  Jan-Oliver Wagner <[email protected]>
49    
50            * Extensions/export_shapefile: New.
51    
52            * Extensions/export_shapefile/__init__.py: New. Initialize
53            the export_shapefile extension.
54    
55            * Extensions/export_shapefile/export_shapefile.py: New.
56            Exports a layer as a Shapefile.
57    
58    2005-08-08  Jan-Oliver Wagner <[email protected]>
59    
60            * po/de.po: String fixes. This fixes Debian bug #313843.
61    
62    2005-07-27  Jan-Oliver Wagner <[email protected]>
63    
64            Remove the attributes from the layer element in
65            .thuban files for the save routine.
66            This also solves RT bug #3149,
67            https://intevation.de/rt/webrt?serial_num=3149
68    
69            * test/test_load.py: (TestSingleLayer, TestNonAsciiColumnName,
70            TestLayerVisibility, TestSymbolSize, TestClassification, TestLabels,
71            TestLayerProjection, TestJoinedTable, TestLabelLayer): Removed
72            attributes from layer element to classification clnull element.
73    
74            * test/test_save.py (SaveSessionTest.testSingleLayer,
75            SaveSessionTest.testLayerProjection,
76            SaveSessionTest.testClassifiedLayer,
77            SaveSessionTest.test_joined_table, SaveSessionTest.test_save_postgis):
78            Removed attributes from layer element to classification clnull element.
79            (test_save_postgis.NonConnectionStore._fetch_table_information):
80            added pretending to have a shape_type.
81    
82            * Resources/XML/thuban-1.1.dtd: Make the attributes field
83            and field_type of classification optional.
84    
85            * Thuban/Model/classification.py (Classification.TreeItem.build_info):
86            Added output of size.
87    
88            * Thuban/Model/load.py (SessionLoader.start_classification):
89            Change attribute 'field' and 'field_type' from obligatory to
90            optional to allow empty classes (ie.  only with a default=clnull).
91    
92            * Thuban/Model/save.py (SessionSaver.write_layer): Don't write
93            any attributes anymore for the layer element.
94            (SessionSaver.write_classification): Even if there is no
95            classification field, still write the classification because
96            the clnull (default) symbol will not be defined anymore as
97            part of the layer element.
98    
99    2005-07-05  Bernhard Herzog  <[email protected]>
100    
101            * setup.py (setup call): Version 1.1.0
102    
103            * NEWS: Update for 1.1.0
104    
105            * MANIFEST.in: Add *.txt to files taken from Doc.  Otherwise the
106            technores won't be included
107    
108            * Thuban/UI/about.py (About.__init__): Extend copyright notice to
109            2005
110    
111            * po/de.po: Updated.
112    
113    2005-07-05  Bernhard Herzog  <[email protected]>
114    
115            * README: gdal 1.1.8 is too old.  1.2.5 works.
116    
117    2005-07-05  Bernhard Herzog  <[email protected]>
118    
119            * Resources/XML/thuban-1.1.dtd (rasterlayer): Add the opacity and
120            masktype attributes.
121    
122    2005-07-05  Bernhard Herzog  <[email protected]>
123    
124            * Thuban/Model/layer.py (Layer.__mangle_bounding_box)
125            (Layer.ClipBoundingBox): Rename ClipBoundingBox to
126            __mangle_bounding_box.  See the comments in the code and RT #2845
127    
128            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
129            Remove the explicit test of ClipBoundingBox.  The method isn't
130            public anymore and the direct call in the test wasn't necessary in
131            the first place.  If ClipBoundingBox (now __mangle_bounding_box)
132            isn't called, the return value of ShapesInRegion will be
133            different.
134    
135    2005-07-05  Bernhard Herzog  <[email protected]>
136    
137            * Thuban/UI/viewport.py (ViewPort.set_view_transform): Handle
138            ZeroDivisionError exceptions.  I don't know when they happen
139            exactly.  It probably happens when the projections aren't set
140            properly.
141    
142    2005-07-01  Bernhard Herzog  <[email protected]>
143    
144            First step towards unicode.  With this roughly we're at step 1
145            string_representation.txt
146    
147            * Doc/technotes/string_representation.txt: New.  Document how
148            strings are represented in Thuban and how to get to a Unicode
149            Thuban.
150    
151            * Thuban/__init__.py (set_internal_encoding)
152            (unicode_from_internal, internal_from_unicode): New. The first few
153            functions for the internal string representation
154    
155            * Thuban/UI/about.py (unicodeToLocale): Removed.  Use
156            internal_from_unicode instead.
157    
158            * Thuban/UI/__init__.py (install_wx_translation): Determine the
159            encoding to use for the internal string representation.  Also,
160            change the translation function to return strings in internal
161            representation even on unicode builds of wxPython
162    
163            * Thuban/Model/load.py (SessionLoader.check_attrs): Decode
164            filenames too.
165            (SessionLoader.start_clrange): Use check_attrs to decode and check
166            the attributes.
167    
168            * Thuban/Model/xmlreader.py (XMLReader.encode): Use
169            internal_from_unicode to convert unicode strings.
170    
171            * Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
172            unicode_from_internal when applicable
173    
174            * test/runtests.py (main): New command line option:
175            internal-encoding to specify the internal string encoding to use
176            in the tests.
177    
178            * test/support.py (initthuban): Set the internal encoding to
179            latin-1
180    
181            * test/test_load.py (TestSingleLayer.test, TestClassification.test)
182            (TestLabelLayer.test): Use the internal string representation when
183            dealing with non-ascii characters
184    
185            * test/test_load_1_0.py (TestSingleLayer.test)
186            (TestClassification.test, TestLabelLayer.test): Use the internal
187            string representation when dealing with non-ascii characters
188    
189            * test/test_load_0_9.py (TestSingleLayer.test)
190            (TestClassification.test): Use the internal string representation
191            when dealing with non-ascii characters
192    
193            * test/test_load_0_8.py (TestUnicodeStrings.test): Use the
194            internal string representation when dealing with non-ascii
195            characters
196    
197            * test/test_save.py (XMLWriterTest.testEncode)
198            (SaveSessionTest.testClassifiedLayer): Use the internal string
199            representation when dealing with non-ascii characters where
200            applicable
201    
202    2005-06-30  Bernhard Herzog  <[email protected]>
203    
204            * test/runtests.py: Untabify.
205    
206    2005-06-30  Bernhard Herzog  <[email protected]>
207    
208            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
209            untabify.
210    
211    2005-06-30  Bernhard Herzog  <[email protected]>
212    
213            * Extensions/ogr/test/__init__.py: Add missing coding directive
214    
215    2005-06-28  Jan-Oliver Wagner <[email protected]>
216    
217            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
218            Use the default size for rendering selected items of default type.
219            Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
220    
221    2005-06-28  Jan-Oliver Wagner <[email protected]>
222    
223            * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
224            (APR_TClr.GetThubanColor): Fix bug in color interpretation.
225            Thanks to Frank Koormann who identified this problem.
226    
227            * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
228            another symbol identified.
229    
230    2005-06-27  Jan-Oliver Wagner <[email protected]>
231    
232            * Doc/manual/thuban-manual-de.xml: More translations.
233    
234    2005-05-12  Jonathan Coles <[email protected]>
235            
236            * Thuban/UI/projdialog.py: Add missing import, which led to an
237            exception when opening a layer's projection.
238    
239    2005-05-09  Bernhard Herzog  <[email protected]>
240    
241            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
242    
243    2005-05-09  Bernhard Herzog  <[email protected]>
244    
245            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
246            connection to autoconnect.  Fixes RT#3148.
247    
248            * test/test_postgis_db.py
249            (TestPostGISSpecialCases.test_simple_error_handling): New test
250            that attempts to reproduce RT#3148.
251    
252    2005-05-06  Jonathan Coles <[email protected]>
253    
254            Add support for saving and loading the opacity and mask type
255            properties of RasterLayers. Also add support for proper use
256            of alpha information while drawing images not in 'RAW' format.
257            If transparency in an image format (e.g, PNG) is supported by
258            wxWidgets then the image would previously have been draw with
259            transparent regions, but the opaque regions would have been
260            unaffected by a change in the layer's opacity. This patch
261            corrects the problem.
262    
263            * Thuban/Model/layer.py (RasterLayer): Added opacity and
264            masktype parameters to the constructor, and set the
265            appropriate variables to those values.
266    
267            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
268            code to read the opacity and mask type of the layer and construct
269            a new layer with the additional parameters.
270    
271            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
272            to save the opacity and mask type of a layer.
273    
274            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
275            the opacity of the layer to draw_raster_data rather than the layer.
276            (BaseRenderer.draw_raster_data): Remove the layer parameter because
277            the function doesn't need to know about the layer. Add the optional
278            opacity parameter whose default is 1.0. Add 'PNG' as a supported
279            graphics format.
280    
281            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
282            signature to match that in BaseRenderer. Use the new opacity argument
283            in place of calling layer.Opacity(). In the case where the
284            format is not 'RAW', alpha_data is None and the loaded image has
285            alpha information, use the file's alpha information. This is
286            still subject to the layer's opacity setting.
287    
288            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
289            Fixed signature to match that in BaseRenderer.
290    
291            * test/test_load.py (TestRasterLayer): Change file_contents to
292            include opacity and masktype variables.
293            (TestRasterLayer.test): Include tests for opacity and masktype
294            changes.
295    
296            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
297            test to cover a variety of combinations of masktype and opacity
298            settings.
299    
300    2005-05-02  Jan-Oliver Wagner <[email protected]>
301    
302            * debian/rules: add --use-wx-python-swig-hack
303            to the build command.
304            Thanks to Moritz Lennert for pointing this out.
305    
306    2005-04-28  Jan-Oliver Wagner <[email protected]>
307    
308            Introduce OGRFileShapeStore in ogr extension.
309            This allows at least that loaded shapefile shape stores
310            can be saved correctly in the thuban session file
311            and reloaded again (reload is via core shapefile
312            routine, not OGR). For other types, .thuban files
313            can not be reloaded for the time being.
314    
315            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
316            class ist to be used for any file-based shape stores
317            accessed through OGR.
318    
319            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
320            forgotten _ for i18n. Adapted call OpenFileShapestore
321            regarding new parameter.
322            (OpenFileShapestore): Use OGRFileShapeStore instead of
323            OGRShapeStore. Fix return value (None instead of null).
324            Add new parameter "mainwindow" to avoid accessing global
325            context.
326    
327    2005-04-27  Jan-Oliver Wagner <[email protected]>
328    
329            Introduce FileShapeStore as generalization for
330            file-based shape stores. In a first instance
331            this allows additional modules to handle shapefile
332            format as well, namely the OGR extension.
333    
334            * Thuban/Model/data.py: Various small fixes in doc-strings.
335            (FileShapeStore): New class.
336            (ShapefileStore): Derive from FileShapeStore.
337            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
338            rename self.table to self._table, initialize self._bbox
339            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
340            and self.FileName() instead of self.filename.
341            (ShapefileStore.Table): Use self._table instead of self.table.
342            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
343            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
344    
345            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
346            (SessionSaver.write_data_containers): Only use methods of the
347            base class FileShapeStore.
348    
349    2005-04-26  Martin Schulze  <[email protected]>
350    
351            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
352            function to the modified render engine
353    
354    2005-04-25  Martin Schulze  <[email protected]>
355    
356            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
357            Added a description according to the CVS log message
358    
359    2005-04-23  Martin Schulze  <[email protected]>
360    
361            * Thuban/UI/renderer.py: Added a missing import
362    
363    2005-04-23  Russell Nelson  <[email protected]>
364    
365            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
366            way the previous tool is remembered, so that middle-button
367            panning works even if you haven't selected a tool.
368    
369    2005-04-11  Bernhard Herzog  <[email protected]>
370    
371            * libraries/thuban/wxproj.cpp: Move the compatibility code that
372            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
373            branch that includes wxPython.h because it's only needed when
374            wxPython.h is used.  Also, it won't compile when
375            USE_WX_PYTHON_SWIG_HACK is set otherwise.
376    
377    2005-04-07  Bernhard Herzog  <[email protected]>
378    
379            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
380            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
381            ClassGrid.__init__ and it's value is outside of the valid
382            range (must be < 32768).  wxPython 2.5 complains about it with an
383            exception.
384    
385    2005-04-05  Jan-Oliver Wagner <[email protected]>
386    
387            * Doc/manual/thuban-manual-de.xml: More translations.
388    
389    2005-04-05  Bernhard Herzog  <[email protected]>
390    
391            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
392            wxPython 2.4 as well.  Also, remove a now obsolete comment.
393    
394    2005-04-05  Bernhard Herzog  <[email protected]>
395    
396            Use wxPython.h by default but provide a workaround when it isn't
397            available.
398    
399            * setup.py (wxproj_extension): New variable.  Assign the Extension
400            instance for Lib.wxproj to this variable instead of putting it
401            directly into the listso that it can be accessed by other code
402            later.
403            (thuban_build_ext.user_options): Added boolean option
404            --use-wx-python-swig-hack.
405            (thuban_build_ext.initialize_options): Initialize the new option
406            to False.
407            (thuban_build_ext.finalize_options): If the new option was given,
408            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
409            (thuban_build_ext): Update the doc-string
410    
411            * libraries/thuban/wxproj.cpp: Normally we use
412            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
413            defined, use swigPtrConvertHack.h instead.
414    
415            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
416            copied over from wxPython.h.
417            (decode_pointer_new): New.  Equivalent of decode_pointer for
418            wxPython 2.5.
419            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
420    
421            * README: Add section on potential build problems which explains
422            how the work-around for a missing wxPython.h is activated.
423    
424    2005-03-29  Bernhard Herzog  <[email protected]>
425    
426            * test/postgissupport.py (find_postgis_sql): Added yet another
427            potential location for (lw)postgis.sql because the file has moved
428            again in postgis 1.0.0 rc4.
429    
430    2005-03-29  Bernhard Herzog  <[email protected]>
431    
432            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
433            match the site of the legend_icon_layer icon.  Otherwise wxpython
434            2.5 complains when the legend is created with the error:
435    
436            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
437            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
438            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
439            in wxImageList: this might work on this platform but definitely
440            won't under Windows.
441    
442    2005-03-23  Jonathan Coles <[email protected]>
443    
444            These changes add support for adjusting the opacity of a raster layer.
445    
446            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
447            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
448            a LAYER_CHANGED event if the opacity actually changes.
449    
450            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
451            layer parameter needed in the implementation of this method in
452            renderer.py.
453    
454            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
455            typo 00 -> 0.
456    
457            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
458            control to adjust opacity.
459    
460            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
461            alpha data based on the opacity level of the layer.
462    
463            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
464            accepts a layer parameter.
465    
466            * test/test_layer.py (TestLayerModification.test_raster_layer):
467            Rename opacity method calls and add test for LAYER_CHANGED.
468    
469    2005-03-16  Bernhard Herzog  <[email protected]>
470    
471            * test/test_connector.py (DeletionTestMixin.check_deletions)
472            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
473            update the callers.
474    
475    2005-03-14  Jan-Oliver Wagner <[email protected]>
476    
477            * Doc/manual/thuban-manual-de.xml: More translations.
478    
479    2005-03-10  Jan-Oliver Wagner <[email protected]>
480    
481            Introducing initialization callbacks for extensions.
482    
483            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
484            optional parameter init_callback.
485            (ExtensionDesc.init_ext): New. Executes the callback and sets
486            a status.
487    
488            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
489            initialization of the extensions.
490            (ThubanApplication.init_extensions): Init all extensions.
491    
492            * Thuban/UI/about.py (About.__init__): Added status of the extensions
493            to the about text.
494    
495            * Extensions/gns2shp/__init__.py: Added init method for Extension
496            description.
497            (init): New. Contains the initialization of the module.
498    
499    2005-03-04  Nina H�ffmeyer <[email protected]>
500    
501            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
502            OGRConnection to open a datasource. Removed dialog to display all
503            available drivers. Added some doc strings.
504    
505            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
506            OGRDatasource with a string. Added two opening methods which return an
507            OGRDatasource (either data from file or from DB).
508    
509            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
510            represents a geometry reference of an OGRFeature. OGRShape now has a
511            list of referenced geometry objects (important for geometry
512            collections).
513            For OGRShapeStores loaded from a DB an ID column can be specified now.
514    
515    2005-02-22  Jan-Oliver Wagner <[email protected]>
516    
517            * test/test_map.py (TestMapWithContents.test_tree_info):
518            Added label layer for comparison.
519    
520    2005-02-18  Jonathan Coles <[email protected]>
521    
522            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
523            which builds a mask. Handle the majority of an image in a loop,
524            creating 8 bits at a time. Later, handle the edge case where less
525            than 8 bits are packed.
526    
527    2005-02-18  Bernhard Herzog  <[email protected]>
528    
529            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
530            doc-string
531    
532    2005-02-18  Jonathan Coles <[email protected]>
533    
534            * setup.py: Remove wx_cs_params from gdal compile options.
535    
536    2005-02-18  Jonathan Coles <[email protected]>
537    
538            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
539            dependencies on wxPython. Added a new method projected_raster_layer()
540            that returns a raster layer image in projected space. This must be
541            implemented in classes derived from BaseRenderer. This also eliminates
542            the dependency on gdal in baserenderer.py.
543    
544            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
545            new projected_raster_layer() to get projected raster image instead
546            of directly calling ProjectRasterFile().
547            (BaseRenderer.projected_raster_layer): New. This must be implemented
548            by derived classes. It takes almost the same arguments as ProjectRasterFile
549            did and returns a projected image with mask and alpha data (if requested).
550            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
551            that check will be done in MapRenderer.projected_raster_layer(). This
552            also allows other implementations to use different projection code.
553    
554            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
555            Implementation of BaseRenderer.projected_raster_layer. Checks for
556            gdal support and wxPython version. Also handles exceptions from
557            ProjectRasterFile.
558    
559            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
560            and added a variable which can be set through the options argument
561            of ProjectRasterFile.
562    
563            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
564            Calls ProjectRasterFile and returns the result.
565            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
566            of calling projected_raster_layer() with different options.
567            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
568            wxPython version and all tests of masks and alpha channels. These are
569            now in test_projected_raster_layer().
570    
571    2005-02-17  Jan-Oliver Wagner <[email protected]>
572    
573            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
574            doc-strings to comply with coding_guidelines.
575    
576    2005-02-17  Jan-Oliver Wagner <[email protected]>
577    
578            Docstring improvements and minor fixes for labellayer.
579    
580            * Thuban/Model/map.py:
581            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
582            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
583            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
584            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
585            doc string.
586            (Map.BoundingBox): Removed superfluous test for label_layer
587            and improved doc string.
588            (Map.TreeInfo): Added label_layer and improved sdo string.
589    
590            * Thuban/Model/label.py: Added import of _.
591            (Label, Label.__init__): Improved/added doc string.
592            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
593            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
594            Improved/added doc string.
595            (LabelLayer.AddLabel): Use already defined names for
596            align strings and improved doc string.
597            (LabelLayer.TreeInfo): New. Return the object data for
598            the tree view.
599    
600    2005-02-16  Jonathan Coles <[email protected]>
601    
602            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
603            so that that wxproj doesn't crash. Added GUI support for selecting
604            alpha channel (opacity can't be selected yet).
605    
606            NOTE: If wxPython.h is including in future distribution packages
607            then it will not be necessary to have the files swigPtrConvertHack.h
608            and wxPython_int.h included with Thuban. This is hopefully
609            a temporary workaround.
610    
611            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
612            access to the macro wxCHECK_VERSION so that it will properly
613            generate a bit mask. There was a problem between wx2.4 and wx2.5
614            that this works around.
615    
616            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
617            of RasterLayer.MaskType.
618            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
619            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
620            specify none, a bitmap, or an alpha channel.
621            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
622    
623            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
624            Set the raster warping options for the mask based on the value
625            of RasterLayer.MaskType.
626    
627            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
628            deprecated calls to SetItemSelectedImage in favor of SetItemImage
629            with wxTreeItemIcon_Selected.
630    
631            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
632            an alpha channel for the mask.
633    
634            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
635            data if it is available and an alpha channel is supported under
636            the current version of wxPython.
637    
638            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
639            to select whether 1's or 0's select the desired portion of an image
640            in the bit mask. wx2.4 has a bug where the documentation is the opposite
641            from behavior.
642            (ProjectRasterFile): Only generate an alpha channel if the version
643            of wxPython is >= 2.5.3.
644    
645            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
646            When wxPython >= 2.5.3 use the special swig functions to decode an
647            object's address.
648    
649            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
650            based on the version of wxPython. If >= 2.5.3 use the special swig
651            functions from wxPython to decode wxPython objects, otherwise use
652            the old method of retrieving the address from the object __repr__ string.
653    
654            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
655            Unnecessary code was removed to make it smaller.
656    
657            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
658            Add tests for returning an alpha channel.
659    
660            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
661            tests that used removed functions UseMask and SetUseMask
662    
663    
664    2005-02-08  Bernhard Herzog  <[email protected]>
665    
666            More wxPython 2.5 changes.  This time taken from a patch from
667            Daniel Calvelo Aros.
668    
669            * Thuban/UI/tableview.py (QueryTableFrame.__init__)
670            (QueryTableFrame.__init__): Pass the size of a spacer as a single
671            item.
672    
673            * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
674            (ProjFrame.build_dialog): Pass the size of a spacer as a single
675            item.
676    
677            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
678            size of a spacer as a single item.
679    
680            * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
681            size of a spacer as a single item.
682    
683    2005-02-08  Bernhard Herzog  <[email protected]>
684    
685            Compatibility with wxPython 2.5.  The changes should make it work
686            better with 2.5 while still keeping compatibility with 2.4.  There
687            are still problems with 2.5, though.
688    
689            * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
690            of a spacer as a single item.
691    
692            * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
693            from wxControl
694    
695            * Thuban/UI/legend.py (LegendTree): When running with wxPython <
696            2.5, add an implementation of the GetFirstChild method that does
697            not require the second parameter.
698            (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
699            (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
700            (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
701            pass the second parameter to GetFirstChild
702    
703  2005-02-08  Nina H�ffmeyer <[email protected]>  2005-02-08  Nina H�ffmeyer <[email protected]>
704    
705          * Extensions/ogr/ogrshapes.py: Removed some print commands.          * Extensions/ogr/ogrshapes.py: Removed some print commands.

Legend:
Removed from v.2559  
changed lines
  Added in v.2673

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26