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

Legend:
Removed from v.2381  
changed lines
  Added in v.2670

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26