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

Legend:
Removed from v.2472  
changed lines
  Added in v.2675

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26