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

Legend:
Removed from v.2431  
changed lines
  Added in v.2664

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26