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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26