/[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 2457 by frank, Wed Dec 15 09:44:58 2004 UTC revision 2667 by jan, Thu Aug 11 21:34:22 2005 UTC
# Line 1  Line 1 
1    2005-08-11  Jan-Oliver Wagner <[email protected]>
2    
3            * Extensions/export_shapefile: New.
4    
5            * Extensions/export_shapefile/__init__.py: New. Initialize
6            the export_shapefile extension.
7    
8            * Extensions/export_shapefile/export_shapefile.py: New.
9            Exports a layer as a Shapefile.
10    
11    2005-08-08  Jan-Oliver Wagner <[email protected]>
12    
13            * po/de.po: String fixes. This fixes Debian bug #313843.
14    
15    2005-07-27  Jan-Oliver Wagner <[email protected]>
16    
17            Remove the attributes from the layer element in
18            .thuban files for the save routine.
19            This also solves RT bug #3149,
20            https://intevation.de/rt/webrt?serial_num=3149
21    
22            * test/test_load.py: (TestSingleLayer, TestNonAsciiColumnName,
23            TestLayerVisibility, TestSymbolSize, TestClassification, TestLabels,
24            TestLayerProjection, TestJoinedTable, TestLabelLayer): Removed
25            attributes from layer element to classification clnull element.
26    
27            * test/test_save.py (SaveSessionTest.testSingleLayer,
28            SaveSessionTest.testLayerProjection,
29            SaveSessionTest.testClassifiedLayer,
30            SaveSessionTest.test_joined_table, SaveSessionTest.test_save_postgis):
31            Removed attributes from layer element to classification clnull element.
32            (test_save_postgis.NonConnectionStore._fetch_table_information):
33            added pretending to have a shape_type.
34    
35            * Resources/XML/thuban-1.1.dtd: Make the attributes field
36            and field_type of classification optional.
37    
38            * Thuban/Model/classification.py (Classification.TreeItem.build_info):
39            Added output of size.
40    
41            * Thuban/Model/load.py (SessionLoader.start_classification):
42            Change attribute 'field' and 'field_type' from obligatory to
43            optional to allow empty classes (ie.  only with a default=clnull).
44    
45            * Thuban/Model/save.py (SessionSaver.write_layer): Don't write
46            any attributes anymore for the layer element.
47            (SessionSaver.write_classification): Even if there is no
48            classification field, still write the classification because
49            the clnull (default) symbol will not be defined anymore as
50            part of the layer element.
51    
52    2005-07-05  Bernhard Herzog  <[email protected]>
53    
54            * setup.py (setup call): Version 1.1.0
55    
56            * NEWS: Update for 1.1.0
57    
58            * MANIFEST.in: Add *.txt to files taken from Doc.  Otherwise the
59            technores won't be included
60    
61            * Thuban/UI/about.py (About.__init__): Extend copyright notice to
62            2005
63    
64            * po/de.po: Updated.
65    
66    2005-07-05  Bernhard Herzog  <[email protected]>
67    
68            * README: gdal 1.1.8 is too old.  1.2.5 works.
69    
70    2005-07-05  Bernhard Herzog  <[email protected]>
71    
72            * Resources/XML/thuban-1.1.dtd (rasterlayer): Add the opacity and
73            masktype attributes.
74    
75    2005-07-05  Bernhard Herzog  <[email protected]>
76    
77            * Thuban/Model/layer.py (Layer.__mangle_bounding_box)
78            (Layer.ClipBoundingBox): Rename ClipBoundingBox to
79            __mangle_bounding_box.  See the comments in the code and RT #2845
80    
81            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
82            Remove the explicit test of ClipBoundingBox.  The method isn't
83            public anymore and the direct call in the test wasn't necessary in
84            the first place.  If ClipBoundingBox (now __mangle_bounding_box)
85            isn't called, the return value of ShapesInRegion will be
86            different.
87    
88    2005-07-05  Bernhard Herzog  <[email protected]>
89    
90            * Thuban/UI/viewport.py (ViewPort.set_view_transform): Handle
91            ZeroDivisionError exceptions.  I don't know when they happen
92            exactly.  It probably happens when the projections aren't set
93            properly.
94    
95    2005-07-01  Bernhard Herzog  <[email protected]>
96    
97            First step towards unicode.  With this roughly we're at step 1
98            string_representation.txt
99    
100            * Doc/technotes/string_representation.txt: New.  Document how
101            strings are represented in Thuban and how to get to a Unicode
102            Thuban.
103    
104            * Thuban/__init__.py (set_internal_encoding)
105            (unicode_from_internal, internal_from_unicode): New. The first few
106            functions for the internal string representation
107    
108            * Thuban/UI/about.py (unicodeToLocale): Removed.  Use
109            internal_from_unicode instead.
110    
111            * Thuban/UI/__init__.py (install_wx_translation): Determine the
112            encoding to use for the internal string representation.  Also,
113            change the translation function to return strings in internal
114            representation even on unicode builds of wxPython
115    
116            * Thuban/Model/load.py (SessionLoader.check_attrs): Decode
117            filenames too.
118            (SessionLoader.start_clrange): Use check_attrs to decode and check
119            the attributes.
120    
121            * Thuban/Model/xmlreader.py (XMLReader.encode): Use
122            internal_from_unicode to convert unicode strings.
123    
124            * Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
125            unicode_from_internal when applicable
126    
127            * test/runtests.py (main): New command line option:
128            internal-encoding to specify the internal string encoding to use
129            in the tests.
130    
131            * test/support.py (initthuban): Set the internal encoding to
132            latin-1
133    
134            * test/test_load.py (TestSingleLayer.test, TestClassification.test)
135            (TestLabelLayer.test): Use the internal string representation when
136            dealing with non-ascii characters
137    
138            * test/test_load_1_0.py (TestSingleLayer.test)
139            (TestClassification.test, TestLabelLayer.test): Use the internal
140            string representation when dealing with non-ascii characters
141    
142            * test/test_load_0_9.py (TestSingleLayer.test)
143            (TestClassification.test): Use the internal string representation
144            when dealing with non-ascii characters
145    
146            * test/test_load_0_8.py (TestUnicodeStrings.test): Use the
147            internal string representation when dealing with non-ascii
148            characters
149    
150            * test/test_save.py (XMLWriterTest.testEncode)
151            (SaveSessionTest.testClassifiedLayer): Use the internal string
152            representation when dealing with non-ascii characters where
153            applicable
154    
155    2005-06-30  Bernhard Herzog  <[email protected]>
156    
157            * test/runtests.py: Untabify.
158    
159    2005-06-30  Bernhard Herzog  <[email protected]>
160    
161            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
162            untabify.
163    
164    2005-06-30  Bernhard Herzog  <[email protected]>
165    
166            * Extensions/ogr/test/__init__.py: Add missing coding directive
167    
168    2005-06-28  Jan-Oliver Wagner <[email protected]>
169    
170            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
171            Use the default size for rendering selected items of default type.
172            Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
173    
174    2005-06-28  Jan-Oliver Wagner <[email protected]>
175    
176            * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
177            (APR_TClr.GetThubanColor): Fix bug in color interpretation.
178            Thanks to Frank Koormann who identified this problem.
179    
180            * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
181            another symbol identified.
182    
183    2005-06-27  Jan-Oliver Wagner <[email protected]>
184    
185            * Doc/manual/thuban-manual-de.xml: More translations.
186    
187    2005-05-12  Jonathan Coles <[email protected]>
188            
189            * Thuban/UI/projdialog.py: Add missing import, which led to an
190            exception when opening a layer's projection.
191    
192    2005-05-09  Bernhard Herzog  <[email protected]>
193    
194            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
195    
196    2005-05-09  Bernhard Herzog  <[email protected]>
197    
198            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
199            connection to autoconnect.  Fixes RT#3148.
200    
201            * test/test_postgis_db.py
202            (TestPostGISSpecialCases.test_simple_error_handling): New test
203            that attempts to reproduce RT#3148.
204    
205    2005-05-06  Jonathan Coles <[email protected]>
206    
207            Add support for saving and loading the opacity and mask type
208            properties of RasterLayers. Also add support for proper use
209            of alpha information while drawing images not in 'RAW' format.
210            If transparency in an image format (e.g, PNG) is supported by
211            wxWidgets then the image would previously have been draw with
212            transparent regions, but the opaque regions would have been
213            unaffected by a change in the layer's opacity. This patch
214            corrects the problem.
215    
216            * Thuban/Model/layer.py (RasterLayer): Added opacity and
217            masktype parameters to the constructor, and set the
218            appropriate variables to those values.
219    
220            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
221            code to read the opacity and mask type of the layer and construct
222            a new layer with the additional parameters.
223    
224            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
225            to save the opacity and mask type of a layer.
226    
227            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
228            the opacity of the layer to draw_raster_data rather than the layer.
229            (BaseRenderer.draw_raster_data): Remove the layer parameter because
230            the function doesn't need to know about the layer. Add the optional
231            opacity parameter whose default is 1.0. Add 'PNG' as a supported
232            graphics format.
233    
234            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
235            signature to match that in BaseRenderer. Use the new opacity argument
236            in place of calling layer.Opacity(). In the case where the
237            format is not 'RAW', alpha_data is None and the loaded image has
238            alpha information, use the file's alpha information. This is
239            still subject to the layer's opacity setting.
240    
241            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
242            Fixed signature to match that in BaseRenderer.
243    
244            * test/test_load.py (TestRasterLayer): Change file_contents to
245            include opacity and masktype variables.
246            (TestRasterLayer.test): Include tests for opacity and masktype
247            changes.
248    
249            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
250            test to cover a variety of combinations of masktype and opacity
251            settings.
252    
253    2005-05-02  Jan-Oliver Wagner <[email protected]>
254    
255            * debian/rules: add --use-wx-python-swig-hack
256            to the build command.
257            Thanks to Moritz Lennert for pointing this out.
258    
259    2005-04-28  Jan-Oliver Wagner <[email protected]>
260    
261            Introduce OGRFileShapeStore in ogr extension.
262            This allows at least that loaded shapefile shape stores
263            can be saved correctly in the thuban session file
264            and reloaded again (reload is via core shapefile
265            routine, not OGR). For other types, .thuban files
266            can not be reloaded for the time being.
267    
268            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
269            class ist to be used for any file-based shape stores
270            accessed through OGR.
271    
272            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
273            forgotten _ for i18n. Adapted call OpenFileShapestore
274            regarding new parameter.
275            (OpenFileShapestore): Use OGRFileShapeStore instead of
276            OGRShapeStore. Fix return value (None instead of null).
277            Add new parameter "mainwindow" to avoid accessing global
278            context.
279    
280    2005-04-27  Jan-Oliver Wagner <[email protected]>
281    
282            Introduce FileShapeStore as generalization for
283            file-based shape stores. In a first instance
284            this allows additional modules to handle shapefile
285            format as well, namely the OGR extension.
286    
287            * Thuban/Model/data.py: Various small fixes in doc-strings.
288            (FileShapeStore): New class.
289            (ShapefileStore): Derive from FileShapeStore.
290            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
291            rename self.table to self._table, initialize self._bbox
292            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
293            and self.FileName() instead of self.filename.
294            (ShapefileStore.Table): Use self._table instead of self.table.
295            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
296            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
297    
298            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
299            (SessionSaver.write_data_containers): Only use methods of the
300            base class FileShapeStore.
301    
302    2005-04-26  Martin Schulze  <[email protected]>
303    
304            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
305            function to the modified render engine
306    
307    2005-04-25  Martin Schulze  <[email protected]>
308    
309            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
310            Added a description according to the CVS log message
311    
312    2005-04-23  Martin Schulze  <[email protected]>
313    
314            * Thuban/UI/renderer.py: Added a missing import
315    
316    2005-04-23  Russell Nelson  <[email protected]>
317    
318            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
319            way the previous tool is remembered, so that middle-button
320            panning works even if you haven't selected a tool.
321    
322    2005-04-11  Bernhard Herzog  <[email protected]>
323    
324            * libraries/thuban/wxproj.cpp: Move the compatibility code that
325            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
326            branch that includes wxPython.h because it's only needed when
327            wxPython.h is used.  Also, it won't compile when
328            USE_WX_PYTHON_SWIG_HACK is set otherwise.
329    
330    2005-04-07  Bernhard Herzog  <[email protected]>
331    
332            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
333            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
334            ClassGrid.__init__ and it's value is outside of the valid
335            range (must be < 32768).  wxPython 2.5 complains about it with an
336            exception.
337    
338    2005-04-05  Jan-Oliver Wagner <[email protected]>
339    
340            * Doc/manual/thuban-manual-de.xml: More translations.
341    
342    2005-04-05  Bernhard Herzog  <[email protected]>
343    
344            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
345            wxPython 2.4 as well.  Also, remove a now obsolete comment.
346    
347    2005-04-05  Bernhard Herzog  <[email protected]>
348    
349            Use wxPython.h by default but provide a workaround when it isn't
350            available.
351    
352            * setup.py (wxproj_extension): New variable.  Assign the Extension
353            instance for Lib.wxproj to this variable instead of putting it
354            directly into the listso that it can be accessed by other code
355            later.
356            (thuban_build_ext.user_options): Added boolean option
357            --use-wx-python-swig-hack.
358            (thuban_build_ext.initialize_options): Initialize the new option
359            to False.
360            (thuban_build_ext.finalize_options): If the new option was given,
361            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
362            (thuban_build_ext): Update the doc-string
363    
364            * libraries/thuban/wxproj.cpp: Normally we use
365            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
366            defined, use swigPtrConvertHack.h instead.
367    
368            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
369            copied over from wxPython.h.
370            (decode_pointer_new): New.  Equivalent of decode_pointer for
371            wxPython 2.5.
372            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
373    
374            * README: Add section on potential build problems which explains
375            how the work-around for a missing wxPython.h is activated.
376    
377    2005-03-29  Bernhard Herzog  <[email protected]>
378    
379            * test/postgissupport.py (find_postgis_sql): Added yet another
380            potential location for (lw)postgis.sql because the file has moved
381            again in postgis 1.0.0 rc4.
382    
383    2005-03-29  Bernhard Herzog  <[email protected]>
384    
385            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
386            match the site of the legend_icon_layer icon.  Otherwise wxpython
387            2.5 complains when the legend is created with the error:
388    
389            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
390            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
391            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
392            in wxImageList: this might work on this platform but definitely
393            won't under Windows.
394    
395    2005-03-23  Jonathan Coles <[email protected]>
396    
397            These changes add support for adjusting the opacity of a raster layer.
398    
399            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
400            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
401            a LAYER_CHANGED event if the opacity actually changes.
402    
403            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
404            layer parameter needed in the implementation of this method in
405            renderer.py.
406    
407            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
408            typo 00 -> 0.
409    
410            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
411            control to adjust opacity.
412    
413            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
414            alpha data based on the opacity level of the layer.
415    
416            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
417            accepts a layer parameter.
418    
419            * test/test_layer.py (TestLayerModification.test_raster_layer):
420            Rename opacity method calls and add test for LAYER_CHANGED.
421    
422    2005-03-16  Bernhard Herzog  <[email protected]>
423    
424            * test/test_connector.py (DeletionTestMixin.check_deletions)
425            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
426            update the callers.
427    
428    2005-03-14  Jan-Oliver Wagner <[email protected]>
429    
430            * Doc/manual/thuban-manual-de.xml: More translations.
431    
432    2005-03-10  Jan-Oliver Wagner <[email protected]>
433    
434            Introducing initialization callbacks for extensions.
435    
436            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
437            optional parameter init_callback.
438            (ExtensionDesc.init_ext): New. Executes the callback and sets
439            a status.
440    
441            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
442            initialization of the extensions.
443            (ThubanApplication.init_extensions): Init all extensions.
444    
445            * Thuban/UI/about.py (About.__init__): Added status of the extensions
446            to the about text.
447    
448            * Extensions/gns2shp/__init__.py: Added init method for Extension
449            description.
450            (init): New. Contains the initialization of the module.
451    
452    2005-03-04  Nina H�ffmeyer <[email protected]>
453    
454            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
455            OGRConnection to open a datasource. Removed dialog to display all
456            available drivers. Added some doc strings.
457    
458            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
459            OGRDatasource with a string. Added two opening methods which return an
460            OGRDatasource (either data from file or from DB).
461    
462            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
463            represents a geometry reference of an OGRFeature. OGRShape now has a
464            list of referenced geometry objects (important for geometry
465            collections).
466            For OGRShapeStores loaded from a DB an ID column can be specified now.
467    
468    2005-02-22  Jan-Oliver Wagner <[email protected]>
469    
470            * test/test_map.py (TestMapWithContents.test_tree_info):
471            Added label layer for comparison.
472    
473    2005-02-18  Jonathan Coles <[email protected]>
474    
475            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
476            which builds a mask. Handle the majority of an image in a loop,
477            creating 8 bits at a time. Later, handle the edge case where less
478            than 8 bits are packed.
479    
480    2005-02-18  Bernhard Herzog  <[email protected]>
481    
482            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
483            doc-string
484    
485    2005-02-18  Jonathan Coles <[email protected]>
486    
487            * setup.py: Remove wx_cs_params from gdal compile options.
488    
489    2005-02-18  Jonathan Coles <[email protected]>
490    
491            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
492            dependencies on wxPython. Added a new method projected_raster_layer()
493            that returns a raster layer image in projected space. This must be
494            implemented in classes derived from BaseRenderer. This also eliminates
495            the dependency on gdal in baserenderer.py.
496    
497            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
498            new projected_raster_layer() to get projected raster image instead
499            of directly calling ProjectRasterFile().
500            (BaseRenderer.projected_raster_layer): New. This must be implemented
501            by derived classes. It takes almost the same arguments as ProjectRasterFile
502            did and returns a projected image with mask and alpha data (if requested).
503            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
504            that check will be done in MapRenderer.projected_raster_layer(). This
505            also allows other implementations to use different projection code.
506    
507            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
508            Implementation of BaseRenderer.projected_raster_layer. Checks for
509            gdal support and wxPython version. Also handles exceptions from
510            ProjectRasterFile.
511    
512            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
513            and added a variable which can be set through the options argument
514            of ProjectRasterFile.
515    
516            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
517            Calls ProjectRasterFile and returns the result.
518            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
519            of calling projected_raster_layer() with different options.
520            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
521            wxPython version and all tests of masks and alpha channels. These are
522            now in test_projected_raster_layer().
523    
524    2005-02-17  Jan-Oliver Wagner <[email protected]>
525    
526            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
527            doc-strings to comply with coding_guidelines.
528    
529    2005-02-17  Jan-Oliver Wagner <[email protected]>
530    
531            Docstring improvements and minor fixes for labellayer.
532    
533            * Thuban/Model/map.py:
534            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
535            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
536            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
537            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
538            doc string.
539            (Map.BoundingBox): Removed superfluous test for label_layer
540            and improved doc string.
541            (Map.TreeInfo): Added label_layer and improved sdo string.
542    
543            * Thuban/Model/label.py: Added import of _.
544            (Label, Label.__init__): Improved/added doc string.
545            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
546            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
547            Improved/added doc string.
548            (LabelLayer.AddLabel): Use already defined names for
549            align strings and improved doc string.
550            (LabelLayer.TreeInfo): New. Return the object data for
551            the tree view.
552    
553    2005-02-16  Jonathan Coles <[email protected]>
554    
555            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
556            so that that wxproj doesn't crash. Added GUI support for selecting
557            alpha channel (opacity can't be selected yet).
558    
559            NOTE: If wxPython.h is including in future distribution packages
560            then it will not be necessary to have the files swigPtrConvertHack.h
561            and wxPython_int.h included with Thuban. This is hopefully
562            a temporary workaround.
563    
564            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
565            access to the macro wxCHECK_VERSION so that it will properly
566            generate a bit mask. There was a problem between wx2.4 and wx2.5
567            that this works around.
568    
569            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
570            of RasterLayer.MaskType.
571            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
572            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
573            specify none, a bitmap, or an alpha channel.
574            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
575    
576            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
577            Set the raster warping options for the mask based on the value
578            of RasterLayer.MaskType.
579    
580            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
581            deprecated calls to SetItemSelectedImage in favor of SetItemImage
582            with wxTreeItemIcon_Selected.
583    
584            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
585            an alpha channel for the mask.
586    
587            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
588            data if it is available and an alpha channel is supported under
589            the current version of wxPython.
590    
591            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
592            to select whether 1's or 0's select the desired portion of an image
593            in the bit mask. wx2.4 has a bug where the documentation is the opposite
594            from behavior.
595            (ProjectRasterFile): Only generate an alpha channel if the version
596            of wxPython is >= 2.5.3.
597    
598            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
599            When wxPython >= 2.5.3 use the special swig functions to decode an
600            object's address.
601    
602            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
603            based on the version of wxPython. If >= 2.5.3 use the special swig
604            functions from wxPython to decode wxPython objects, otherwise use
605            the old method of retrieving the address from the object __repr__ string.
606    
607            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
608            Unnecessary code was removed to make it smaller.
609    
610            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
611            Add tests for returning an alpha channel.
612    
613            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
614            tests that used removed functions UseMask and SetUseMask
615    
616    
617    2005-02-08  Bernhard Herzog  <[email protected]>
618    
619            More wxPython 2.5 changes.  This time taken from a patch from
620            Daniel Calvelo Aros.
621    
622            * Thuban/UI/tableview.py (QueryTableFrame.__init__)
623            (QueryTableFrame.__init__): Pass the size of a spacer as a single
624            item.
625    
626            * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
627            (ProjFrame.build_dialog): Pass the size of a spacer as a single
628            item.
629    
630            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
631            size of a spacer as a single item.
632    
633            * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
634            size of a spacer as a single item.
635    
636    2005-02-08  Bernhard Herzog  <[email protected]>
637    
638            Compatibility with wxPython 2.5.  The changes should make it work
639            better with 2.5 while still keeping compatibility with 2.4.  There
640            are still problems with 2.5, though.
641    
642            * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
643            of a spacer as a single item.
644    
645            * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
646            from wxControl
647    
648            * Thuban/UI/legend.py (LegendTree): When running with wxPython <
649            2.5, add an implementation of the GetFirstChild method that does
650            not require the second parameter.
651            (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
652            (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
653            (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
654            pass the second parameter to GetFirstChild
655    
656    2005-02-08  Nina H�ffmeyer <[email protected]>
657    
658            * Extensions/ogr/ogrshapes.py: Removed some print commands.
659    
660            * Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an
661            additional menu but appears as a possibility in the menu Map.
662    
663    2005-02-07  Jonathan Coles <[email protected]>
664            * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR
665            and PYTHON_ERRF since they were no longer necessary.
666    
667    2005-02-07  Bernhard Reiter <[email protected]>
668            * Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows):
669            Enable translation for message string.
670    
671    2005-02-06  Martin Schulze  <[email protected]>
672    
673            * Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted
674            the arguments of the contstructor to fit the global scheme
675    
676    2005-01-31  Nina H�ffmeyer <[email protected]>
677    
678            * Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides
679            some dialogs needed to start ogr.
680            
681            * Extensions/ogr/__init__.py: Changed comments to avoid encoding
682            warnings.
683    
684            * Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid
685            encoding warnings.
686    
687    2005-01-28  Jonathan Coles <[email protected]>
688    
689            * libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the
690            mask is packed into a bit array. It's now slightly faster.
691    
692    2005-01-28  Jonathan Coles <[email protected]>
693    
694            * Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask
695            default to true.
696    
697            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove
698            code that loads the state of the layer's use_mask flag. Its
699            usefulness is still being debated.
700    
701            * Thuban/Model/save.py (SessionSaver.write_layer): Remove
702            code that saves the state of the layer's use_mask flag. Its
703            usefulness is still being debated.
704    
705            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
706            options to ProjectRasterFile based on the state of layer.UseMask().
707            Catch more exceptions from ProjectRasterFile so that Thuban doesn't
708            quit is there is a problem projecting.
709            (BaseRenderer.draw_raster_data): Change the documentation to
710            describe the new format (XBM) that the mask data will be in.
711    
712            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask
713            data is in XBM format when format='RAW' which means it doesn't
714            need to be converted to a wxImage before being used as a mask
715            for a wxBitmap. Assume that if format != 'RAW' that the image
716            data and mask data are in the same format.
717    
718            * libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled
719            and a mask is requested, convert the alpha band to a bit array in
720            XBM format. if an alpha channel is requested, simply return the
721            data in the alpha band. Provide better error handling by returning
722            python error messages (also fixes RT #2947).
723            (ProjectRasterFile): Support multiple mask options, rather than simply
724            a flag indicating that a mask should or should not be used. Provide
725            better error handling by returning python error messages.
726    
727            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
728            Add mask data to test.
729    
730            * test/test_layer.py (TestLayer.test_raster_layer): Test that a layer
731            should use the mask by default.
732            (TestLayerModificaton.test_raster_layer): Test that a layer should use
733            the mask by default.
734    
735            * test/test_load.py (TestRasterLayer.test): Remove testing for
736            use_mask flag in file.
737    
738            * test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing
739            for use_mask in file.
740    
741            * test/test_load_1_0_1.py: Removed. Shouldn't have been checked in.
742            
743    2005-01-26  Jonathan Coles <[email protected]>
744    
745            Add a new dialog box for raster layers. The dialog box allows
746            the user to toggle a mask that is generated by ProjectRasterFile
747            and is used to only draw the real parts of the projected image.
748    
749            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
750            Instruct the warping code to generate a mask if the raster layer
751            requests one.
752            (BaseRenderer.draw_raster_data): Removed obsolete optional mask argument.
753    
754            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed
755            obsolete optional mask argument.
756    
757            * Thuban/UI/classifier.py (Classifier): Change the parent class
758            to LayerProperties and rework the code to support layout calls
759            from the parent.
760            (Classifier.dialog_layout): New. Layout the dialog box.
761            (Classifier.map_layers_removed): Removed. Moved to parent class.
762            (Classifier.map_replaced): Removed. Moved to parent class.
763            (Classifier._OnTry): Renamed to OnTry to support parent class.
764            (Classifier.OnClose): Removed. Supplied in parent class.
765            (Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn.
766            (Classifier._OnOK): Renamed to OnOK to support parent class.
767            (Classifier._OnRevert): Renamed to OnRevert to support parent class.
768    
769            * Thuban/UI/layerproperties.py: New. Base class for layer properties
770            dialog boxes.
771    
772            * Thuban/UI/rasterlayerproperties.py: New. Class for displaying
773            raster layer properties.
774    
775            * libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code
776            with the non-simple version supplied with gdal. This allows added
777            features such as creating an alpha band.
778            (GetImageData): Generate a mask array from the alpha band that is
779            generated by gdal if the user has selected it. Try to support images
780            that have more than three bands, such as images with RGB plus an
781            alpha band.
782            (ProjectRasterFile): Convert python argument for mask and tell
783            gdal to enable or disable an alpha band.
784    
785            * Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string
786            describing what kind of layer the class is. Defaults to "Unknown",
787            but should be overridden by subclasses.
788            (Layer.Type): New. Override base class method.
789            (RasterLayer.__init__): Create a flag for using a mask. Record extra
790            data from gdal for display in the properties dialog.
791            (RasterLayer.Type): New. Override base class method.
792            (RasterLayer.UseMask): New. Returns True if the mask should be used.
793            (RasterLayer.SetUseMask): New. Set if the mask should be used.
794            (RasterLayer.ImageInfo): New. Return extra information about the image.
795    
796            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load
797            the mask information.
798    
799            * Thuban/Model/save.py (SessionSaver.write_layer): Save mask information.
800    
801            * Thuban/UI/mainwindow.py: Register the RasterLayerProperties and
802            Classifier classes as dialogs to use with the proper layer types.
803    
804            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
805            Fix test.
806    
807            * test/test_layer.py (TestLayer.test_raster_layer): Test new methods.
808            (TestLayerModification.build_path): New. Support function.
809            (TestLayerModification.test_raster_layer): New. Test new methods.
810    
811            * test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask.
812    
813            * test/test_load.py (TestRasterLayer): Add tests for mask.
814    
815            * test/test_load_1_0_1.py: New. Copied from test_load.py.
816    
817            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed
818            obsolete optional mask argument.
819    
820    2005-01-26  Nina H�ffmeyer <[email protected]>
821    
822            * Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore
823            which maps the ids and the ordinals. Fixed RowIdToOrdinal(),
824            RowOrdinalToId() and ReadRowAsDict().
825    
826            * Extensions/ogr/ogrstart.py: Added menu item which opens database
827            layers for existing database connections.
828    
829            * Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string.
830    
831    
832    2005-01-26  Jan-Oliver Wagner <[email protected]>
833    
834            * Doc/manual/thuban-manual-de.xml: More translations.
835    
836    2005-01-24  Bernhard Herzog  <[email protected]>
837    
838            Rework the status bar updates a bit to make sure the message about
839            the projections is produced at the right times.
840    
841            * Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages):
842            New class variable with messages that may require a status bar
843            update.
844            (MainWindow.view_position_changed)
845            (MainWindow.update_status_bar): Rename from view_position_changed
846            to update_status_bar.  It's meaning has changed now that it may
847            also generate messages about problems with projection settings.
848            (MainWindow.__init__): Use the new update_status_bar_messages
849            class variable to subscribe update_status_bar
850            (MainWindow.set_position_text): Update doc-string.  This method
851            has to be renamed at some point.  See doc-string and comments.
852            (MainWindow.OnClose): Unsubscribe update_status_bar from all
853            messages in update_status_bar_messages
854    
855            * Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New
856            class attribute.  map messages to be forwarded by the viewport.
857            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe
858            the messages in forwarded_map_messages
859    
860    2005-01-21  Bernhard Herzog  <[email protected]>
861    
862            * test/postgissupport.py (PostGISDatabase.__init__): Tweak
863            doc-string
864            (find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
865            different name for the initialization SQL file.
866    
867    2005-01-21  Jonathan Coles <[email protected]>
868    
869            * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
870            a projection and returns a formatted string representing the
871            parameters to feed to gdalwarp. This function eliminates
872            redundancy in draw_raster_layer().
873            (BaseRenderer.render_map_incrementally): Removed the optimization which
874            drew the top most raster layer first and then only those vector-
875            based layers that are above it. With the support for transparency
876            this optimization breaks correct behaviour.
877            (BaseRenderer.draw_raster_layer): Reorganize code to support possible
878            future enhancements to raster layer bounding box. The old behaviour has
879            not changed. Also, change calling parameters to draw_raster_data()
880            to specify new RAW data format and mask.
881            (BaseRenderer.draw_raster_data): Change signature to include an optional
882            parameter for mask information. Change documentation to mention
883            support for new parameter and added option for RAW data format.
884            The data argument is now a list of [width, height, data].
885    
886            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional
887            mask parameter. Add new condition for RAW format, which
888            significantly reduces rendering time. Add condition for
889            mask parameter.
890    
891            * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
892            data array of RGB values from the projected image returned from
893            the gdal warping functions. In the case of palette based images, it
894            converts the NO_DATA index to the mask color.
895            (ProjectRasterFile): Removed all custom memory driver references
896            and replaced it with the standard in-memory dataset provided
897            by gdal. The return data is no longer a BMP file, but an array
898            of RGB values, one set triple per pixel.
899    
900            * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
901            * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
902            * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
903    
904            * setup.py (thuban_build_ext.finalize_options): Removed mention
905            of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
906            files. These are obsolete with the new version of gdalwarp.cpp
907    
908            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
909            Updated signature.
910            (TestBaseRenderer.test_raster_no_projection): Changed the test
911            data to be data in the uncompressed RAW format returned from
912            ProjectRasterFile.
913    
914    2005-01-21  Jan-Oliver Wagner <[email protected]>
915    
916            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made
917            string available for i18n.
918    
919    2005-01-20  Russell Nelson  <[email protected]>
920    
921            * Resources/Projections/defaults.proj: Ruin the speling of the
922            Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
923            It's the wrong thing to do in the long run, but it's necessary for
924            those users until that bug is fixed.  Otherwise the projection
925            dialog segfaults.  Better to annoy some Lambert-93 users with a
926            spelling mistake than every Fedora Core 3 user of Thuban-CVS.
927    
928    2005-01-20  Bernhard Reiter <[email protected]>
929    
930            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added
931            docstring and comment that the warning code here is a hack.
932    
933    2005-01-20  Russell Nelson  <[email protected]>
934    
935            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn
936            user about misprojected layers when their lat/lon bounding
937            box exceeds rational lat/lon values.
938    
939    2005-01-20  Bernhard Reiter <[email protected]>
940    
941            * Thuban/UI/about.py (unicodeToLocale): Improved:
942            Use 'ascii' and then 'replace' for other characters
943            when getdefaultlocale returns None. Thanks to Bernhard H. .
944    
945    2005-01-20  Bernhard Reiter <[email protected]>
946    
947            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment
948            that OnRangeText might be called twice and using None as argument.
949    
950    2005-01-20  Bernhard Reiter <[email protected]>
951    
952            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a
953            OnRangeText(0) to work around a different in wx Behaviour noticed
954            on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
955    
956    2005-01-20  Bernhard Reiter <[email protected]>
957    
958            * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
959            None. (Fixes rt#2910.)
960            
961    2005-01-18  Frank Koormann <[email protected]>
962    
963            New Extension: mouseposition
964            Tool to collect mouse click positions (map coordinates) in a dialog.
965    
966            * Extensions/mouseposition/__init__.py: New, extension registration
967    
968            * Extensions/mouseposition/mouseposition.py: New, implements the
969            dialog and adds a tool to Thuban mainwindow.
970    
971            * Extensions/mouseposition/position.xpm: New, icon for tool.
972    
973    2005-01-14  Jan-Oliver Wagner <[email protected]>
974    
975            * Doc/manual/thuban-manual-de.xml: More translations.
976    
977    2005-01-11  Frank Koormann <[email protected]>
978    
979            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
980            Fix indention bug.
981    
982    2005-01-09  Frank Koormann <[email protected]>
983    
984            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
985            BugFix 2901: Explicitly copy layers ClassificationColumn since it
986            is not part of the layers Classification.
987    
988    2005-01-03  Frank Koormann <[email protected]>
989    
990            * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
991            BugFix 2883: Former implementation only worked on classified point
992            layers: KeyError was raised, now use the default size if field is None.
993    
994    2004-12-27  Bernhard Reiter <[email protected]>
995    
996            svgexport 1.0.0cvs: Fixed label export.
997    
998            * Extensions/svgexport/test/test_svgmapwriter.py:
999            class TestSVGRenderer(): New class; new test test_label_font().
1000    
1001            * Extensions/svgexport/svgmapwriter.py
1002            (SVGRenderer.label_font()): initialised Font size with self.factor now,
1003            makes test_label_font happy.
1004    
1005            * Extensions/svgexport/TODO: crossed out fixed label export item.
1006            Added item for options.
1007    
1008            * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
1009    
1010    2004-12-27  Russell Nelson  <[email protected]>
1011    
1012            Middle mouse button pans.
1013    
1014            * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
1015            OnMiddleDown and OnMiddleUp events.
1016            (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
1017            previously used tool.
1018            (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
1019            pressing the middle mouse button.
1020    
1021    2004-12-27  Jan-Oliver Wagner <[email protected]>
1022    
1023            * Doc/manual/thuban-manual-de.xml: More translations.
1024    
1025    2004-12-23  Jan-Oliver Wagner <[email protected]>
1026    
1027            * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
1028            \n to stderr after the warnings. Thanks to Russell Nelson.
1029    
1030    2004-12-20  Nina Hueffmeyer <[email protected]>
1031    
1032            * Extensions/ogr/ogrshapes.py: Fixed some issues from
1033            Bernhard (coding guidelines etc.). Additionally it is now possible to
1034            display shapefiles containing feature collections (e.g.polygons
1035            with holes). Works with gdal 1.2.1 now.
1036    
1037            * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
1038            from Bernhard (coding guidelines etc.). If ogr can't be imported,
1039            tests are skipped now.
1040    
1041            * Extensions/ogr/ogrstart.py: Fixed some typings.
1042    
1043    2004-12-20  Bernhard Reiter <[email protected]>
1044    
1045            * Extensions/svgexport/TODO: updated to add support for
1046            raster layers and labels for 1.0.1.
1047    
1048            * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
1049            Issue a warning now.
1050    
1051    2004-12-19  Bernhard Reiter <[email protected]>
1052    
1053            * Extensions/svgexport/TODO: Added idea to support triggering
1054            the application down the pipe.
1055    
1056    2004-12-19  Bernhard Reiter <[email protected]>
1057    
1058            svgexport: Improved code quality, mainly by better naming.
1059    
1060            * Extensions/svgexport/svgmapwriter.py:
1061            DrawPath() renamed to DrawPolygonPath(),
1062            added documentation, improved comments and variable names.
1063            
1064            * Extensions/svgexport/svgmapwriter.py,
1065              Extensions/svgexport/test/test_svgmapwriter.py:
1066            All using DrawPolygonPath() now, the default parameter closed=True
1067            omitted.
1068    
1069            * Extensions/svgexport/test/test_svgmapwriter.py:
1070            renamed test_polygon_opened() to test_polyline()
1071            renamed test_transparent_polygon() to test_transparent_polyline()
1072    
1073    2004-12-18  Jan-Oliver Wagner <[email protected]>
1074    
1075            Some fixes of gns2shp extension.
1076    
1077            * Extensions/gns2shp/test/__init__.py: New. Make this directory a
1078            package.
1079    
1080            * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
1081            dynamically.
1082    
1083            * Extensions/gns2shp/test/README: Simplified description how to test.
1084    
1085            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
1086            fixed some dimensions of fields according to the GNS documentation
1087            which seems to change undocumented.
1088            Now killing trailing \n and/or \r from MODIFY_DATE.
1089            This fixes RT#2453.
1090    
1091    2004-12-18  Bernhard Reiter <[email protected]>
1092    
1093            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
1094    
1095            * Extensions/svgexport/test/test_svgmapwriter.py:
1096            Added new tests: test_export_polygon_with_hole()
1097            and test_polygon_with_hole().
1098    
1099            * Extensions/svgexport/svgmapwriter.py
1100            (draw_polygon_shape()): Uses DrawPath correctly now.
1101    
1102            * Doc/manual/thuban-manual.xml: Added documentation for stable
1103            extention svgexport.    
1104            * Doc/manual/thuban-manual-de.xml: Copied English section about
1105            svexport over.
1106    
1107            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
1108    
1109            * Extensions/svgexport/svgsaver.py,maplegend.py:
1110            Moved from experimental to stable extension menu.
1111    
1112            * Extensions/svgexport/TODO: updated.
1113    
1114    
1115    2004-12-18  Bernhard Reiter <[email protected]>
1116    
1117            Added Extensions/svgexport/TODO
1118    
1119    2004-12-18  Bernhard Reiter <[email protected]>
1120    
1121            Refactored in svgexport:
1122            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
1123    
1124            * Extensions/svgexport/svgmapwriter.py
1125            Added verbosity level 3 to print out polygon points.
1126            (class Point): added __repr__
1127            (class Brush, __str__()): Added space after ,.
1128            (DrawPolygon): Renamed to DrawPath()
1129            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
1130            (DrawLines): Using DrawPath now.
1131    
1132            * Extensions/svgexport/test/test_svgmapwriter.py:
1133            Replaced DrawPolygon() calls with DrawPath() and put the first argument
1134            inside another list. Adapted test data with a newline before "M".
1135    
1136    2004-12-18  Bernhard Reiter <[email protected]>
1137            
1138            Refactored svgexport tests: 9 double tests runs eliminated;
1139            code size reduced by 8 lines.
1140    
1141            * Extensions/svgexport/test/test_svgmapwriter.py:
1142            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
1143            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
1144            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
1145            this fixed the double running of the nine tests of TestVirtualDC.
1146            (class TestVirtualDC): Using self.dc and self.file from setUp().
1147    
1148    2004-12-17  Bernhard Herzog  <[email protected]>
1149    
1150            Two windows specific fixes ported from thuban-1�0-branch:
1151    
1152            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
1153            instead of getlocale because getlocale doesn't return a usable
1154            encoding name on a german windows 2000
1155    
1156            * setup.py: windows build: Removed the absolute path names and
1157            made all prfixes relative to the directory containing setup.py.
1158            Makes it a little easier to adapt to a different system.
1159    
1160    2004-12-16  Bernhard Herzog  <[email protected]>
1161    
1162            Add support for PostGIS tables with LINESTRING geometries.
1163            Fixes RT#2299
1164    
1165            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
1166    
1167            * test/postgissupport.py
1168            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
1169            table to "roads-multi" because it now uses MULTILINESTRING
1170            geometries and introduce a new "roads" table that uses LINESTRING
1171            (coords_to_multilinestring): Make the doc string more precise
1172            (coords_to_linestring): New.  Create a LINESTRING WKT
1173            representatin
1174            (wkt_converter): Add coords_to_linestring
1175            (upload_shapefile): Rephrase the doc-string a bit.
1176    
1177            * test/test_postgis_db.py (TestPostGISShapestoreArc)
1178            (LineStringTests)
1179            (TestPostGISShapestoreLineString)
1180            (TestPostGISShapestoreMultiLineString): Split
1181            TestPostGISShapestoreArc into a base class LineStringTests and two
1182            derived classes TestPostGISShapestoreLineString for LINESTRING
1183            geometries and TestPostGISShapestoreMultiLineString for
1184            MULTILINESTRING geometries.  Most test methods are in the base
1185            class with the exception of tests that explicitly check the raw
1186            format.
1187    
1188    2004-12-16  Bernhard Herzog  <[email protected]>
1189    
1190            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
1191    
1192            * test/postgissupport.py (find_postgis_sql): Different postgis
1193            versions put the postgis.sql file into slightly different places
1194            so we have to look in both.  The updated doc string describes this
1195            is more detail.
1196    
1197            * test/test_postgis_db.py
1198            (TestPostGISSpecialCases.test_column_name_quoting): The return
1199            value of UniqueValues is unsorted, so it has to be sorted for
1200            comparison.
1201    
1202    2004-12-16  Bernhard Herzog  <[email protected]>
1203    
1204            Fix for RT#2237
1205    
1206            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
1207            panel to be shown is the UnknownProjPanel disable the OK and Try
1208            buttons.  Otherwise enable them.
1209            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
1210            the parameters.  In that case __GetProjection also returns None
1211            now.
1212    
1213    2004-12-15  Bernhard Herzog  <[email protected]>
1214    
1215            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
1216            minimum number of classes to 2.  The calculate_quantiles needs at
1217            least two and raises an exception otherwise.  
1218            Fixes RT#2549
1219    
1220    2004-12-15  Bernhard Herzog  <[email protected]>
1221    
1222            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
1223            so that it returns a result for select statements.
1224            (PostgreSQLServer.server_version): New.  Return the version of the
1225            server software.
1226            (PostgreSQLServer.require_authentication): The format of
1227            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
1228            server version and generate the file in the correct format
1229    
1230    2004-12-15  Bernhard Herzog  <[email protected]>
1231    
1232            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
1233            in the doc string and rephrase it a little.
1234    
1235  2004-12-15  Frank Koormann <[email protected]>  2004-12-15  Frank Koormann <[email protected]>
1236    
1237          * test/test_load.py (TestAltPath.checkSession): New, extended checks if          * test/test_load.py (TestAltPath.checkSession): New, extended checks if

Legend:
Removed from v.2457  
changed lines
  Added in v.2667

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26