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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26