/[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 2577 by nhueffme, Fri Mar 4 15:07:59 2005 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]>  2005-03-04  Nina H�ffmeyer <[email protected]>
453    
454          * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for          * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26