/[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 2343 by bernhard, Mon Sep 20 08:13:32 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]>
1236    
1237            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
1238            session has been loaded successfully. The check is called by the relevant
1239            tests after executing load_session().
1240    
1241    2004-12-13  Bernhard Herzog  <[email protected]>
1242    
1243            Make sure the region used to determine which shapes are visible
1244            actually matches the region on the printed page.  If this isn't
1245            done properly some shapes might not be printed.  
1246            Fixes RT #2692
1247    
1248            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
1249            renderer has to be at the same position as the mapregion
1250    
1251            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
1252            has to be moved by (self.shiftx, self.shifty) too.
1253    
1254    2004-12-13  Bernhard Herzog  <[email protected]>
1255    
1256            * libraries/pyprojection/Projection.i: Work around a bug in the
1257            generated python code which leads to exception in the __del__
1258            method when the constructor fails.  See the comments in the code
1259            for more details.
1260    
1261            * libraries/pyprojection/Projection.py: Updated from Projection.i
1262            with SWIG.
1263    
1264    2004-12-13  Bernhard Herzog  <[email protected]>
1265    
1266            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
1267            (TestAltPath.test_02_path_error_fix_from_list)
1268            (TestAltPath.test_05_path_error_fix_from_list_changed)
1269            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
1270            is destroyed in tearDown, so there's no need to do it in a test
1271            case.
1272    
1273            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
1274            debug print
1275    
1276    2004-12-13  Bernhard Herzog  <[email protected]>
1277    
1278            * Extensions/svgexport/test/test_svgmapwriter.py
1279            (TestDrawSplines.setUp): Do not use super with the unittest
1280            classes because in Python 2.2 they're still old-style classes.
1281    
1282    2004-12-13  Frank Koormann <[email protected]>
1283    
1284        Alternative Path feature: When loading a (moved) session where
1285            shapefiles cannot be found, ask the user. Use the specified path
1286            if further shapefiles are missing. However, ask the usr for confirmation
1287            in such cases.
1288    
1289            * test/test_load.py (TestAltPath): New, tests for alternative path feature
1290            in load_session()
1291            (Shapefile_CallBack): Helper, implements controllable callback.
1292    
1293            * Thuban/UI/application.py (ThubanApplication.OnInit):
1294            Added "alt_path" to self.path
1295            (ThubanApplication.OpenSession): Added shapefile_callback as second
1296            callback similar to db_connection_callback.
1297            (ThubanApplication.run_alt_path_dialog): New, implementaion of
1298            shapefile_callback. In addition to raising the dialog the control of
1299            self.path('alt_path') is implemented here.
1300    
1301            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
1302            (SessionLoader.open_shapefile): Open shapefile, eventually with
1303            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
1304            formerly used in start_fileshapesource()/start_layer().
1305            (SessionLoader.start_fileshapesource): Call open_shapefile().
1306            (SessionLoader.start_layer): Call open_shapefile().
1307            (load_session): Added shapefile_callback.
1308    
1309            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
1310            feature (search / check).
1311            
1312            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
1313    
1314    2004-12-11  Bernhard Reiter <[email protected]>
1315    
1316             svgexport 0.9.2: Point size supports for maps.
1317    
1318            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
1319            (def draw_point_shape): new parameter size defaults to 2 as before.
1320            (draw_shape_layer_incrementally): Moved draw_func log line higher.
1321            Added draw_func call with size when dealing with a point layer.
1322    
1323            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
1324            
1325    2004-12-11  Bernhard Reiter <[email protected]>
1326    
1327            Made sure that newlines are inserted in the svg path d attributes
1328            to raise the chance that the line length will be below 255 characters,
1329            as recommended by REC SVG 1.1 in section 8.3.1.
1330    
1331            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
1332            Adding \n before L's and changed whitespace handling.
1333    
1334            * Extensions/svgexport/test/test_svgmapwriter.py:
1335            Adapted tests to new whitespace handling of DrawPolygon.
1336    
1337    2004-12-11  Bernhard Reiter <[email protected]>
1338    
1339            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
1340    
1341            * Extensions/svgexport/test/test_svgmapwriter.py:
1342            Removed test_drawbezier in favour of new test_drawspline3 and
1343            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
1344            All only to test DrawSpline.
1345    
1346            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1347            New implementation now really using the strange algorithm of
1348            xfig 3.1's approximated splines and its conversion to postscript
1349            with one twist: SVG can do quadratic beziers, so skipped translation
1350            to cubic beziers.
1351            (TestWithDC): Typo in comment fixed.
1352    
1353    2004-12-09  Martin Schulze  <[email protected]>
1354    
1355            * Thuban/Model/classgen.py: Added missing character encoding
1356    
1357            * Extensions/wms/properties.py (OpenWMSProperties): removed
1358    
1359            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
1360            support for get_srs_discrepancies() since there are no
1361            discrepancies anymore (was a thinko)
1362    
1363            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
1364            format priority now that more formats are supported globally by
1365            the render engine.
1366    
1367    2004-12-08  Silke Reimer <[email protected]>
1368            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
1369            because it is not available in all versions of ogr
1370    
1371    2004-12-08  Bernhard Reiter <[email protected]>
1372            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
1373            global tests until a real one is commited.
1374    
1375    2004-12-07 Nina H�ffmeyer <[email protected]>
1376    
1377            * /Extensions/ogr/: Adding a new extension to read shapefiles with
1378            ogr. It is planned to add other vector formats.
1379    
1380            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
1381    
1382    2004-12-07  Jan-Oliver Wagner <[email protected]>
1383    
1384            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
1385            part of a (non-)fix to renable that the tests are always
1386            executed.
1387    
1388    2004-12-07  Bernhard Reiter <[email protected]>
1389    
1390            * Extensions/svgexport/test/test_svgmapwriter.py:
1391            Added test_drawbezier() to test DrawSpline().
1392    
1393            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1394            Really implemented bezier drawing.
1395    
1396            * Extensions/svgexport/__init__.py: Bumped version of svgexport
1397            to 0.9.1 because now the legend examples lines styles
1398            will be drawing with beziers.
1399    
1400    2004-12-05  Martin Schulze  <[email protected]>
1401    
1402            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
1403            GIF as supported bitmap image formats (helpful for the WMS extension)
1404    
1405    2004-11-30  Martin Schulze  <[email protected]>
1406    
1407            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
1408            Improved the test for the internal compare method
1409    
1410    2004-11-27  Jan-Oliver Wagner <[email protected]>
1411    
1412            * Thuban/UI/about.py (About.__init__): Added
1413            Norbert Solymosi for hungarian translation and Ole Rahn
1414            as contrbutor. Moved Bernhard Reiter from Contributor
1415            to Developer.
1416    
1417    2004-11-27  Bernhard Reiter <[email protected]>
1418    
1419            * Extensions/svgexport/test/test_svgmapwriter.py:
1420            Removed Jan from author list as he did not change enough significant
1421            lines yet.
1422    
1423            * Extensions/svgexport/__init__.py: Added Bernhard as author
1424            of the Extension.
1425    
1426    2004-11-27  Jan-Oliver Wagner <[email protected]>
1427    
1428            * po/hu.po: New. Hungarian translation. Contributed
1429            by Norbert Solymosi.
1430    
1431    2004-11-26  Bernhard Herzog  <[email protected]>
1432    
1433            * Extensions/svgexport/test/test_svgmapwriter.py
1434            (Testobjectexport.test_transparent_polygon): Commented out some
1435            debug prints
1436    
1437    2004-11-24  Jan-Oliver Wagner <[email protected]>
1438    
1439            Fix broken tests for svg extension and added svg legend
1440            to Experimental menu.
1441    
1442            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
1443            the test run correctly even if the extension is a package.
1444            Also removed the "import Thuban" which makes no sense.
1445    
1446            * Extensions/svgexport/__init__.py: Fix to have the extensions'
1447            test module also be executed from the global test routine.
1448            This is done by looking for the absense of the DISPLAY variable.
1449    
1450            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
1451            to Experimental menu since this module has yet not reached a stable
1452            status (ie. 1.0).
1453    
1454    2004-11-22  Bernhard Reiter <[email protected]>
1455    
1456            * Extensions/svgexport/svgmapwriter.py:
1457            Added verbose variable and some logging depending on it.
1458            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
1459            because counting i is not necessary.
1460            (class Pen, class Brush): Added simple __str__ methods.
1461            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
1462            not exported to svg file) Note: holes still unhandled.
1463    
1464            * Extensions/svgexport/test/test_svgmapwriter.py:
1465                    Made a baseclass TestWithDC for test needed a DC.
1466                    Added tests for bug #2698 (transparent polygons are not
1467                    exported to svg file):
1468                    Testobjectexport.test_transparent_polygon()
1469    
1470            * Thuban/Model/base.py (UnsetModified):
1471            Fixed some typos in docstring.
1472    
1473            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
1474            Added hints on the used algorithm for handling holes.
1475    
1476    2004-11-20  Jan-Oliver Wagner <[email protected]>
1477    
1478            Some face lifting for the examples.
1479    
1480            * Examples/__init__.py: Make this directory a package.
1481    
1482            * Examples/simple_extensions/__init__.py: Make this directory a package.
1483    
1484            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
1485            menu to Examples menu.
1486    
1487            * Examples/simple_extensions/simple_command.py: Some more comments,
1488            minor changes.
1489    
1490            * Examples/simple_extensions/simple_tool.py: Minor changes.
1491    
1492    2004-11-20  Jan-Oliver Wagner <[email protected]>
1493    
1494            Changed way of extension registry for wms and added extension
1495            registry for umn_mapserver extension.
1496    
1497            * Extensions/wms/__init__.py: Added registry entry and the importing
1498            of the actual wms module. Included a test for the required PyOGCLib.
1499    
1500            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
1501    
1502            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
1503            importing of the actual umn mapserver management modules.
1504            Included a test for the required Python MapScript.
1505    
1506    2004-11-20  Jan-Oliver Wagner <[email protected]>
1507    
1508            Changed way of extension registry for importAPR, bboxdump
1509            and added extension registry for svgexport.extension registry for
1510            svgexport.
1511    
1512            * Extensions/importAPR/__init__.py: Added registry entry and the importing
1513            of the actual importAPR module.
1514    
1515            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
1516            __init__.py).
1517    
1518            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
1519            ï¿½ï¿½ï¿½ï¿½of the actual bboxdump module.
1520    
1521            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
1522            ï¿½ï¿½ï¿½ï¿½__init__.py).
1523    
1524            * Extensions/svgexport/__init__.py: Added registry entry and the importing
1525            of the svgsaver module.
1526    
1527            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
1528            to Experimental menu since this module has yet not reached a stable
1529            status (ie. 1.0).
1530    
1531    2004-11-18  Jan-Oliver Wagner <[email protected]>
1532    
1533            Now the hit test considers the size of point symbols.
1534    
1535            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
1536            'size' defaulting to the previously fixed value 5.
1537            Extended doc-string.
1538            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
1539            for symbols.
1540            Now the size of the largest point symbol is determined to find out
1541            about whether the point has been hit.
1542            This fixes the problem that only clicks inside a fixed distance of
1543            5 where found.
1544    
1545    2004-11-17  Jan-Oliver Wagner <[email protected]>
1546    
1547            Another open issue fixed regarding sizeable symbols: correct rendering of
1548            selected symbols.
1549    
1550            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
1551            Added consideration of the specific size of point symbols.
1552            The property for each point symbol is retrieved and the size applied
1553            for the rendering method.
1554            Added doc-string.
1555    
1556    2004-11-16  Jan-Oliver Wagner <[email protected]>
1557    
1558            Changed way of Extension Registry for gns2shp and profiling.
1559    
1560            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
1561            __init__.py).
1562    
1563            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
1564            of the actual gns2shp module.
1565    
1566            * Extensions/profiling/profiling.py: Removed registry entry (moved to
1567            __init__.py).
1568    
1569            * Extensions/profiling/__init__.py: Added registry entry and the importing
1570            of the actual profiling module.
1571    
1572    2004-10-28  Bernhard Reiter <[email protected]>
1573    
1574            * Extensions/svgexport/: Minor improvements to doc strings.
1575    
1576    2004-10-07  Jan-Oliver Wagner <[email protected]>
1577    
1578            Further elements for sizable point objects now
1579            making this feature usable though not yet complete.
1580    
1581            * Thuban/Model/save.py (SessionSaver.write_classification): Write
1582            attribute 'size' for cldata when the shape layer is of point type.
1583            This also now make the test_load.py tests happy.
1584    
1585            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
1586            gradient.
1587    
1588            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
1589            ID_SELPROP_SPINCTRL_LINEWIDTH.
1590            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
1591            (ID_SELPROP_SPINCTRL_SIZE): New Id.
1592            (SelectPropertiesDialog.__init__): Added a second spin control
1593            for the size in case the corresponding layer is of point type.
1594            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
1595            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
1596            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
1597            and refresh preview.
1598    
1599    
1600    
1601    2004-10-04  Martin Schulze  <[email protected]>
1602    
1603            * Extensions/wms/test/test_parser.py
1604            (TestWMSCapabilitiesParser.test_compareLists): Added missing
1605            self-test for compareLists()
1606            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
1607            self-test for compareDicts()
1608            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
1609            to verify the test routine fails with non-equal arguments
1610            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
1611            to verify the test routine fails with non-equal arguments
1612    
1613    2004-10-03  Jan-Oliver Wagner <[email protected]>
1614    
1615            First elements for sizeable point objects.
1616    
1617            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
1618    
1619            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
1620    
1621            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
1622            of a corresponding argument is given.
1623            (TestSymbolSize): New. Test the size attribute of cldata.
1624    
1625            * Thuban/Model/classification.py: Removed some trailing whitespaces.
1626            (ClassGroupProperties.__init__): Set default size.
1627            (ClassGroupProperties.SetProperties): Set the size.
1628            (ClassGroupProperties.GetSize): New. Return the size.
1629            (ClassGroupProperties.SetSize): New. Set the size.
1630            (ClassGroupProperties__eq__): Compare also size.
1631            (ClassGroupProperties__repr__): Print also size.
1632    
1633            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
1634            the size attribute.
1635    
1636            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
1637            Also, now there is a return value that indicates whether the drawing
1638            size exceeded the given rect extent and if so the new extent.
1639            Finally, point objects are drawn depending on the size. If either
1640            the width or height is exceeded, the new extent is returned.
1641            (ClassRenderer.Draw): Now when calling the previewer drawing function,
1642            evaluate the return value and, if not None, adapt the grid widget size
1643            accordingly and redraw again.
1644    
1645            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
1646            If the draw function is for points, call it with the size as additional
1647            parameter.
1648            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
1649            the size. Compute the radius using the size.
1650    
1651            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
1652            that Thuban supports size, apply this correctly.
1653    
1654            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
1655    
1656    2004-10-03  Jan-Oliver Wagner <[email protected]>
1657    
1658            * Doc/manual/thuban-manual-de.xml: Started translation of
1659            Map chapter.
1660    
1661    2004-10-01  Martin Schulze  <[email protected]>
1662    
1663            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
1664            argument for general use through properties-dialog selector
1665            
1666            * Thuban/UI/classifier.py: Register properties dialog classes for
1667            both provided layer classes/types.
1668    
1669            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
1670            map can be retrieved through the parent which is passed to the
1671            constructor anyway and doesn't require an argument of its own,
1672            required for the unification of arguments for general use through
1673            properties-dialog selector.
1674            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
1675            whether a dialog is already opened (and raising it to the users
1676            attention) and creating a new dialog into a function of its own
1677            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
1678            method
1679            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
1680            global registration of properties dialog classes (which are indeed
1681            layer-specific).
1682    
1683            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
1684            for general use through properties-dialog selector, the map can be
1685            retrieved through the parent and doesn't require an argument of
1686            its own.
1687    
1688            * Extensions/wms/wms.py: Register the properties dialog class for
1689            the provided WMS layer
1690    
1691    2004-09-28  Jan-Oliver Wagner <[email protected]>
1692    
1693            New feature: Registry for Extensions.
1694    
1695            * Thuban/UI/extensionregistry.py: This module defines a registry for
1696            Extensions.
1697    
1698            * Thuban/UI/about.py (About.__init__): Added description
1699            of the registered extensions with all of the information.
1700    
1701            * Thuban/Model/extension.py (Extension): Improved doc-string.
1702    
1703            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
1704            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
1705            Extensions/wms/wms.py: Added registration of the extension.
1706    
1707    2004-09-27  Bernhard Reiter <[email protected]>
1708    
1709            More fixes to svgexport to make used ids unique and
1710            conforming to XML's Name production.
1711    
1712            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
1713            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
1714            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
1715            Added Bernhard R. as author.
1716            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
1717            concatenation char now (makes test_make_ide_nosetbaseid() valid).
1718            Also transform second id part with "%d" and catch the TypeError
1719            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
1720            Corrected typo inBernhard's author line.
1721            (SetBaseID): Return the transformed base id. Transform characters
1722            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
1723            import binascii. If to be set string starts with "xml" or so, add "t".
1724            (draw_shape_layer_incrementally): use the returned value of SetBaseID
1725            for used_baseids checks.
1726    
1727    2004-09-25  Bernhard Herzog  <[email protected]>
1728    
1729            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1730            Remove a debug print and some tab characters.
1731    
1732    2004-09-25  Bernhard Reiter <[email protected]>
1733    
1734            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
1735            (SetBaseID, SetID, make_id): Improved docstring comments to explain
1736            the interaction of the three functions and the XML id contrains.
1737    
1738    
1739    2004-09-23  Jan-Oliver Wagner <[email protected]>
1740    
1741            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
1742            Module.
1743    
1744            * Doc/README: Added info on ThubanModel.xmi.
1745    
1746    2004-09-23  Jan-Oliver Wagner <[email protected]>
1747    
1748            * Doc/README: New. Some info about how to generate technical
1749            documentation from the source code.
1750            This text was send to the Thuban developer mailing list on
1751            September 21st 2004 by Bernhard Reiter.
1752    
1753    2004-09-21  Bernhard Reiter <[email protected]>
1754    
1755            Improved the svgexport to only use unique ids. Will issues
1756            an error message dialoge when two layer names are the same.
1757            ShapeIDs are now added with a dash within the svg ids.
1758    
1759            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
1760            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
1761            (TestSVGRenderer): New test class with test_make_in() and
1762            test_check_for_layer_name_clash()
1763            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
1764            and draw_shape_layer_incrementally() to not use a baseid twice,
1765            satisfying test_check_for_layer_name_clash()
1766            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
1767            test_make_in().
1768            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
1769            and wxICON_HAND.
1770            (write_to_svg): Put dc and rendering in a try statement and on
1771            catching SVGmapWriterError notify the user and delete the target file.
1772    
1773  2004-09-20  Bernhard Reiter <[email protected]>  2004-09-20  Bernhard Reiter <[email protected]>
1774    
1775          * Model/base.by, Model/layer.py: Fixed typos in docstrings.          * Model/base.by, Model/layer.py: Fixed typos in docstrings.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26