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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26