/[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 2206 by jan, Wed May 12 21:13:54 2004 UTC revision 2667 by jan, Thu Aug 11 21:34:22 2005 UTC
# Line 1  Line 1 
1    2005-08-11  Jan-Oliver Wagner <[email protected]>
2    
3            * Extensions/export_shapefile: New.
4    
5            * Extensions/export_shapefile/__init__.py: New. Initialize
6            the export_shapefile extension.
7    
8            * Extensions/export_shapefile/export_shapefile.py: New.
9            Exports a layer as a Shapefile.
10    
11    2005-08-08  Jan-Oliver Wagner <[email protected]>
12    
13            * po/de.po: String fixes. This fixes Debian bug #313843.
14    
15    2005-07-27  Jan-Oliver Wagner <[email protected]>
16    
17            Remove the attributes from the layer element in
18            .thuban files for the save routine.
19            This also solves RT bug #3149,
20            https://intevation.de/rt/webrt?serial_num=3149
21    
22            * test/test_load.py: (TestSingleLayer, TestNonAsciiColumnName,
23            TestLayerVisibility, TestSymbolSize, TestClassification, TestLabels,
24            TestLayerProjection, TestJoinedTable, TestLabelLayer): Removed
25            attributes from layer element to classification clnull element.
26    
27            * test/test_save.py (SaveSessionTest.testSingleLayer,
28            SaveSessionTest.testLayerProjection,
29            SaveSessionTest.testClassifiedLayer,
30            SaveSessionTest.test_joined_table, SaveSessionTest.test_save_postgis):
31            Removed attributes from layer element to classification clnull element.
32            (test_save_postgis.NonConnectionStore._fetch_table_information):
33            added pretending to have a shape_type.
34    
35            * Resources/XML/thuban-1.1.dtd: Make the attributes field
36            and field_type of classification optional.
37    
38            * Thuban/Model/classification.py (Classification.TreeItem.build_info):
39            Added output of size.
40    
41            * Thuban/Model/load.py (SessionLoader.start_classification):
42            Change attribute 'field' and 'field_type' from obligatory to
43            optional to allow empty classes (ie.  only with a default=clnull).
44    
45            * Thuban/Model/save.py (SessionSaver.write_layer): Don't write
46            any attributes anymore for the layer element.
47            (SessionSaver.write_classification): Even if there is no
48            classification field, still write the classification because
49            the clnull (default) symbol will not be defined anymore as
50            part of the layer element.
51    
52    2005-07-05  Bernhard Herzog  <[email protected]>
53    
54            * setup.py (setup call): Version 1.1.0
55    
56            * NEWS: Update for 1.1.0
57    
58            * MANIFEST.in: Add *.txt to files taken from Doc.  Otherwise the
59            technores won't be included
60    
61            * Thuban/UI/about.py (About.__init__): Extend copyright notice to
62            2005
63    
64            * po/de.po: Updated.
65    
66    2005-07-05  Bernhard Herzog  <[email protected]>
67    
68            * README: gdal 1.1.8 is too old.  1.2.5 works.
69    
70    2005-07-05  Bernhard Herzog  <[email protected]>
71    
72            * Resources/XML/thuban-1.1.dtd (rasterlayer): Add the opacity and
73            masktype attributes.
74    
75    2005-07-05  Bernhard Herzog  <[email protected]>
76    
77            * Thuban/Model/layer.py (Layer.__mangle_bounding_box)
78            (Layer.ClipBoundingBox): Rename ClipBoundingBox to
79            __mangle_bounding_box.  See the comments in the code and RT #2845
80    
81            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
82            Remove the explicit test of ClipBoundingBox.  The method isn't
83            public anymore and the direct call in the test wasn't necessary in
84            the first place.  If ClipBoundingBox (now __mangle_bounding_box)
85            isn't called, the return value of ShapesInRegion will be
86            different.
87    
88    2005-07-05  Bernhard Herzog  <[email protected]>
89    
90            * Thuban/UI/viewport.py (ViewPort.set_view_transform): Handle
91            ZeroDivisionError exceptions.  I don't know when they happen
92            exactly.  It probably happens when the projections aren't set
93            properly.
94    
95    2005-07-01  Bernhard Herzog  <[email protected]>
96    
97            First step towards unicode.  With this roughly we're at step 1
98            string_representation.txt
99    
100            * Doc/technotes/string_representation.txt: New.  Document how
101            strings are represented in Thuban and how to get to a Unicode
102            Thuban.
103    
104            * Thuban/__init__.py (set_internal_encoding)
105            (unicode_from_internal, internal_from_unicode): New. The first few
106            functions for the internal string representation
107    
108            * Thuban/UI/about.py (unicodeToLocale): Removed.  Use
109            internal_from_unicode instead.
110    
111            * Thuban/UI/__init__.py (install_wx_translation): Determine the
112            encoding to use for the internal string representation.  Also,
113            change the translation function to return strings in internal
114            representation even on unicode builds of wxPython
115    
116            * Thuban/Model/load.py (SessionLoader.check_attrs): Decode
117            filenames too.
118            (SessionLoader.start_clrange): Use check_attrs to decode and check
119            the attributes.
120    
121            * Thuban/Model/xmlreader.py (XMLReader.encode): Use
122            internal_from_unicode to convert unicode strings.
123    
124            * Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
125            unicode_from_internal when applicable
126    
127            * test/runtests.py (main): New command line option:
128            internal-encoding to specify the internal string encoding to use
129            in the tests.
130    
131            * test/support.py (initthuban): Set the internal encoding to
132            latin-1
133    
134            * test/test_load.py (TestSingleLayer.test, TestClassification.test)
135            (TestLabelLayer.test): Use the internal string representation when
136            dealing with non-ascii characters
137    
138            * test/test_load_1_0.py (TestSingleLayer.test)
139            (TestClassification.test, TestLabelLayer.test): Use the internal
140            string representation when dealing with non-ascii characters
141    
142            * test/test_load_0_9.py (TestSingleLayer.test)
143            (TestClassification.test): Use the internal string representation
144            when dealing with non-ascii characters
145    
146            * test/test_load_0_8.py (TestUnicodeStrings.test): Use the
147            internal string representation when dealing with non-ascii
148            characters
149    
150            * test/test_save.py (XMLWriterTest.testEncode)
151            (SaveSessionTest.testClassifiedLayer): Use the internal string
152            representation when dealing with non-ascii characters where
153            applicable
154    
155    2005-06-30  Bernhard Herzog  <[email protected]>
156    
157            * test/runtests.py: Untabify.
158    
159    2005-06-30  Bernhard Herzog  <[email protected]>
160    
161            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
162            untabify.
163    
164    2005-06-30  Bernhard Herzog  <[email protected]>
165    
166            * Extensions/ogr/test/__init__.py: Add missing coding directive
167    
168    2005-06-28  Jan-Oliver Wagner <[email protected]>
169    
170            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
171            Use the default size for rendering selected items of default type.
172            Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
173    
174    2005-06-28  Jan-Oliver Wagner <[email protected]>
175    
176            * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
177            (APR_TClr.GetThubanColor): Fix bug in color interpretation.
178            Thanks to Frank Koormann who identified this problem.
179    
180            * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
181            another symbol identified.
182    
183    2005-06-27  Jan-Oliver Wagner <[email protected]>
184    
185            * Doc/manual/thuban-manual-de.xml: More translations.
186    
187    2005-05-12  Jonathan Coles <[email protected]>
188            
189            * Thuban/UI/projdialog.py: Add missing import, which led to an
190            exception when opening a layer's projection.
191    
192    2005-05-09  Bernhard Herzog  <[email protected]>
193    
194            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
195    
196    2005-05-09  Bernhard Herzog  <[email protected]>
197    
198            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
199            connection to autoconnect.  Fixes RT#3148.
200    
201            * test/test_postgis_db.py
202            (TestPostGISSpecialCases.test_simple_error_handling): New test
203            that attempts to reproduce RT#3148.
204    
205    2005-05-06  Jonathan Coles <[email protected]>
206    
207            Add support for saving and loading the opacity and mask type
208            properties of RasterLayers. Also add support for proper use
209            of alpha information while drawing images not in 'RAW' format.
210            If transparency in an image format (e.g, PNG) is supported by
211            wxWidgets then the image would previously have been draw with
212            transparent regions, but the opaque regions would have been
213            unaffected by a change in the layer's opacity. This patch
214            corrects the problem.
215    
216            * Thuban/Model/layer.py (RasterLayer): Added opacity and
217            masktype parameters to the constructor, and set the
218            appropriate variables to those values.
219    
220            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
221            code to read the opacity and mask type of the layer and construct
222            a new layer with the additional parameters.
223    
224            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
225            to save the opacity and mask type of a layer.
226    
227            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
228            the opacity of the layer to draw_raster_data rather than the layer.
229            (BaseRenderer.draw_raster_data): Remove the layer parameter because
230            the function doesn't need to know about the layer. Add the optional
231            opacity parameter whose default is 1.0. Add 'PNG' as a supported
232            graphics format.
233    
234            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
235            signature to match that in BaseRenderer. Use the new opacity argument
236            in place of calling layer.Opacity(). In the case where the
237            format is not 'RAW', alpha_data is None and the loaded image has
238            alpha information, use the file's alpha information. This is
239            still subject to the layer's opacity setting.
240    
241            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
242            Fixed signature to match that in BaseRenderer.
243    
244            * test/test_load.py (TestRasterLayer): Change file_contents to
245            include opacity and masktype variables.
246            (TestRasterLayer.test): Include tests for opacity and masktype
247            changes.
248    
249            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
250            test to cover a variety of combinations of masktype and opacity
251            settings.
252    
253    2005-05-02  Jan-Oliver Wagner <[email protected]>
254    
255            * debian/rules: add --use-wx-python-swig-hack
256            to the build command.
257            Thanks to Moritz Lennert for pointing this out.
258    
259    2005-04-28  Jan-Oliver Wagner <[email protected]>
260    
261            Introduce OGRFileShapeStore in ogr extension.
262            This allows at least that loaded shapefile shape stores
263            can be saved correctly in the thuban session file
264            and reloaded again (reload is via core shapefile
265            routine, not OGR). For other types, .thuban files
266            can not be reloaded for the time being.
267    
268            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
269            class ist to be used for any file-based shape stores
270            accessed through OGR.
271    
272            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
273            forgotten _ for i18n. Adapted call OpenFileShapestore
274            regarding new parameter.
275            (OpenFileShapestore): Use OGRFileShapeStore instead of
276            OGRShapeStore. Fix return value (None instead of null).
277            Add new parameter "mainwindow" to avoid accessing global
278            context.
279    
280    2005-04-27  Jan-Oliver Wagner <[email protected]>
281    
282            Introduce FileShapeStore as generalization for
283            file-based shape stores. In a first instance
284            this allows additional modules to handle shapefile
285            format as well, namely the OGR extension.
286    
287            * Thuban/Model/data.py: Various small fixes in doc-strings.
288            (FileShapeStore): New class.
289            (ShapefileStore): Derive from FileShapeStore.
290            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
291            rename self.table to self._table, initialize self._bbox
292            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
293            and self.FileName() instead of self.filename.
294            (ShapefileStore.Table): Use self._table instead of self.table.
295            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
296            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
297    
298            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
299            (SessionSaver.write_data_containers): Only use methods of the
300            base class FileShapeStore.
301    
302    2005-04-26  Martin Schulze  <[email protected]>
303    
304            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
305            function to the modified render engine
306    
307    2005-04-25  Martin Schulze  <[email protected]>
308    
309            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
310            Added a description according to the CVS log message
311    
312    2005-04-23  Martin Schulze  <[email protected]>
313    
314            * Thuban/UI/renderer.py: Added a missing import
315    
316    2005-04-23  Russell Nelson  <[email protected]>
317    
318            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
319            way the previous tool is remembered, so that middle-button
320            panning works even if you haven't selected a tool.
321    
322    2005-04-11  Bernhard Herzog  <[email protected]>
323    
324            * libraries/thuban/wxproj.cpp: Move the compatibility code that
325            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
326            branch that includes wxPython.h because it's only needed when
327            wxPython.h is used.  Also, it won't compile when
328            USE_WX_PYTHON_SWIG_HACK is set otherwise.
329    
330    2005-04-07  Bernhard Herzog  <[email protected]>
331    
332            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
333            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
334            ClassGrid.__init__ and it's value is outside of the valid
335            range (must be < 32768).  wxPython 2.5 complains about it with an
336            exception.
337    
338    2005-04-05  Jan-Oliver Wagner <[email protected]>
339    
340            * Doc/manual/thuban-manual-de.xml: More translations.
341    
342    2005-04-05  Bernhard Herzog  <[email protected]>
343    
344            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
345            wxPython 2.4 as well.  Also, remove a now obsolete comment.
346    
347    2005-04-05  Bernhard Herzog  <[email protected]>
348    
349            Use wxPython.h by default but provide a workaround when it isn't
350            available.
351    
352            * setup.py (wxproj_extension): New variable.  Assign the Extension
353            instance for Lib.wxproj to this variable instead of putting it
354            directly into the listso that it can be accessed by other code
355            later.
356            (thuban_build_ext.user_options): Added boolean option
357            --use-wx-python-swig-hack.
358            (thuban_build_ext.initialize_options): Initialize the new option
359            to False.
360            (thuban_build_ext.finalize_options): If the new option was given,
361            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
362            (thuban_build_ext): Update the doc-string
363    
364            * libraries/thuban/wxproj.cpp: Normally we use
365            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
366            defined, use swigPtrConvertHack.h instead.
367    
368            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
369            copied over from wxPython.h.
370            (decode_pointer_new): New.  Equivalent of decode_pointer for
371            wxPython 2.5.
372            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
373    
374            * README: Add section on potential build problems which explains
375            how the work-around for a missing wxPython.h is activated.
376    
377    2005-03-29  Bernhard Herzog  <[email protected]>
378    
379            * test/postgissupport.py (find_postgis_sql): Added yet another
380            potential location for (lw)postgis.sql because the file has moved
381            again in postgis 1.0.0 rc4.
382    
383    2005-03-29  Bernhard Herzog  <[email protected]>
384    
385            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
386            match the site of the legend_icon_layer icon.  Otherwise wxpython
387            2.5 complains when the legend is created with the error:
388    
389            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
390            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
391            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
392            in wxImageList: this might work on this platform but definitely
393            won't under Windows.
394    
395    2005-03-23  Jonathan Coles <[email protected]>
396    
397            These changes add support for adjusting the opacity of a raster layer.
398    
399            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
400            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
401            a LAYER_CHANGED event if the opacity actually changes.
402    
403            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
404            layer parameter needed in the implementation of this method in
405            renderer.py.
406    
407            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
408            typo 00 -> 0.
409    
410            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
411            control to adjust opacity.
412    
413            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
414            alpha data based on the opacity level of the layer.
415    
416            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
417            accepts a layer parameter.
418    
419            * test/test_layer.py (TestLayerModification.test_raster_layer):
420            Rename opacity method calls and add test for LAYER_CHANGED.
421    
422    2005-03-16  Bernhard Herzog  <[email protected]>
423    
424            * test/test_connector.py (DeletionTestMixin.check_deletions)
425            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
426            update the callers.
427    
428    2005-03-14  Jan-Oliver Wagner <[email protected]>
429    
430            * Doc/manual/thuban-manual-de.xml: More translations.
431    
432    2005-03-10  Jan-Oliver Wagner <[email protected]>
433    
434            Introducing initialization callbacks for extensions.
435    
436            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
437            optional parameter init_callback.
438            (ExtensionDesc.init_ext): New. Executes the callback and sets
439            a status.
440    
441            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
442            initialization of the extensions.
443            (ThubanApplication.init_extensions): Init all extensions.
444    
445            * Thuban/UI/about.py (About.__init__): Added status of the extensions
446            to the about text.
447    
448            * Extensions/gns2shp/__init__.py: Added init method for Extension
449            description.
450            (init): New. Contains the initialization of the module.
451    
452    2005-03-04  Nina H�ffmeyer <[email protected]>
453    
454            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
455            OGRConnection to open a datasource. Removed dialog to display all
456            available drivers. Added some doc strings.
457    
458            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
459            OGRDatasource with a string. Added two opening methods which return an
460            OGRDatasource (either data from file or from DB).
461    
462            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
463            represents a geometry reference of an OGRFeature. OGRShape now has a
464            list of referenced geometry objects (important for geometry
465            collections).
466            For OGRShapeStores loaded from a DB an ID column can be specified now.
467    
468    2005-02-22  Jan-Oliver Wagner <[email protected]>
469    
470            * test/test_map.py (TestMapWithContents.test_tree_info):
471            Added label layer for comparison.
472    
473    2005-02-18  Jonathan Coles <[email protected]>
474    
475            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
476            which builds a mask. Handle the majority of an image in a loop,
477            creating 8 bits at a time. Later, handle the edge case where less
478            than 8 bits are packed.
479    
480    2005-02-18  Bernhard Herzog  <[email protected]>
481    
482            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
483            doc-string
484    
485    2005-02-18  Jonathan Coles <[email protected]>
486    
487            * setup.py: Remove wx_cs_params from gdal compile options.
488    
489    2005-02-18  Jonathan Coles <[email protected]>
490    
491            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
492            dependencies on wxPython. Added a new method projected_raster_layer()
493            that returns a raster layer image in projected space. This must be
494            implemented in classes derived from BaseRenderer. This also eliminates
495            the dependency on gdal in baserenderer.py.
496    
497            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
498            new projected_raster_layer() to get projected raster image instead
499            of directly calling ProjectRasterFile().
500            (BaseRenderer.projected_raster_layer): New. This must be implemented
501            by derived classes. It takes almost the same arguments as ProjectRasterFile
502            did and returns a projected image with mask and alpha data (if requested).
503            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
504            that check will be done in MapRenderer.projected_raster_layer(). This
505            also allows other implementations to use different projection code.
506    
507            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
508            Implementation of BaseRenderer.projected_raster_layer. Checks for
509            gdal support and wxPython version. Also handles exceptions from
510            ProjectRasterFile.
511    
512            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
513            and added a variable which can be set through the options argument
514            of ProjectRasterFile.
515    
516            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
517            Calls ProjectRasterFile and returns the result.
518            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
519            of calling projected_raster_layer() with different options.
520            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
521            wxPython version and all tests of masks and alpha channels. These are
522            now in test_projected_raster_layer().
523    
524    2005-02-17  Jan-Oliver Wagner <[email protected]>
525    
526            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
527            doc-strings to comply with coding_guidelines.
528    
529    2005-02-17  Jan-Oliver Wagner <[email protected]>
530    
531            Docstring improvements and minor fixes for labellayer.
532    
533            * Thuban/Model/map.py:
534            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
535            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
536            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
537            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
538            doc string.
539            (Map.BoundingBox): Removed superfluous test for label_layer
540            and improved doc string.
541            (Map.TreeInfo): Added label_layer and improved sdo string.
542    
543            * Thuban/Model/label.py: Added import of _.
544            (Label, Label.__init__): Improved/added doc string.
545            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
546            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
547            Improved/added doc string.
548            (LabelLayer.AddLabel): Use already defined names for
549            align strings and improved doc string.
550            (LabelLayer.TreeInfo): New. Return the object data for
551            the tree view.
552    
553    2005-02-16  Jonathan Coles <[email protected]>
554    
555            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
556            so that that wxproj doesn't crash. Added GUI support for selecting
557            alpha channel (opacity can't be selected yet).
558    
559            NOTE: If wxPython.h is including in future distribution packages
560            then it will not be necessary to have the files swigPtrConvertHack.h
561            and wxPython_int.h included with Thuban. This is hopefully
562            a temporary workaround.
563    
564            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
565            access to the macro wxCHECK_VERSION so that it will properly
566            generate a bit mask. There was a problem between wx2.4 and wx2.5
567            that this works around.
568    
569            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
570            of RasterLayer.MaskType.
571            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
572            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
573            specify none, a bitmap, or an alpha channel.
574            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
575    
576            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
577            Set the raster warping options for the mask based on the value
578            of RasterLayer.MaskType.
579    
580            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
581            deprecated calls to SetItemSelectedImage in favor of SetItemImage
582            with wxTreeItemIcon_Selected.
583    
584            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
585            an alpha channel for the mask.
586    
587            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
588            data if it is available and an alpha channel is supported under
589            the current version of wxPython.
590    
591            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
592            to select whether 1's or 0's select the desired portion of an image
593            in the bit mask. wx2.4 has a bug where the documentation is the opposite
594            from behavior.
595            (ProjectRasterFile): Only generate an alpha channel if the version
596            of wxPython is >= 2.5.3.
597    
598            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
599            When wxPython >= 2.5.3 use the special swig functions to decode an
600            object's address.
601    
602            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
603            based on the version of wxPython. If >= 2.5.3 use the special swig
604            functions from wxPython to decode wxPython objects, otherwise use
605            the old method of retrieving the address from the object __repr__ string.
606    
607            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
608            Unnecessary code was removed to make it smaller.
609    
610            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
611            Add tests for returning an alpha channel.
612    
613            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
614            tests that used removed functions UseMask and SetUseMask
615    
616    
617    2005-02-08  Bernhard Herzog  <[email protected]>
618    
619            More wxPython 2.5 changes.  This time taken from a patch from
620            Daniel Calvelo Aros.
621    
622            * Thuban/UI/tableview.py (QueryTableFrame.__init__)
623            (QueryTableFrame.__init__): Pass the size of a spacer as a single
624            item.
625    
626            * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
627            (ProjFrame.build_dialog): Pass the size of a spacer as a single
628            item.
629    
630            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
631            size of a spacer as a single item.
632    
633            * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
634            size of a spacer as a single item.
635    
636    2005-02-08  Bernhard Herzog  <[email protected]>
637    
638            Compatibility with wxPython 2.5.  The changes should make it work
639            better with 2.5 while still keeping compatibility with 2.4.  There
640            are still problems with 2.5, though.
641    
642            * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
643            of a spacer as a single item.
644    
645            * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
646            from wxControl
647    
648            * Thuban/UI/legend.py (LegendTree): When running with wxPython <
649            2.5, add an implementation of the GetFirstChild method that does
650            not require the second parameter.
651            (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
652            (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
653            (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
654            pass the second parameter to GetFirstChild
655    
656    2005-02-08  Nina H�ffmeyer <[email protected]>
657    
658            * Extensions/ogr/ogrshapes.py: Removed some print commands.
659    
660            * Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an
661            additional menu but appears as a possibility in the menu Map.
662    
663    2005-02-07  Jonathan Coles <[email protected]>
664            * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR
665            and PYTHON_ERRF since they were no longer necessary.
666    
667    2005-02-07  Bernhard Reiter <[email protected]>
668            * Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows):
669            Enable translation for message string.
670    
671    2005-02-06  Martin Schulze  <[email protected]>
672    
673            * Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted
674            the arguments of the contstructor to fit the global scheme
675    
676    2005-01-31  Nina H�ffmeyer <[email protected]>
677    
678            * Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides
679            some dialogs needed to start ogr.
680            
681            * Extensions/ogr/__init__.py: Changed comments to avoid encoding
682            warnings.
683    
684            * Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid
685            encoding warnings.
686    
687    2005-01-28  Jonathan Coles <[email protected]>
688    
689            * libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the
690            mask is packed into a bit array. It's now slightly faster.
691    
692    2005-01-28  Jonathan Coles <[email protected]>
693    
694            * Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask
695            default to true.
696    
697            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove
698            code that loads the state of the layer's use_mask flag. Its
699            usefulness is still being debated.
700    
701            * Thuban/Model/save.py (SessionSaver.write_layer): Remove
702            code that saves the state of the layer's use_mask flag. Its
703            usefulness is still being debated.
704    
705            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
706            options to ProjectRasterFile based on the state of layer.UseMask().
707            Catch more exceptions from ProjectRasterFile so that Thuban doesn't
708            quit is there is a problem projecting.
709            (BaseRenderer.draw_raster_data): Change the documentation to
710            describe the new format (XBM) that the mask data will be in.
711    
712            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask
713            data is in XBM format when format='RAW' which means it doesn't
714            need to be converted to a wxImage before being used as a mask
715            for a wxBitmap. Assume that if format != 'RAW' that the image
716            data and mask data are in the same format.
717    
718            * libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled
719            and a mask is requested, convert the alpha band to a bit array in
720            XBM format. if an alpha channel is requested, simply return the
721            data in the alpha band. Provide better error handling by returning
722            python error messages (also fixes RT #2947).
723            (ProjectRasterFile): Support multiple mask options, rather than simply
724            a flag indicating that a mask should or should not be used. Provide
725            better error handling by returning python error messages.
726    
727            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
728            Add mask data to test.
729    
730            * test/test_layer.py (TestLayer.test_raster_layer): Test that a layer
731            should use the mask by default.
732            (TestLayerModificaton.test_raster_layer): Test that a layer should use
733            the mask by default.
734    
735            * test/test_load.py (TestRasterLayer.test): Remove testing for
736            use_mask flag in file.
737    
738            * test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing
739            for use_mask in file.
740    
741            * test/test_load_1_0_1.py: Removed. Shouldn't have been checked in.
742            
743    2005-01-26  Jonathan Coles <[email protected]>
744    
745            Add a new dialog box for raster layers. The dialog box allows
746            the user to toggle a mask that is generated by ProjectRasterFile
747            and is used to only draw the real parts of the projected image.
748    
749            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
750            Instruct the warping code to generate a mask if the raster layer
751            requests one.
752            (BaseRenderer.draw_raster_data): Removed obsolete optional mask argument.
753    
754            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed
755            obsolete optional mask argument.
756    
757            * Thuban/UI/classifier.py (Classifier): Change the parent class
758            to LayerProperties and rework the code to support layout calls
759            from the parent.
760            (Classifier.dialog_layout): New. Layout the dialog box.
761            (Classifier.map_layers_removed): Removed. Moved to parent class.
762            (Classifier.map_replaced): Removed. Moved to parent class.
763            (Classifier._OnTry): Renamed to OnTry to support parent class.
764            (Classifier.OnClose): Removed. Supplied in parent class.
765            (Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn.
766            (Classifier._OnOK): Renamed to OnOK to support parent class.
767            (Classifier._OnRevert): Renamed to OnRevert to support parent class.
768    
769            * Thuban/UI/layerproperties.py: New. Base class for layer properties
770            dialog boxes.
771    
772            * Thuban/UI/rasterlayerproperties.py: New. Class for displaying
773            raster layer properties.
774    
775            * libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code
776            with the non-simple version supplied with gdal. This allows added
777            features such as creating an alpha band.
778            (GetImageData): Generate a mask array from the alpha band that is
779            generated by gdal if the user has selected it. Try to support images
780            that have more than three bands, such as images with RGB plus an
781            alpha band.
782            (ProjectRasterFile): Convert python argument for mask and tell
783            gdal to enable or disable an alpha band.
784    
785            * Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string
786            describing what kind of layer the class is. Defaults to "Unknown",
787            but should be overridden by subclasses.
788            (Layer.Type): New. Override base class method.
789            (RasterLayer.__init__): Create a flag for using a mask. Record extra
790            data from gdal for display in the properties dialog.
791            (RasterLayer.Type): New. Override base class method.
792            (RasterLayer.UseMask): New. Returns True if the mask should be used.
793            (RasterLayer.SetUseMask): New. Set if the mask should be used.
794            (RasterLayer.ImageInfo): New. Return extra information about the image.
795    
796            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load
797            the mask information.
798    
799            * Thuban/Model/save.py (SessionSaver.write_layer): Save mask information.
800    
801            * Thuban/UI/mainwindow.py: Register the RasterLayerProperties and
802            Classifier classes as dialogs to use with the proper layer types.
803    
804            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
805            Fix test.
806    
807            * test/test_layer.py (TestLayer.test_raster_layer): Test new methods.
808            (TestLayerModification.build_path): New. Support function.
809            (TestLayerModification.test_raster_layer): New. Test new methods.
810    
811            * test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask.
812    
813            * test/test_load.py (TestRasterLayer): Add tests for mask.
814    
815            * test/test_load_1_0_1.py: New. Copied from test_load.py.
816    
817            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed
818            obsolete optional mask argument.
819    
820    2005-01-26  Nina H�ffmeyer <[email protected]>
821    
822            * Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore
823            which maps the ids and the ordinals. Fixed RowIdToOrdinal(),
824            RowOrdinalToId() and ReadRowAsDict().
825    
826            * Extensions/ogr/ogrstart.py: Added menu item which opens database
827            layers for existing database connections.
828    
829            * Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string.
830    
831    
832    2005-01-26  Jan-Oliver Wagner <[email protected]>
833    
834            * Doc/manual/thuban-manual-de.xml: More translations.
835    
836    2005-01-24  Bernhard Herzog  <[email protected]>
837    
838            Rework the status bar updates a bit to make sure the message about
839            the projections is produced at the right times.
840    
841            * Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages):
842            New class variable with messages that may require a status bar
843            update.
844            (MainWindow.view_position_changed)
845            (MainWindow.update_status_bar): Rename from view_position_changed
846            to update_status_bar.  It's meaning has changed now that it may
847            also generate messages about problems with projection settings.
848            (MainWindow.__init__): Use the new update_status_bar_messages
849            class variable to subscribe update_status_bar
850            (MainWindow.set_position_text): Update doc-string.  This method
851            has to be renamed at some point.  See doc-string and comments.
852            (MainWindow.OnClose): Unsubscribe update_status_bar from all
853            messages in update_status_bar_messages
854    
855            * Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New
856            class attribute.  map messages to be forwarded by the viewport.
857            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe
858            the messages in forwarded_map_messages
859    
860    2005-01-21  Bernhard Herzog  <[email protected]>
861    
862            * test/postgissupport.py (PostGISDatabase.__init__): Tweak
863            doc-string
864            (find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
865            different name for the initialization SQL file.
866    
867    2005-01-21  Jonathan Coles <[email protected]>
868    
869            * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
870            a projection and returns a formatted string representing the
871            parameters to feed to gdalwarp. This function eliminates
872            redundancy in draw_raster_layer().
873            (BaseRenderer.render_map_incrementally): Removed the optimization which
874            drew the top most raster layer first and then only those vector-
875            based layers that are above it. With the support for transparency
876            this optimization breaks correct behaviour.
877            (BaseRenderer.draw_raster_layer): Reorganize code to support possible
878            future enhancements to raster layer bounding box. The old behaviour has
879            not changed. Also, change calling parameters to draw_raster_data()
880            to specify new RAW data format and mask.
881            (BaseRenderer.draw_raster_data): Change signature to include an optional
882            parameter for mask information. Change documentation to mention
883            support for new parameter and added option for RAW data format.
884            The data argument is now a list of [width, height, data].
885    
886            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional
887            mask parameter. Add new condition for RAW format, which
888            significantly reduces rendering time. Add condition for
889            mask parameter.
890    
891            * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
892            data array of RGB values from the projected image returned from
893            the gdal warping functions. In the case of palette based images, it
894            converts the NO_DATA index to the mask color.
895            (ProjectRasterFile): Removed all custom memory driver references
896            and replaced it with the standard in-memory dataset provided
897            by gdal. The return data is no longer a BMP file, but an array
898            of RGB values, one set triple per pixel.
899    
900            * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
901            * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
902            * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
903    
904            * setup.py (thuban_build_ext.finalize_options): Removed mention
905            of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
906            files. These are obsolete with the new version of gdalwarp.cpp
907    
908            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
909            Updated signature.
910            (TestBaseRenderer.test_raster_no_projection): Changed the test
911            data to be data in the uncompressed RAW format returned from
912            ProjectRasterFile.
913    
914    2005-01-21  Jan-Oliver Wagner <[email protected]>
915    
916            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made
917            string available for i18n.
918    
919    2005-01-20  Russell Nelson  <[email protected]>
920    
921            * Resources/Projections/defaults.proj: Ruin the speling of the
922            Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
923            It's the wrong thing to do in the long run, but it's necessary for
924            those users until that bug is fixed.  Otherwise the projection
925            dialog segfaults.  Better to annoy some Lambert-93 users with a
926            spelling mistake than every Fedora Core 3 user of Thuban-CVS.
927    
928    2005-01-20  Bernhard Reiter <[email protected]>
929    
930            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added
931            docstring and comment that the warning code here is a hack.
932    
933    2005-01-20  Russell Nelson  <[email protected]>
934    
935            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn
936            user about misprojected layers when their lat/lon bounding
937            box exceeds rational lat/lon values.
938    
939    2005-01-20  Bernhard Reiter <[email protected]>
940    
941            * Thuban/UI/about.py (unicodeToLocale): Improved:
942            Use 'ascii' and then 'replace' for other characters
943            when getdefaultlocale returns None. Thanks to Bernhard H. .
944    
945    2005-01-20  Bernhard Reiter <[email protected]>
946    
947            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment
948            that OnRangeText might be called twice and using None as argument.
949    
950    2005-01-20  Bernhard Reiter <[email protected]>
951    
952            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a
953            OnRangeText(0) to work around a different in wx Behaviour noticed
954            on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
955    
956    2005-01-20  Bernhard Reiter <[email protected]>
957    
958            * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
959            None. (Fixes rt#2910.)
960            
961    2005-01-18  Frank Koormann <[email protected]>
962    
963            New Extension: mouseposition
964            Tool to collect mouse click positions (map coordinates) in a dialog.
965    
966            * Extensions/mouseposition/__init__.py: New, extension registration
967    
968            * Extensions/mouseposition/mouseposition.py: New, implements the
969            dialog and adds a tool to Thuban mainwindow.
970    
971            * Extensions/mouseposition/position.xpm: New, icon for tool.
972    
973    2005-01-14  Jan-Oliver Wagner <[email protected]>
974    
975            * Doc/manual/thuban-manual-de.xml: More translations.
976    
977    2005-01-11  Frank Koormann <[email protected]>
978    
979            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
980            Fix indention bug.
981    
982    2005-01-09  Frank Koormann <[email protected]>
983    
984            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
985            BugFix 2901: Explicitly copy layers ClassificationColumn since it
986            is not part of the layers Classification.
987    
988    2005-01-03  Frank Koormann <[email protected]>
989    
990            * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
991            BugFix 2883: Former implementation only worked on classified point
992            layers: KeyError was raised, now use the default size if field is None.
993    
994    2004-12-27  Bernhard Reiter <[email protected]>
995    
996            svgexport 1.0.0cvs: Fixed label export.
997    
998            * Extensions/svgexport/test/test_svgmapwriter.py:
999            class TestSVGRenderer(): New class; new test test_label_font().
1000    
1001            * Extensions/svgexport/svgmapwriter.py
1002            (SVGRenderer.label_font()): initialised Font size with self.factor now,
1003            makes test_label_font happy.
1004    
1005            * Extensions/svgexport/TODO: crossed out fixed label export item.
1006            Added item for options.
1007    
1008            * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
1009    
1010    2004-12-27  Russell Nelson  <[email protected]>
1011    
1012            Middle mouse button pans.
1013    
1014            * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
1015            OnMiddleDown and OnMiddleUp events.
1016            (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
1017            previously used tool.
1018            (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
1019            pressing the middle mouse button.
1020    
1021    2004-12-27  Jan-Oliver Wagner <[email protected]>
1022    
1023            * Doc/manual/thuban-manual-de.xml: More translations.
1024    
1025    2004-12-23  Jan-Oliver Wagner <[email protected]>
1026    
1027            * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
1028            \n to stderr after the warnings. Thanks to Russell Nelson.
1029    
1030    2004-12-20  Nina Hueffmeyer <[email protected]>
1031    
1032            * Extensions/ogr/ogrshapes.py: Fixed some issues from
1033            Bernhard (coding guidelines etc.). Additionally it is now possible to
1034            display shapefiles containing feature collections (e.g.polygons
1035            with holes). Works with gdal 1.2.1 now.
1036    
1037            * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
1038            from Bernhard (coding guidelines etc.). If ogr can't be imported,
1039            tests are skipped now.
1040    
1041            * Extensions/ogr/ogrstart.py: Fixed some typings.
1042    
1043    2004-12-20  Bernhard Reiter <[email protected]>
1044    
1045            * Extensions/svgexport/TODO: updated to add support for
1046            raster layers and labels for 1.0.1.
1047    
1048            * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
1049            Issue a warning now.
1050    
1051    2004-12-19  Bernhard Reiter <[email protected]>
1052    
1053            * Extensions/svgexport/TODO: Added idea to support triggering
1054            the application down the pipe.
1055    
1056    2004-12-19  Bernhard Reiter <[email protected]>
1057    
1058            svgexport: Improved code quality, mainly by better naming.
1059    
1060            * Extensions/svgexport/svgmapwriter.py:
1061            DrawPath() renamed to DrawPolygonPath(),
1062            added documentation, improved comments and variable names.
1063            
1064            * Extensions/svgexport/svgmapwriter.py,
1065              Extensions/svgexport/test/test_svgmapwriter.py:
1066            All using DrawPolygonPath() now, the default parameter closed=True
1067            omitted.
1068    
1069            * Extensions/svgexport/test/test_svgmapwriter.py:
1070            renamed test_polygon_opened() to test_polyline()
1071            renamed test_transparent_polygon() to test_transparent_polyline()
1072    
1073    2004-12-18  Jan-Oliver Wagner <[email protected]>
1074    
1075            Some fixes of gns2shp extension.
1076    
1077            * Extensions/gns2shp/test/__init__.py: New. Make this directory a
1078            package.
1079    
1080            * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
1081            dynamically.
1082    
1083            * Extensions/gns2shp/test/README: Simplified description how to test.
1084    
1085            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
1086            fixed some dimensions of fields according to the GNS documentation
1087            which seems to change undocumented.
1088            Now killing trailing \n and/or \r from MODIFY_DATE.
1089            This fixes RT#2453.
1090    
1091    2004-12-18  Bernhard Reiter <[email protected]>
1092    
1093            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
1094    
1095            * Extensions/svgexport/test/test_svgmapwriter.py:
1096            Added new tests: test_export_polygon_with_hole()
1097            and test_polygon_with_hole().
1098    
1099            * Extensions/svgexport/svgmapwriter.py
1100            (draw_polygon_shape()): Uses DrawPath correctly now.
1101    
1102            * Doc/manual/thuban-manual.xml: Added documentation for stable
1103            extention svgexport.    
1104            * Doc/manual/thuban-manual-de.xml: Copied English section about
1105            svexport over.
1106    
1107            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
1108    
1109            * Extensions/svgexport/svgsaver.py,maplegend.py:
1110            Moved from experimental to stable extension menu.
1111    
1112            * Extensions/svgexport/TODO: updated.
1113    
1114    
1115    2004-12-18  Bernhard Reiter <[email protected]>
1116    
1117            Added Extensions/svgexport/TODO
1118    
1119    2004-12-18  Bernhard Reiter <[email protected]>
1120    
1121            Refactored in svgexport:
1122            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
1123    
1124            * Extensions/svgexport/svgmapwriter.py
1125            Added verbosity level 3 to print out polygon points.
1126            (class Point): added __repr__
1127            (class Brush, __str__()): Added space after ,.
1128            (DrawPolygon): Renamed to DrawPath()
1129            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
1130            (DrawLines): Using DrawPath now.
1131    
1132            * Extensions/svgexport/test/test_svgmapwriter.py:
1133            Replaced DrawPolygon() calls with DrawPath() and put the first argument
1134            inside another list. Adapted test data with a newline before "M".
1135    
1136    2004-12-18  Bernhard Reiter <[email protected]>
1137            
1138            Refactored svgexport tests: 9 double tests runs eliminated;
1139            code size reduced by 8 lines.
1140    
1141            * Extensions/svgexport/test/test_svgmapwriter.py:
1142            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
1143            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
1144            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
1145            this fixed the double running of the nine tests of TestVirtualDC.
1146            (class TestVirtualDC): Using self.dc and self.file from setUp().
1147    
1148    2004-12-17  Bernhard Herzog  <[email protected]>
1149    
1150            Two windows specific fixes ported from thuban-1�0-branch:
1151    
1152            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
1153            instead of getlocale because getlocale doesn't return a usable
1154            encoding name on a german windows 2000
1155    
1156            * setup.py: windows build: Removed the absolute path names and
1157            made all prfixes relative to the directory containing setup.py.
1158            Makes it a little easier to adapt to a different system.
1159    
1160    2004-12-16  Bernhard Herzog  <[email protected]>
1161    
1162            Add support for PostGIS tables with LINESTRING geometries.
1163            Fixes RT#2299
1164    
1165            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
1166    
1167            * test/postgissupport.py
1168            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
1169            table to "roads-multi" because it now uses MULTILINESTRING
1170            geometries and introduce a new "roads" table that uses LINESTRING
1171            (coords_to_multilinestring): Make the doc string more precise
1172            (coords_to_linestring): New.  Create a LINESTRING WKT
1173            representatin
1174            (wkt_converter): Add coords_to_linestring
1175            (upload_shapefile): Rephrase the doc-string a bit.
1176    
1177            * test/test_postgis_db.py (TestPostGISShapestoreArc)
1178            (LineStringTests)
1179            (TestPostGISShapestoreLineString)
1180            (TestPostGISShapestoreMultiLineString): Split
1181            TestPostGISShapestoreArc into a base class LineStringTests and two
1182            derived classes TestPostGISShapestoreLineString for LINESTRING
1183            geometries and TestPostGISShapestoreMultiLineString for
1184            MULTILINESTRING geometries.  Most test methods are in the base
1185            class with the exception of tests that explicitly check the raw
1186            format.
1187    
1188    2004-12-16  Bernhard Herzog  <[email protected]>
1189    
1190            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
1191    
1192            * test/postgissupport.py (find_postgis_sql): Different postgis
1193            versions put the postgis.sql file into slightly different places
1194            so we have to look in both.  The updated doc string describes this
1195            is more detail.
1196    
1197            * test/test_postgis_db.py
1198            (TestPostGISSpecialCases.test_column_name_quoting): The return
1199            value of UniqueValues is unsorted, so it has to be sorted for
1200            comparison.
1201    
1202    2004-12-16  Bernhard Herzog  <[email protected]>
1203    
1204            Fix for RT#2237
1205    
1206            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
1207            panel to be shown is the UnknownProjPanel disable the OK and Try
1208            buttons.  Otherwise enable them.
1209            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
1210            the parameters.  In that case __GetProjection also returns None
1211            now.
1212    
1213    2004-12-15  Bernhard Herzog  <[email protected]>
1214    
1215            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
1216            minimum number of classes to 2.  The calculate_quantiles needs at
1217            least two and raises an exception otherwise.  
1218            Fixes RT#2549
1219    
1220    2004-12-15  Bernhard Herzog  <[email protected]>
1221    
1222            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
1223            so that it returns a result for select statements.
1224            (PostgreSQLServer.server_version): New.  Return the version of the
1225            server software.
1226            (PostgreSQLServer.require_authentication): The format of
1227            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
1228            server version and generate the file in the correct format
1229    
1230    2004-12-15  Bernhard Herzog  <[email protected]>
1231    
1232            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
1233            in the doc string and rephrase it a little.
1234    
1235    2004-12-15  Frank Koormann <[email protected]>
1236    
1237            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
1238            session has been loaded successfully. The check is called by the relevant
1239            tests after executing load_session().
1240    
1241    2004-12-13  Bernhard Herzog  <[email protected]>
1242    
1243            Make sure the region used to determine which shapes are visible
1244            actually matches the region on the printed page.  If this isn't
1245            done properly some shapes might not be printed.  
1246            Fixes RT #2692
1247    
1248            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
1249            renderer has to be at the same position as the mapregion
1250    
1251            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
1252            has to be moved by (self.shiftx, self.shifty) too.
1253    
1254    2004-12-13  Bernhard Herzog  <[email protected]>
1255    
1256            * libraries/pyprojection/Projection.i: Work around a bug in the
1257            generated python code which leads to exception in the __del__
1258            method when the constructor fails.  See the comments in the code
1259            for more details.
1260    
1261            * libraries/pyprojection/Projection.py: Updated from Projection.i
1262            with SWIG.
1263    
1264    2004-12-13  Bernhard Herzog  <[email protected]>
1265    
1266            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
1267            (TestAltPath.test_02_path_error_fix_from_list)
1268            (TestAltPath.test_05_path_error_fix_from_list_changed)
1269            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
1270            is destroyed in tearDown, so there's no need to do it in a test
1271            case.
1272    
1273            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
1274            debug print
1275    
1276    2004-12-13  Bernhard Herzog  <[email protected]>
1277    
1278            * Extensions/svgexport/test/test_svgmapwriter.py
1279            (TestDrawSplines.setUp): Do not use super with the unittest
1280            classes because in Python 2.2 they're still old-style classes.
1281    
1282    2004-12-13  Frank Koormann <[email protected]>
1283    
1284        Alternative Path feature: When loading a (moved) session where
1285            shapefiles cannot be found, ask the user. Use the specified path
1286            if further shapefiles are missing. However, ask the usr for confirmation
1287            in such cases.
1288    
1289            * test/test_load.py (TestAltPath): New, tests for alternative path feature
1290            in load_session()
1291            (Shapefile_CallBack): Helper, implements controllable callback.
1292    
1293            * Thuban/UI/application.py (ThubanApplication.OnInit):
1294            Added "alt_path" to self.path
1295            (ThubanApplication.OpenSession): Added shapefile_callback as second
1296            callback similar to db_connection_callback.
1297            (ThubanApplication.run_alt_path_dialog): New, implementaion of
1298            shapefile_callback. In addition to raising the dialog the control of
1299            self.path('alt_path') is implemented here.
1300    
1301            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
1302            (SessionLoader.open_shapefile): Open shapefile, eventually with
1303            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
1304            formerly used in start_fileshapesource()/start_layer().
1305            (SessionLoader.start_fileshapesource): Call open_shapefile().
1306            (SessionLoader.start_layer): Call open_shapefile().
1307            (load_session): Added shapefile_callback.
1308    
1309            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
1310            feature (search / check).
1311            
1312            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
1313    
1314    2004-12-11  Bernhard Reiter <[email protected]>
1315    
1316             svgexport 0.9.2: Point size supports for maps.
1317    
1318            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
1319            (def draw_point_shape): new parameter size defaults to 2 as before.
1320            (draw_shape_layer_incrementally): Moved draw_func log line higher.
1321            Added draw_func call with size when dealing with a point layer.
1322    
1323            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
1324            
1325    2004-12-11  Bernhard Reiter <[email protected]>
1326    
1327            Made sure that newlines are inserted in the svg path d attributes
1328            to raise the chance that the line length will be below 255 characters,
1329            as recommended by REC SVG 1.1 in section 8.3.1.
1330    
1331            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
1332            Adding \n before L's and changed whitespace handling.
1333    
1334            * Extensions/svgexport/test/test_svgmapwriter.py:
1335            Adapted tests to new whitespace handling of DrawPolygon.
1336    
1337    2004-12-11  Bernhard Reiter <[email protected]>
1338    
1339            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
1340    
1341            * Extensions/svgexport/test/test_svgmapwriter.py:
1342            Removed test_drawbezier in favour of new test_drawspline3 and
1343            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
1344            All only to test DrawSpline.
1345    
1346            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1347            New implementation now really using the strange algorithm of
1348            xfig 3.1's approximated splines and its conversion to postscript
1349            with one twist: SVG can do quadratic beziers, so skipped translation
1350            to cubic beziers.
1351            (TestWithDC): Typo in comment fixed.
1352    
1353    2004-12-09  Martin Schulze  <[email protected]>
1354    
1355            * Thuban/Model/classgen.py: Added missing character encoding
1356    
1357            * Extensions/wms/properties.py (OpenWMSProperties): removed
1358    
1359            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
1360            support for get_srs_discrepancies() since there are no
1361            discrepancies anymore (was a thinko)
1362    
1363            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
1364            format priority now that more formats are supported globally by
1365            the render engine.
1366    
1367    2004-12-08  Silke Reimer <[email protected]>
1368            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
1369            because it is not available in all versions of ogr
1370    
1371    2004-12-08  Bernhard Reiter <[email protected]>
1372            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
1373            global tests until a real one is commited.
1374    
1375    2004-12-07 Nina H�ffmeyer <[email protected]>
1376    
1377            * /Extensions/ogr/: Adding a new extension to read shapefiles with
1378            ogr. It is planned to add other vector formats.
1379    
1380            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
1381    
1382    2004-12-07  Jan-Oliver Wagner <[email protected]>
1383    
1384            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
1385            part of a (non-)fix to renable that the tests are always
1386            executed.
1387    
1388    2004-12-07  Bernhard Reiter <[email protected]>
1389    
1390            * Extensions/svgexport/test/test_svgmapwriter.py:
1391            Added test_drawbezier() to test DrawSpline().
1392    
1393            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1394            Really implemented bezier drawing.
1395    
1396            * Extensions/svgexport/__init__.py: Bumped version of svgexport
1397            to 0.9.1 because now the legend examples lines styles
1398            will be drawing with beziers.
1399    
1400    2004-12-05  Martin Schulze  <[email protected]>
1401    
1402            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
1403            GIF as supported bitmap image formats (helpful for the WMS extension)
1404    
1405    2004-11-30  Martin Schulze  <[email protected]>
1406    
1407            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
1408            Improved the test for the internal compare method
1409    
1410    2004-11-27  Jan-Oliver Wagner <[email protected]>
1411    
1412            * Thuban/UI/about.py (About.__init__): Added
1413            Norbert Solymosi for hungarian translation and Ole Rahn
1414            as contrbutor. Moved Bernhard Reiter from Contributor
1415            to Developer.
1416    
1417    2004-11-27  Bernhard Reiter <[email protected]>
1418    
1419            * Extensions/svgexport/test/test_svgmapwriter.py:
1420            Removed Jan from author list as he did not change enough significant
1421            lines yet.
1422    
1423            * Extensions/svgexport/__init__.py: Added Bernhard as author
1424            of the Extension.
1425    
1426    2004-11-27  Jan-Oliver Wagner <[email protected]>
1427    
1428            * po/hu.po: New. Hungarian translation. Contributed
1429            by Norbert Solymosi.
1430    
1431    2004-11-26  Bernhard Herzog  <[email protected]>
1432    
1433            * Extensions/svgexport/test/test_svgmapwriter.py
1434            (Testobjectexport.test_transparent_polygon): Commented out some
1435            debug prints
1436    
1437    2004-11-24  Jan-Oliver Wagner <[email protected]>
1438    
1439            Fix broken tests for svg extension and added svg legend
1440            to Experimental menu.
1441    
1442            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
1443            the test run correctly even if the extension is a package.
1444            Also removed the "import Thuban" which makes no sense.
1445    
1446            * Extensions/svgexport/__init__.py: Fix to have the extensions'
1447            test module also be executed from the global test routine.
1448            This is done by looking for the absense of the DISPLAY variable.
1449    
1450            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
1451            to Experimental menu since this module has yet not reached a stable
1452            status (ie. 1.0).
1453    
1454    2004-11-22  Bernhard Reiter <[email protected]>
1455    
1456            * Extensions/svgexport/svgmapwriter.py:
1457            Added verbose variable and some logging depending on it.
1458            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
1459            because counting i is not necessary.
1460            (class Pen, class Brush): Added simple __str__ methods.
1461            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
1462            not exported to svg file) Note: holes still unhandled.
1463    
1464            * Extensions/svgexport/test/test_svgmapwriter.py:
1465                    Made a baseclass TestWithDC for test needed a DC.
1466                    Added tests for bug #2698 (transparent polygons are not
1467                    exported to svg file):
1468                    Testobjectexport.test_transparent_polygon()
1469    
1470            * Thuban/Model/base.py (UnsetModified):
1471            Fixed some typos in docstring.
1472    
1473            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
1474            Added hints on the used algorithm for handling holes.
1475    
1476    2004-11-20  Jan-Oliver Wagner <[email protected]>
1477    
1478            Some face lifting for the examples.
1479    
1480            * Examples/__init__.py: Make this directory a package.
1481    
1482            * Examples/simple_extensions/__init__.py: Make this directory a package.
1483    
1484            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
1485            menu to Examples menu.
1486    
1487            * Examples/simple_extensions/simple_command.py: Some more comments,
1488            minor changes.
1489    
1490            * Examples/simple_extensions/simple_tool.py: Minor changes.
1491    
1492    2004-11-20  Jan-Oliver Wagner <[email protected]>
1493    
1494            Changed way of extension registry for wms and added extension
1495            registry for umn_mapserver extension.
1496    
1497            * Extensions/wms/__init__.py: Added registry entry and the importing
1498            of the actual wms module. Included a test for the required PyOGCLib.
1499    
1500            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
1501    
1502            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
1503            importing of the actual umn mapserver management modules.
1504            Included a test for the required Python MapScript.
1505    
1506    2004-11-20  Jan-Oliver Wagner <[email protected]>
1507    
1508            Changed way of extension registry for importAPR, bboxdump
1509            and added extension registry for svgexport.extension registry for
1510            svgexport.
1511    
1512            * Extensions/importAPR/__init__.py: Added registry entry and the importing
1513            of the actual importAPR module.
1514    
1515            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
1516            __init__.py).
1517    
1518            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
1519            ����of the actual bboxdump module.
1520    
1521            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
1522            ����__init__.py).
1523    
1524            * Extensions/svgexport/__init__.py: Added registry entry and the importing
1525            of the svgsaver module.
1526    
1527            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
1528            to Experimental menu since this module has yet not reached a stable
1529            status (ie. 1.0).
1530    
1531    2004-11-18  Jan-Oliver Wagner <[email protected]>
1532    
1533            Now the hit test considers the size of point symbols.
1534    
1535            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
1536            'size' defaulting to the previously fixed value 5.
1537            Extended doc-string.
1538            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
1539            for symbols.
1540            Now the size of the largest point symbol is determined to find out
1541            about whether the point has been hit.
1542            This fixes the problem that only clicks inside a fixed distance of
1543            5 where found.
1544    
1545    2004-11-17  Jan-Oliver Wagner <[email protected]>
1546    
1547            Another open issue fixed regarding sizeable symbols: correct rendering of
1548            selected symbols.
1549    
1550            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
1551            Added consideration of the specific size of point symbols.
1552            The property for each point symbol is retrieved and the size applied
1553            for the rendering method.
1554            Added doc-string.
1555    
1556    2004-11-16  Jan-Oliver Wagner <[email protected]>
1557    
1558            Changed way of Extension Registry for gns2shp and profiling.
1559    
1560            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
1561            __init__.py).
1562    
1563            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
1564            of the actual gns2shp module.
1565    
1566            * Extensions/profiling/profiling.py: Removed registry entry (moved to
1567            __init__.py).
1568    
1569            * Extensions/profiling/__init__.py: Added registry entry and the importing
1570            of the actual profiling module.
1571    
1572    2004-10-28  Bernhard Reiter <[email protected]>
1573    
1574            * Extensions/svgexport/: Minor improvements to doc strings.
1575    
1576    2004-10-07  Jan-Oliver Wagner <[email protected]>
1577    
1578            Further elements for sizable point objects now
1579            making this feature usable though not yet complete.
1580    
1581            * Thuban/Model/save.py (SessionSaver.write_classification): Write
1582            attribute 'size' for cldata when the shape layer is of point type.
1583            This also now make the test_load.py tests happy.
1584    
1585            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
1586            gradient.
1587    
1588            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
1589            ID_SELPROP_SPINCTRL_LINEWIDTH.
1590            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
1591            (ID_SELPROP_SPINCTRL_SIZE): New Id.
1592            (SelectPropertiesDialog.__init__): Added a second spin control
1593            for the size in case the corresponding layer is of point type.
1594            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
1595            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
1596            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
1597            and refresh preview.
1598    
1599    
1600    
1601    2004-10-04  Martin Schulze  <[email protected]>
1602    
1603            * Extensions/wms/test/test_parser.py
1604            (TestWMSCapabilitiesParser.test_compareLists): Added missing
1605            self-test for compareLists()
1606            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
1607            self-test for compareDicts()
1608            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
1609            to verify the test routine fails with non-equal arguments
1610            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
1611            to verify the test routine fails with non-equal arguments
1612    
1613    2004-10-03  Jan-Oliver Wagner <[email protected]>
1614    
1615            First elements for sizeable point objects.
1616    
1617            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
1618    
1619            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
1620    
1621            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
1622            of a corresponding argument is given.
1623            (TestSymbolSize): New. Test the size attribute of cldata.
1624    
1625            * Thuban/Model/classification.py: Removed some trailing whitespaces.
1626            (ClassGroupProperties.__init__): Set default size.
1627            (ClassGroupProperties.SetProperties): Set the size.
1628            (ClassGroupProperties.GetSize): New. Return the size.
1629            (ClassGroupProperties.SetSize): New. Set the size.
1630            (ClassGroupProperties__eq__): Compare also size.
1631            (ClassGroupProperties__repr__): Print also size.
1632    
1633            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
1634            the size attribute.
1635    
1636            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
1637            Also, now there is a return value that indicates whether the drawing
1638            size exceeded the given rect extent and if so the new extent.
1639            Finally, point objects are drawn depending on the size. If either
1640            the width or height is exceeded, the new extent is returned.
1641            (ClassRenderer.Draw): Now when calling the previewer drawing function,
1642            evaluate the return value and, if not None, adapt the grid widget size
1643            accordingly and redraw again.
1644    
1645            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
1646            If the draw function is for points, call it with the size as additional
1647            parameter.
1648            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
1649            the size. Compute the radius using the size.
1650    
1651            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
1652            that Thuban supports size, apply this correctly.
1653    
1654            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
1655    
1656    2004-10-03  Jan-Oliver Wagner <[email protected]>
1657    
1658            * Doc/manual/thuban-manual-de.xml: Started translation of
1659            Map chapter.
1660    
1661    2004-10-01  Martin Schulze  <[email protected]>
1662    
1663            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
1664            argument for general use through properties-dialog selector
1665            
1666            * Thuban/UI/classifier.py: Register properties dialog classes for
1667            both provided layer classes/types.
1668    
1669            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
1670            map can be retrieved through the parent which is passed to the
1671            constructor anyway and doesn't require an argument of its own,
1672            required for the unification of arguments for general use through
1673            properties-dialog selector.
1674            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
1675            whether a dialog is already opened (and raising it to the users
1676            attention) and creating a new dialog into a function of its own
1677            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
1678            method
1679            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
1680            global registration of properties dialog classes (which are indeed
1681            layer-specific).
1682    
1683            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
1684            for general use through properties-dialog selector, the map can be
1685            retrieved through the parent and doesn't require an argument of
1686            its own.
1687    
1688            * Extensions/wms/wms.py: Register the properties dialog class for
1689            the provided WMS layer
1690    
1691    2004-09-28  Jan-Oliver Wagner <[email protected]>
1692    
1693            New feature: Registry for Extensions.
1694    
1695            * Thuban/UI/extensionregistry.py: This module defines a registry for
1696            Extensions.
1697    
1698            * Thuban/UI/about.py (About.__init__): Added description
1699            of the registered extensions with all of the information.
1700    
1701            * Thuban/Model/extension.py (Extension): Improved doc-string.
1702    
1703            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
1704            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
1705            Extensions/wms/wms.py: Added registration of the extension.
1706    
1707    2004-09-27  Bernhard Reiter <[email protected]>
1708    
1709            More fixes to svgexport to make used ids unique and
1710            conforming to XML's Name production.
1711    
1712            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
1713            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
1714            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
1715            Added Bernhard R. as author.
1716            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
1717            concatenation char now (makes test_make_ide_nosetbaseid() valid).
1718            Also transform second id part with "%d" and catch the TypeError
1719            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
1720            Corrected typo inBernhard's author line.
1721            (SetBaseID): Return the transformed base id. Transform characters
1722            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
1723            import binascii. If to be set string starts with "xml" or so, add "t".
1724            (draw_shape_layer_incrementally): use the returned value of SetBaseID
1725            for used_baseids checks.
1726    
1727    2004-09-25  Bernhard Herzog  <[email protected]>
1728    
1729            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1730            Remove a debug print and some tab characters.
1731    
1732    2004-09-25  Bernhard Reiter <[email protected]>
1733    
1734            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
1735            (SetBaseID, SetID, make_id): Improved docstring comments to explain
1736            the interaction of the three functions and the XML id contrains.
1737    
1738    
1739    2004-09-23  Jan-Oliver Wagner <[email protected]>
1740    
1741            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
1742            Module.
1743    
1744            * Doc/README: Added info on ThubanModel.xmi.
1745    
1746    2004-09-23  Jan-Oliver Wagner <[email protected]>
1747    
1748            * Doc/README: New. Some info about how to generate technical
1749            documentation from the source code.
1750            This text was send to the Thuban developer mailing list on
1751            September 21st 2004 by Bernhard Reiter.
1752    
1753    2004-09-21  Bernhard Reiter <[email protected]>
1754    
1755            Improved the svgexport to only use unique ids. Will issues
1756            an error message dialoge when two layer names are the same.
1757            ShapeIDs are now added with a dash within the svg ids.
1758    
1759            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
1760            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
1761            (TestSVGRenderer): New test class with test_make_in() and
1762            test_check_for_layer_name_clash()
1763            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
1764            and draw_shape_layer_incrementally() to not use a baseid twice,
1765            satisfying test_check_for_layer_name_clash()
1766            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
1767            test_make_in().
1768            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
1769            and wxICON_HAND.
1770            (write_to_svg): Put dc and rendering in a try statement and on
1771            catching SVGmapWriterError notify the user and delete the target file.
1772    
1773    2004-09-20  Bernhard Reiter <[email protected]>
1774    
1775            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
1776    
1777    2004-09-03  Jan Sch�ngel  <[email protected]>
1778    
1779            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
1780            small bug with the line color. Now the line color will now only set
1781            if it is set in Thuban an not Transparent.
1782            
1783            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
1784            deleting the layers from mapfile. Now all layers will delete backwards
1785            from the last.
1786    
1787    2004-08-20  Silke Reimer <[email protected]>
1788    
1789            * Thuban/Model/layer.py:
1790            Fixes bug in projection handling: Otherwise very large region might not
1791            have valid values in the layer's projection.
1792    
1793    2004-08-20  Silke Reimer <[email protected]>
1794    
1795            * Thuban/UI/about.py:
1796            small changes to be consistent with coding style.
1797              
1798    2004-08-13  Martin Schulze  <[email protected]>
1799    
1800            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
1801            Adjusted a comment
1802    
1803    2004-08-11  Silke Reimer <[email protected]>
1804    
1805            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
1806                    too many and too enhanced imports of locale
1807    
1808    2004-08-10  Silke Reimer <[email protected]>
1809    
1810            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
1811                    function unicodeToLocale() to convert special characters to users
1812                    locale encoding
1813    
1814    2004-08-10  Jan-Oliver Wagner <[email protected]>
1815    
1816            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
1817            lower case letter'
1818    
1819    2004-08-09  Jan Sch�ngel  <[email protected]>
1820    
1821            * ChangeLog: Rewrite the last ChangeLog entry to follow
1822            the standard way.
1823    
1824            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
1825            the function where it is needed, because it don't works if it stands
1826            at the beginning.
1827            (MF_Layer.__init__): Removed the extra numclassed variable. Now
1828            numclasses from the mapscript will be used.
1829            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
1830            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
1831            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
1832            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
1833            (MF_Map.create_new_layer): New. A new Layer is created and associated
1834            with the mapscript object.
1835            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
1836            the mapscript.
1837            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
1838            linked to the layer in thuban, else the layerobject linked to the
1839            thubanlayer will be used.
1840            AnnotationLayer will now store the filename of the shapefile.
1841            (MF_Map.remove_layer): If a layer is removed the associated object
1842            must be set new.
1843            
1844            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
1845            layers which are exists in thuban to the mapobj. All removed Layers
1846            will be removed from the mapobj.
1847            Added comments to all functions.
1848            (thuban_to_map): No layer will be removed here.
1849            
1850            * Extensions/umn_mapserver/mf_handle.py
1851            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
1852            Layersettings for the mapserver kann be edited.
1853    
1854            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
1855            imported, will be linked with the associated MF_Layer.
1856            (import_mapfile): All layers, which are not selected, will be removed.
1857            Disable the "import layer from mapfile" menu option.
1858    
1859            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
1860            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
1861            layer on permanently.
1862    
1863    2004-08-03  Jan Sch�ngel  <[email protected]>
1864    
1865            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
1866            New. This function removes all metadata
1867            (MF_Layer.set_group): New. Set the group setting.
1868            (MF_Layer.get_group): New. Get the group setting.
1869            (MF_Map): Removed the extra numlayers variable, used the mapscript
1870            parameter instead.
1871            (MF_Map.get_numlayers): New. This get numlayers.
1872            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
1873            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
1874            if the object is an instance. Also added the annotation layer here to
1875            export, but only the layer is created in the mapfile.
1876    
1877            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
1878            the check if a mapobj exist, because its not needed anymore. The
1879            export function is only available if a mapobj exist.
1880            Use the new function to remove all layers.
1881            
1882            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
1883            option and the metadata button. The layer dialog is temporary disabled.
1884            (Metadata_CustomDataTable): Added some functions to show the grid
1885            correct.
1886    
1887            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
1888            the number of layer from import_mapfile to this function.
1889            (AnnotationLayer): New. This Class shows the Annotation layer in
1890            thuban. The layer don't do anything. It's only to show the layer
1891            and to save the layer order.
1892            (add_annotationlayer): New. Import an annotation layer to thuban.
1893            (select_layer2import): New. Import only layers to thuban and not
1894            the other settings like projection or scalebar.
1895            (create_new_mapfile): Moved the _has_umn_mapobj function and the
1896            create_new_mapfile functions from mf_handle.py to mf_import.py.
1897            
1898            * Extensions/umn_mapserver/sample/iceland.map: Added the group
1899            parameter to the roads and cultural layers. Also added a new
1900            Annotation Layer for the cultural points.
1901    
1902            * Extensions/umn_mapserver/sample/iceland.html: Added the select
1903            option for the annotation layer.
1904    
1905            * Extensions/umn_mapserver/sample/index.html: Added the start
1906            parameter for the annotation layer.
1907    
1908    2004-08-01  Jan-Oliver Wagner <[email protected]>
1909    
1910            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
1911            translation completed.
1912    
1913            * Doc/manual/thuban-manual.xml (Chapter Session Management):
1914            Fixed unprecise description for Save Session.
1915    
1916    2004-07-31  Jan-Oliver Wagner <[email protected]>
1917    
1918            Started translation of Users Manual into german.
1919    
1920            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
1921    
1922            * Doc/manual/Makefile: Added build instructions for german
1923            users manual.
1924    
1925            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
1926    
1927    2004-07-28  Jan Sch�ngel  <[email protected]>
1928    
1929            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
1930            functions. Now all metadata will handle by the function and its not
1931            needed to initialize it from outside. Therefor the associated mapobj
1932            will be stored in the Metadata Object. So we can use the special
1933            functions from the associated mapobj to get the Metadata.
1934            Therefor all initialization code for the metadata is removed from the
1935            other classes.
1936            (MF_Layer): Added a function to get the metadata object.
1937            (MF_Map): Added a function to set the mappath, the path where
1938            the mapfile ist stored.
1939    
1940            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
1941            to set the extent in the mapfile. Now the code is set by the displayed
1942            data in the Thuban-view.
1943            (export_mapfile): The shapepath is now set empty, until relative
1944            pathnames are supported.
1945    
1946            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
1947            metadata. Yet only mapfile metadata are supported. Layer and class
1948            supported are not implemented.
1949            Added a dialog to handle layer informations. The dialog only shows the
1950            selected layer at the moment.
1951    
1952            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
1953            code for setting the extent in thuban. Now the extent is set to the
1954            given extent from the mapfile.
1955            Fixed a logical mistake. Now the extent is set when realy a layer is
1956            loaded, and not if one is selected to load.
1957    
1958            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
1959            move the shown map in the browser.
1960    
1961            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
1962            line to the mapobj and added metadata to the political layer.
1963    
1964            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
1965            for Metadata.
1966    
1967    2004-07-26  Martin Schulze  <[email protected]>
1968    
1969            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
1970            ClassMapper
1971    
1972            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
1973            case for the new ClassMapper
1974    
1975    
1976    2004-07-22  Bernhard Herzog  <[email protected]>
1977    
1978            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
1979            visible extent of the map in projected coordinates
1980    
1981            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
1982            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
1983            tests.
1984            (SimpleViewPortTest.test_visible_extent): New. The real test for
1985            VisibleExtent()
1986    
1987    2004-07-22  Bernhard Herzog  <[email protected]>
1988    
1989            * test/test_viewport.py: Use support.run_tests as the main
1990            function when running asa script.
1991    
1992    2004-07-22  Jan Sch�ngel <[email protected]>
1993    
1994            * Extensions/umn_mapserver/mf_export.py: Added "import os"
1995            Removed the old "import Thuban.UI.mainwindow" code.
1996            (tbextent_to_map): Removed the extra function and at the code direct
1997            to "thuban_to_map" function.
1998            (write_creatorcomment): Added. Now a short comment is added to the
1999            beginning of an generated mapfile.
2000            (export_mapfile): Now the Path and filename are saved in to variables,
2001            and not together in one variable. This is needed for the new
2002            write_creatorcomment function.
2003                    
2004            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
2005            import module "re". Also added Range and the ClassGroupRange import
2006            from Thuban. Both are needed for the new range expression import.
2007            (create_rangeexpression): Added. Creates a Range Expression in Thuban
2008            style from a given mapfile expression.
2009            (added_rasterlayer): Make some small code changes. The shapepath is
2010            now stored in an extra variable and the clazz_name is set empty if no
2011            class name set in the mapfile.
2012            Changed the Error message for Range Expressions, becaus the new
2013            function create a error string which will be shown in the dialog.
2014    
2015            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
2016            range expression import.
2017    
2018    2004-07-21  Jan-Oliver Wagner <[email protected]>
2019    
2020            * Extensions/umn_mapserver/README: Added hint that
2021            installation as root can be avoided. Removed all tabs.
2022    
2023    2004-07-16  Bernhard Herzog  <[email protected]>
2024    
2025            * test/test_viewport.py
2026            (ViewPortTest.test_changing_map_projection): Check that changing
2027            the projection of an empty map shown in a viewport doesn't lead to
2028            exceptions in the viewport's handler for the
2029            MAP_PROJECTION_CHANGED messages
2030    
2031            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
2032            try to keep the same region visible when the map actually contains
2033            something
2034    
2035    2004-07-15  Jan Sch�ngel <[email protected]>
2036    
2037            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
2038            mappath directly from the mapobj. Is needed because of the changes
2039            in mf_import.py.
2040            (MF_Layer.add_thubanclass): Added a new comment.
2041            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
2042            mapobj is empty there is no extent get from thuban an so no one can
2043            set to th mapobj.
2044            
2045            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
2046            the discription.
2047            Split the funktion in to three smaller ones. The new functions are
2048            add_rasterlayer, add_polygonlayer and select_layer2import.
2049            Removed the mapfilepath and filepath initialisation, because its know
2050            include in the new functions.
2051            Now nothing will be imported if cancel is pressed in the
2052            layer choice dialog.
2053    
2054    2004-07-14  Jan Sch�ngel <[email protected]>
2055    
2056            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
2057            import.
2058            (MF_Symbolset): Removed the extra variable for numsymbols.
2059            (MF_Class.__init__): Added a comment to the exception clause.
2060            Removed the extent init, because it was not needed anymore.
2061            (MF_Layer.add_thubanclass): Added the code to set the class name to
2062            the expression value from thuban if no label is defined.
2063            Added the code to export Range expressions from thuban to the mapfile.
2064            (MF_Map.set_extent): Removed the exception and replace it by some if
2065            code. If the size of a map is not defined the size will be set to 1,1.
2066            This is necessary because if the extent is set, mapscript checks if
2067            the size is greater than zero.
2068            (MF_Web): Added the get and set function for the template.
2069    
2070            * Extensions/umn_mapserver/mf_export.py: Added the function to check
2071            if a mapobject exists and used it to set the status of the menu items.
2072            If no mapfile exists the settings could not be edditied.
2073            Define after which menuitem the exportitem will include.
2074            
2075            * Extensions/umn_mapserver/mf_handle.py: Removed the import
2076            Thuban.UI.mainwindow clause, because it is not needed.
2077            Added the command Refresh() to all "OnChangeColor()" functions,
2078            because the color preview window was not updated on a color change.
2079            Added the function to check if a mapobject exists and used it to set the
2080            status of the menu items. If no mapobject exists the settings could not
2081            be edditied.
2082            (Map_Dialog): Moved the imagetype selector from the
2083            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
2084            (Web_Dialog): Removed the name label and added the template textbox.
2085    
2086            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
2087            the exception handling on loading the layers by an if statement. It
2088            is not necessary to us the exception there.
2089            The Filepath creation now use os.path.join to build the path.
2090    
2091            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
2092            definition from global to the setUp function. Now the testMap will
2093            initialize new on each test.
2094    
2095            * Extensions/umn_mapserver/sample/iceland.map: Include three new
2096            classes in the Line Layer, to test logical Expressions.
2097            Set the status of the class "Point9" in the Point Layer to off
2098            
2099    2004-07-13  Bernhard Herzog  <[email protected]>
2100    
2101            * Thuban/UI/baserenderer.py
2102            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
2103            optimization that tries not to draw layers under a raster layer.
2104            The bug was harmless.  All it effectively did was to produce The a
2105            strange messages about not being able to draw Layer instances for
2106            all vector layers below a raster layer which would be invisible
2107            anyway because the raster layer currently always covers the entire
2108            window
2109    
2110    2004-07-08  Jan Sch�ngel <[email protected]>
2111    
2112            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
2113            a list of supported outputformats. This formats are not alle supported
2114            because there is no possibility to get the outputformat without the
2115            name known. Make some formal changes to the code.
2116            (MF_Map.set_name()): Fixed a bug if the name is None.
2117    
2118            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
2119            statement, because its not needed anymore. The Outputformat is now
2120            given as string from the object. Make some formal changes to the code.
2121    
2122            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
2123            most of the new setting which were added during the last changes.
2124            Removed the MF_Size Test.
2125            
2126            * Extensions/umn_mapserver/test/test.map: Added a new class to the
2127            cultural Layer to test expressions and the the status of that layer
2128            from on to default.
2129            Changed the data path the the correct Thuban Data
2130            Added the Outputformat Object and Symbol Object
2131            
2132    2004-07-07  Jan Sch�ngel <[email protected]>
2133    
2134            * Extensions/umn_mapserver/mapfile.py: Added some new
2135            settings to edit (outputformat, label, imagetype)
2136    
2137            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
2138            the Label Dialog and add the OutputDialog.
2139            Make some changes to the code order.
2140    
2141    2004-07-06  Jan Sch�ngel <[email protected]>
2142    
2143            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
2144            and line Obj and add the scalebar_status_type, scalebar_style_type and
2145            scalebar_position_type.
2146            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
2147            are only used to create a Symbol like the circle in Thuban.
2148            Added the scalebarObject (MF_Scalebar)
2149            (MF_Class): Added set_status and get_status.
2150            (MF_Layer.add_thubanclass): Added code to set the class status
2151            (MF_Map): Added code to handle the symbols and scalebar
2152            (MF_Label): Added the set_partials and get_partials functions
2153            
2154            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
2155            from mapfile. Added a function to create a circle object like the one
2156            from thuban if no one exists.
2157            
2158            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
2159            press ok in the assosiated dialog and not at the end of the
2160            colordialog.
2161            Added the Dialog for the Scalebar.
2162            (Label_Dialog): Added the offset option
2163    
2164            * Extensions/umn_mapserver/mf_import.py: Added code to import the
2165            status of the Classes.
2166            Fixed a bug with the projection. Now the to_meter parameter will be
2167            added to the Projection only if it doesn't exists.
2168    
2169    2004-07-01  Jan Sch�ngel <[email protected]>
2170    
2171            Added the functionality to handle the content thuban is not
2172            able to handle directly.
2173    
2174            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
2175            Thuban with the possibility to edit the mapfile content.        
2176            
2177            * Extensions/umn_mapserver/mf_import.py: Added the possibility
2178            to import mapfiles without any layer selected. So it is possible
2179            to edit the other settings in a mapfile.
2180            (import_mapfile): Added code to use the editing functions.
2181            Added the possibility to import the projection to a layer if one
2182            is defined.
2183            Status settings (On,Off) will now set in thuban (visible, invisible).
2184            fixed a bug with with classnames. If no classname is set in mapfile
2185            the value in Thuban will set to the expression.
2186            
2187            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
2188            possibility to save a new mapfile or use the old one which is
2189            imported or new created.
2190            Added code to use the editing functions.
2191            Remove some not needed import statements
2192    
2193            * Extensions/umn_mapserver/mapfile.py: Added new types which are
2194            need for the editing functions.
2195            Added needed set-functions for the editing functions.
2196            Added the possibility to export rasterimages.
2197            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
2198            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
2199            moment.
2200            (MF_Class.set_thubanstyle): Now point layers will set to a default
2201            symbol to show a circle in mapserver and not only a 1px dot.
2202            (MF_Style.__init__): Fixed a bug with the color. Color was not set
2203            correct before.
2204            (MF_Size): Removed, because it is not needed.
2205            
2206            * Extensions/umn_mapserver/README: Added the hints to use the
2207            export and editing functions, too.
2208    
2209            * Extensions/umn_mapserver/sample/iceland.map: Added the
2210            new parameter "UNITS METERS".
2211            Change the political layer to status OFF.
2212    
2213            * Extensions/umn_mapserver/sample/README: Added some
2214            more details to setup the sample in the MapServer.
2215            
2216    2004-06-26  Bernhard Reiter <[email protected]>
2217    
2218            * Extensions/svgexport/test/test_svgmapwriter.py:
2219            Removed class VFile and used standard StringIO instead.
2220    
2221    2004-06-23  Jan Sch�ngel  <[email protected]>
2222    
2223            Add the export function to the umn_mapserver extension.
2224    
2225            * Extension/umn_mapserver/mf_export.py: New. This module extents
2226            Thuban with the possibility to export the Thuban content.
2227    
2228            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
2229            with the export module. Especially added the possibility to
2230            add thuban objects directly to the map objects.
2231    
2232            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
2233            because of the hint from Bernhard Herzog.
2234            Corrected the handling of absolute pathnames.
2235            Changed the Text of the Menu-Item, now the beginning is upper case.
2236    
2237            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
2238    
2239    2004-06-16  Jan Sch�ngel  <[email protected]>
2240    
2241            Add a sample and make some changes.
2242    
2243            * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
2244            import from * to explicit used statements. Changed the
2245            Thuban.UI.mainwindow import phrase, too.
2246            (import_mapfile):Corrected a clerical mistake.
2247            Added wxCHANGE_DIR in OpenFile Dialog.
2248            Added a MultipleChoiceDialog, to select the layers to load from
2249            mapfile into thuban. Thereby the projection is only set if one layer
2250            is selected.
2251            Added the possibility to handle relative pathnames which uses
2252            up-level references.
2253            Removed some doubled code.
2254            Corrected an error with integer values used as label in thuban
2255            ClassGroup.
2256            
2257            * Extensions/umn_mapserver/sample: New.
2258    
2259            * Extensions/umn_mapserver/sample/README: New. Describes the
2260            usage of the sample files.
2261    
2262            * Extensions/umn_mapserver/sample/iceland.map: New. This is
2263            a suitable .map-file for the iceland data.
2264    
2265            * Extensions/umn_mapserver/sample/index.html: New. The template
2266            for the mapfile.  
2267    
2268            * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
2269            file for the Iceland Application on web.
2270    
2271            * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
2272            some details.
2273    
2274            * Extensions/umn_mapserver/test/test_mapserver
2275            (mapserver_import_Test_generalClasses.test_MF_Color):
2276            Corrected the thubancolor test.
2277    
2278    2004-06-15  Jan Sch�ngel  <[email protected]>
2279    
2280            * Extensions/umn_mapserver/README: New. Install instruction.
2281    
2282    2004-06-14  Bernhard Reiter <[email protected]>
2283    
2284            * libraries/thuban/cpl_mfile.h: Added copyright header.
2285    
2286            * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
2287            Free Software License so that it is most useful with gdalwarp
2288            and bmpdataset.
2289    
2290    2004-06-14  Bernhard Herzog  <[email protected]>
2291    
2292            * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
2293            import of wxPython.wx itself (as opposed to the contents of
2294            wxPython.wx).  For some reason wxPython.wx is available as
2295            wxPython.wx.wx in at least some 2.4 releases.  Fixes RT#2482
2296            wrt. wxPython 2.4.
2297    
2298    2004-06-10  Jan Sch�ngel  <[email protected]>
2299    
2300            Initial version of new extension "umn_mapserver".  This extension aims
2301            to manage configuration for the UMN MapServer application.  This
2302            inital version just imports the .map-files and displays all, Thuban is
2303            capable of.
2304    
2305            * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
2306    
2307            * Extensions/umn_mapserver/test/README: New. Describes how to run the
2308            tests.
2309    
2310            * Extensions/umn_mapserver/test/test.map: New. This is a test
2311            .map-file for automated tests of the umn_mapserver extension of
2312            Thuban.
2313    
2314            * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
2315            UMN Mapserver classes.
2316    
2317            * Extensions/umn_mapserver/__init__.py: New. Init to make this
2318            directory a package.
2319    
2320            * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
2321            '.map'-file objects.
2322    
2323            * Extensions/umn_mapserver/mf_import.py: New. This module extends
2324            Thuban with the possibility to handle UMN MapServer mapfiles.
2325    
2326    2004-06-03  Bernhard Herzog  <[email protected]>
2327    
2328            * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
2329            to a tuple before using it as arguments to the % operator.  This
2330            fixes the formatting issue filed in RT#2239 on 2004-01-13 and
2331            reported today on thuban-list by Jan Sch�ngel
2332    
2333            * test/test_layer.py (TestLayerModification.setUp): Save the
2334            filename as an instance variable so we can refer to it in tests
2335            (TestLayerModification.test_tree_info): Uncomment this method
2336            again and make it work.  This tests for the formatting issue
2337            filed in RT#2239 on 2004-01-13
2338    
2339    2004-05-28  Bernhard Herzog  <[email protected]>
2340    
2341            * Thuban/UI/baserenderer.py: Fix some typos.
2342    
2343    2004-05-18  Jan-Oliver Wagner <[email protected]>
2344    
2345            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
2346            by increasing a field size.
2347    
2348    2004-05-17  Bernhard Herzog  <[email protected]>
2349    
2350            Update to newest shapelib and get rid of Thuban specific
2351            extensions, i.e. use the new DBFUpdateHeader instead of our
2352            DBFCommit kludge
2353    
2354            * libraries/shapelib/shpopen.c: Update to version from current
2355            shapelib CVS.
2356    
2357            * libraries/shapelib/shapefil.h: Update to version from current
2358            shapelib CVS.
2359    
2360            * libraries/shapelib/dbfopen.c: Update to version from current
2361            shapelib CVS.
2362            (DBFCommit): Effectively removed since shapelib itself has
2363            DBFUpdateHeader now which is better for what DBFCommit wanted to
2364            achieve.  
2365            We're now using an unmodified version of dbfopen.
2366    
2367            * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
2368            value '1' to the Lib.dbflibc extension.  This simply reflects the
2369            shapelib and pyshapelib updates
2370    
2371    2004-05-16  Jan-Oliver Wagner <[email protected]>
2372    
2373            Finished introduction of Menu.FindOrInsertMenu.
2374    
2375            * Extensions/drawshape/drawshape.py: Add the command
2376            to the experimental menu additionally to the toolbar.
2377    
2378            * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
2379            finding menu on its own.
2380    
2381            * Doc/manual/thuban-manual.xml: updated sample file
2382            to use FindOrInsertMenu().
2383    
2384            * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
2385            instead of finding menu on its own.
2386    
2387  2004-05-11  Jan-Oliver Wagner <[email protected]>  2004-05-11  Jan-Oliver Wagner <[email protected]>
2388    
2389          * test/test_menu.py (MenuTest.test): Added testing          * test/test_menu.py (MenuTest.test): Added testing

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26