/[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 2584 by jan, Thu Mar 10 22:52:30 2005 UTC revision 2650 by bh, Tue Jul 5 20:23:59 2005 UTC
# Line 1  Line 1 
1    2005-07-05  Bernhard Herzog  <[email protected]>
2    
3            * README: gdal 1.1.8 is too old.  1.2.5 works.
4    
5    2005-07-05  Bernhard Herzog  <[email protected]>
6    
7            * Resources/XML/thuban-1.1.dtd (rasterlayer): Add the opacity and
8            masktype attributes.
9    
10    2005-07-05  Bernhard Herzog  <[email protected]>
11    
12            * Thuban/Model/layer.py (Layer.__mangle_bounding_box)
13            (Layer.ClipBoundingBox): Rename ClipBoundingBox to
14            __mangle_bounding_box.  See the comments in the code and RT #2845
15    
16            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
17            Remove the explicit test of ClipBoundingBox.  The method isn't
18            public anymore and the direct call in the test wasn't necessary in
19            the first place.  If ClipBoundingBox (now __mangle_bounding_box)
20            isn't called, the return value of ShapesInRegion will be
21            different.
22    
23    2005-07-05  Bernhard Herzog  <[email protected]>
24    
25            * Thuban/UI/viewport.py (ViewPort.set_view_transform): Handle
26            ZeroDivisionError exceptions.  I don't know when they happen
27            exactly.  It probably happens when the projections aren't set
28            properly.
29    
30    2005-07-01  Bernhard Herzog  <[email protected]>
31    
32            First step towards unicode.  With this roughly we're at step 1
33            string_representation.txt
34    
35            * Doc/technotes/string_representation.txt: New.  Document how
36            strings are represented in Thuban and how to get to a Unicode
37            Thuban.
38    
39            * Thuban/__init__.py (set_internal_encoding)
40            (unicode_from_internal, internal_from_unicode): New. The first few
41            functions for the internal string representation
42    
43            * Thuban/UI/about.py (unicodeToLocale): Removed.  Use
44            internal_from_unicode instead.
45    
46            * Thuban/UI/__init__.py (install_wx_translation): Determine the
47            encoding to use for the internal string representation.  Also,
48            change the translation function to return strings in internal
49            representation even on unicode builds of wxPython
50    
51            * Thuban/Model/load.py (SessionLoader.check_attrs): Decode
52            filenames too.
53            (SessionLoader.start_clrange): Use check_attrs to decode and check
54            the attributes.
55    
56            * Thuban/Model/xmlreader.py (XMLReader.encode): Use
57            internal_from_unicode to convert unicode strings.
58    
59            * Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
60            unicode_from_internal when applicable
61    
62            * test/runtests.py (main): New command line option:
63            internal-encoding to specify the internal string encoding to use
64            in the tests.
65    
66            * test/support.py (initthuban): Set the internal encoding to
67            latin-1
68    
69            * test/test_load.py (TestSingleLayer.test, TestClassification.test)
70            (TestLabelLayer.test): Use the internal string representation when
71            dealing with non-ascii characters
72    
73            * test/test_load_1_0.py (TestSingleLayer.test)
74            (TestClassification.test, TestLabelLayer.test): Use the internal
75            string representation when dealing with non-ascii characters
76    
77            * test/test_load_0_9.py (TestSingleLayer.test)
78            (TestClassification.test): Use the internal string representation
79            when dealing with non-ascii characters
80    
81            * test/test_load_0_8.py (TestUnicodeStrings.test): Use the
82            internal string representation when dealing with non-ascii
83            characters
84    
85            * test/test_save.py (XMLWriterTest.testEncode)
86            (SaveSessionTest.testClassifiedLayer): Use the internal string
87            representation when dealing with non-ascii characters where
88            applicable
89    
90    2005-06-30  Bernhard Herzog  <[email protected]>
91    
92            * test/runtests.py: Untabify.
93    
94    2005-06-30  Bernhard Herzog  <[email protected]>
95    
96            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
97            untabify.
98    
99    2005-06-30  Bernhard Herzog  <[email protected]>
100    
101            * Extensions/ogr/test/__init__.py: Add missing coding directive
102    
103    2005-06-28  Jan-Oliver Wagner <[email protected]>
104    
105            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
106            Use the default size for rendering selected items of default type.
107            Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
108    
109    2005-06-28  Jan-Oliver Wagner <[email protected]>
110    
111            * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
112            (APR_TClr.GetThubanColor): Fix bug in color interpretation.
113            Thanks to Frank Koormann who identified this problem.
114    
115            * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
116            another symbol identified.
117    
118    2005-06-27  Jan-Oliver Wagner <[email protected]>
119    
120            * Doc/manual/thuban-manual-de.xml: More translations.
121    
122    2005-05-12  Jonathan Coles <[email protected]>
123            
124            * Thuban/UI/projdialog.py: Add missing import, which led to an
125            exception when opening a layer's projection.
126    
127    2005-05-09  Bernhard Herzog  <[email protected]>
128    
129            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
130    
131    2005-05-09  Bernhard Herzog  <[email protected]>
132    
133            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
134            connection to autoconnect.  Fixes RT#3148.
135    
136            * test/test_postgis_db.py
137            (TestPostGISSpecialCases.test_simple_error_handling): New test
138            that attempts to reproduce RT#3148.
139    
140    2005-05-06  Jonathan Coles <[email protected]>
141    
142            Add support for saving and loading the opacity and mask type
143            properties of RasterLayers. Also add support for proper use
144            of alpha information while drawing images not in 'RAW' format.
145            If transparency in an image format (e.g, PNG) is supported by
146            wxWidgets then the image would previously have been draw with
147            transparent regions, but the opaque regions would have been
148            unaffected by a change in the layer's opacity. This patch
149            corrects the problem.
150    
151            * Thuban/Model/layer.py (RasterLayer): Added opacity and
152            masktype parameters to the constructor, and set the
153            appropriate variables to those values.
154    
155            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
156            code to read the opacity and mask type of the layer and construct
157            a new layer with the additional parameters.
158    
159            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
160            to save the opacity and mask type of a layer.
161    
162            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
163            the opacity of the layer to draw_raster_data rather than the layer.
164            (BaseRenderer.draw_raster_data): Remove the layer parameter because
165            the function doesn't need to know about the layer. Add the optional
166            opacity parameter whose default is 1.0. Add 'PNG' as a supported
167            graphics format.
168    
169            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
170            signature to match that in BaseRenderer. Use the new opacity argument
171            in place of calling layer.Opacity(). In the case where the
172            format is not 'RAW', alpha_data is None and the loaded image has
173            alpha information, use the file's alpha information. This is
174            still subject to the layer's opacity setting.
175    
176            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
177            Fixed signature to match that in BaseRenderer.
178    
179            * test/test_load.py (TestRasterLayer): Change file_contents to
180            include opacity and masktype variables.
181            (TestRasterLayer.test): Include tests for opacity and masktype
182            changes.
183    
184            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
185            test to cover a variety of combinations of masktype and opacity
186            settings.
187    
188    2005-05-02  Jan-Oliver Wagner <[email protected]>
189    
190            * debian/rules: add --use-wx-python-swig-hack
191            to the build command.
192            Thanks to Moritz Lennert for pointing this out.
193    
194    2005-04-28  Jan-Oliver Wagner <[email protected]>
195    
196            Introduce OGRFileShapeStore in ogr extension.
197            This allows at least that loaded shapefile shape stores
198            can be saved correctly in the thuban session file
199            and reloaded again (reload is via core shapefile
200            routine, not OGR). For other types, .thuban files
201            can not be reloaded for the time being.
202    
203            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
204            class ist to be used for any file-based shape stores
205            accessed through OGR.
206    
207            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
208            forgotten _ for i18n. Adapted call OpenFileShapestore
209            regarding new parameter.
210            (OpenFileShapestore): Use OGRFileShapeStore instead of
211            OGRShapeStore. Fix return value (None instead of null).
212            Add new parameter "mainwindow" to avoid accessing global
213            context.
214    
215    2005-04-27  Jan-Oliver Wagner <[email protected]>
216    
217            Introduce FileShapeStore as generalization for
218            file-based shape stores. In a first instance
219            this allows additional modules to handle shapefile
220            format as well, namely the OGR extension.
221    
222            * Thuban/Model/data.py: Various small fixes in doc-strings.
223            (FileShapeStore): New class.
224            (ShapefileStore): Derive from FileShapeStore.
225            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
226            rename self.table to self._table, initialize self._bbox
227            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
228            and self.FileName() instead of self.filename.
229            (ShapefileStore.Table): Use self._table instead of self.table.
230            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
231            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
232    
233            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
234            (SessionSaver.write_data_containers): Only use methods of the
235            base class FileShapeStore.
236    
237    2005-04-26  Martin Schulze  <[email protected]>
238    
239            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
240            function to the modified render engine
241    
242    2005-04-25  Martin Schulze  <[email protected]>
243    
244            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
245            Added a description according to the CVS log message
246    
247    2005-04-23  Martin Schulze  <[email protected]>
248    
249            * Thuban/UI/renderer.py: Added a missing import
250    
251    2005-04-23  Russell Nelson  <[email protected]>
252    
253            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
254            way the previous tool is remembered, so that middle-button
255            panning works even if you haven't selected a tool.
256    
257    2005-04-11  Bernhard Herzog  <[email protected]>
258    
259            * libraries/thuban/wxproj.cpp: Move the compatibility code that
260            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
261            branch that includes wxPython.h because it's only needed when
262            wxPython.h is used.  Also, it won't compile when
263            USE_WX_PYTHON_SWIG_HACK is set otherwise.
264    
265    2005-04-07  Bernhard Herzog  <[email protected]>
266    
267            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
268            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
269            ClassGrid.__init__ and it's value is outside of the valid
270            range (must be < 32768).  wxPython 2.5 complains about it with an
271            exception.
272    
273    2005-04-05  Jan-Oliver Wagner <[email protected]>
274    
275            * Doc/manual/thuban-manual-de.xml: More translations.
276    
277    2005-04-05  Bernhard Herzog  <[email protected]>
278    
279            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
280            wxPython 2.4 as well.  Also, remove a now obsolete comment.
281    
282    2005-04-05  Bernhard Herzog  <[email protected]>
283    
284            Use wxPython.h by default but provide a workaround when it isn't
285            available.
286    
287            * setup.py (wxproj_extension): New variable.  Assign the Extension
288            instance for Lib.wxproj to this variable instead of putting it
289            directly into the listso that it can be accessed by other code
290            later.
291            (thuban_build_ext.user_options): Added boolean option
292            --use-wx-python-swig-hack.
293            (thuban_build_ext.initialize_options): Initialize the new option
294            to False.
295            (thuban_build_ext.finalize_options): If the new option was given,
296            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
297            (thuban_build_ext): Update the doc-string
298    
299            * libraries/thuban/wxproj.cpp: Normally we use
300            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
301            defined, use swigPtrConvertHack.h instead.
302    
303            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
304            copied over from wxPython.h.
305            (decode_pointer_new): New.  Equivalent of decode_pointer for
306            wxPython 2.5.
307            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
308    
309            * README: Add section on potential build problems which explains
310            how the work-around for a missing wxPython.h is activated.
311    
312    2005-03-29  Bernhard Herzog  <[email protected]>
313    
314            * test/postgissupport.py (find_postgis_sql): Added yet another
315            potential location for (lw)postgis.sql because the file has moved
316            again in postgis 1.0.0 rc4.
317    
318    2005-03-29  Bernhard Herzog  <[email protected]>
319    
320            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
321            match the site of the legend_icon_layer icon.  Otherwise wxpython
322            2.5 complains when the legend is created with the error:
323    
324            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
325            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
326            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
327            in wxImageList: this might work on this platform but definitely
328            won't under Windows.
329    
330    2005-03-23  Jonathan Coles <[email protected]>
331    
332            These changes add support for adjusting the opacity of a raster layer.
333    
334            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
335            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
336            a LAYER_CHANGED event if the opacity actually changes.
337    
338            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
339            layer parameter needed in the implementation of this method in
340            renderer.py.
341    
342            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
343            typo 00 -> 0.
344    
345            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
346            control to adjust opacity.
347    
348            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
349            alpha data based on the opacity level of the layer.
350    
351            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
352            accepts a layer parameter.
353    
354            * test/test_layer.py (TestLayerModification.test_raster_layer):
355            Rename opacity method calls and add test for LAYER_CHANGED.
356    
357    2005-03-16  Bernhard Herzog  <[email protected]>
358    
359            * test/test_connector.py (DeletionTestMixin.check_deletions)
360            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
361            update the callers.
362    
363    2005-03-14  Jan-Oliver Wagner <[email protected]>
364    
365            * Doc/manual/thuban-manual-de.xml: More translations.
366    
367  2005-03-10  Jan-Oliver Wagner <[email protected]>  2005-03-10  Jan-Oliver Wagner <[email protected]>
368    
369          Introducing initialization callbacks for extensions.          Introducing initialization callbacks for extensions.

Legend:
Removed from v.2584  
changed lines
  Added in v.2650

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26