/[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 2571 by jonathan, Fri Feb 18 14:54:17 2005 UTC revision 2671 by bernhard, Mon Oct 17 20:10:18 2005 UTC
# Line 1  Line 1 
1    2005-10-17  Bernhard Reiter <[email protected]>
2    
3            svgexport 1.0.0cvs: Fixed ARC layer writing: No filling is done.
4            You could actually get polylines with filling in between,
5            when the classification for the lines had a fill color.
6            E.g. this happens when you generate a classification from a ramp.
7    
8            * Extensions/svgexport/test/test_svgmapwriter.py:
9            New test_export_arc_no_fill(). Extend copyright notice to 2005.
10    
11            * Extensions/svgexport/svgmapwriter.py
12            (SVGRenderer.draw_shape_layer_incrementally()):
13            Setting TRANSPARENT_BRUSH for shaptype ARC.
14            Extend copyright notice to 2005.
15    
16            * Extensions/svgexport/__init__.py: Extend copyright notice to 2005.
17    
18    2005-09-08  Frank Koormann <[email protected]>
19    
20            * Doc/manual/thuban-manual.xml (Map Management): Fixed typo reported
21            by Erik (sigra.at.home.se)
22    
23    2005-08-18  Jan-Oliver Wagner <[email protected]>
24    
25            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
26            Call the right method for the default size.
27    
28    2005-08-11  Jan-Oliver Wagner <[email protected]>
29    
30            * Extensions/export_shapefile: New.
31    
32            * Extensions/export_shapefile/__init__.py: New. Initialize
33            the export_shapefile extension.
34    
35            * Extensions/export_shapefile/export_shapefile.py: New.
36            Exports a layer as a Shapefile.
37    
38    2005-08-08  Jan-Oliver Wagner <[email protected]>
39    
40            * po/de.po: String fixes. This fixes Debian bug #313843.
41    
42    2005-07-27  Jan-Oliver Wagner <[email protected]>
43    
44            Remove the attributes from the layer element in
45            .thuban files for the save routine.
46            This also solves RT bug #3149,
47            https://intevation.de/rt/webrt?serial_num=3149
48    
49            * test/test_load.py: (TestSingleLayer, TestNonAsciiColumnName,
50            TestLayerVisibility, TestSymbolSize, TestClassification, TestLabels,
51            TestLayerProjection, TestJoinedTable, TestLabelLayer): Removed
52            attributes from layer element to classification clnull element.
53    
54            * test/test_save.py (SaveSessionTest.testSingleLayer,
55            SaveSessionTest.testLayerProjection,
56            SaveSessionTest.testClassifiedLayer,
57            SaveSessionTest.test_joined_table, SaveSessionTest.test_save_postgis):
58            Removed attributes from layer element to classification clnull element.
59            (test_save_postgis.NonConnectionStore._fetch_table_information):
60            added pretending to have a shape_type.
61    
62            * Resources/XML/thuban-1.1.dtd: Make the attributes field
63            and field_type of classification optional.
64    
65            * Thuban/Model/classification.py (Classification.TreeItem.build_info):
66            Added output of size.
67    
68            * Thuban/Model/load.py (SessionLoader.start_classification):
69            Change attribute 'field' and 'field_type' from obligatory to
70            optional to allow empty classes (ie.  only with a default=clnull).
71    
72            * Thuban/Model/save.py (SessionSaver.write_layer): Don't write
73            any attributes anymore for the layer element.
74            (SessionSaver.write_classification): Even if there is no
75            classification field, still write the classification because
76            the clnull (default) symbol will not be defined anymore as
77            part of the layer element.
78    
79    2005-07-05  Bernhard Herzog  <[email protected]>
80    
81            * setup.py (setup call): Version 1.1.0
82    
83            * NEWS: Update for 1.1.0
84    
85            * MANIFEST.in: Add *.txt to files taken from Doc.  Otherwise the
86            technores won't be included
87    
88            * Thuban/UI/about.py (About.__init__): Extend copyright notice to
89            2005
90    
91            * po/de.po: Updated.
92    
93    2005-07-05  Bernhard Herzog  <[email protected]>
94    
95            * README: gdal 1.1.8 is too old.  1.2.5 works.
96    
97    2005-07-05  Bernhard Herzog  <[email protected]>
98    
99            * Resources/XML/thuban-1.1.dtd (rasterlayer): Add the opacity and
100            masktype attributes.
101    
102    2005-07-05  Bernhard Herzog  <[email protected]>
103    
104            * Thuban/Model/layer.py (Layer.__mangle_bounding_box)
105            (Layer.ClipBoundingBox): Rename ClipBoundingBox to
106            __mangle_bounding_box.  See the comments in the code and RT #2845
107    
108            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
109            Remove the explicit test of ClipBoundingBox.  The method isn't
110            public anymore and the direct call in the test wasn't necessary in
111            the first place.  If ClipBoundingBox (now __mangle_bounding_box)
112            isn't called, the return value of ShapesInRegion will be
113            different.
114    
115    2005-07-05  Bernhard Herzog  <[email protected]>
116    
117            * Thuban/UI/viewport.py (ViewPort.set_view_transform): Handle
118            ZeroDivisionError exceptions.  I don't know when they happen
119            exactly.  It probably happens when the projections aren't set
120            properly.
121    
122    2005-07-01  Bernhard Herzog  <[email protected]>
123    
124            First step towards unicode.  With this roughly we're at step 1
125            string_representation.txt
126    
127            * Doc/technotes/string_representation.txt: New.  Document how
128            strings are represented in Thuban and how to get to a Unicode
129            Thuban.
130    
131            * Thuban/__init__.py (set_internal_encoding)
132            (unicode_from_internal, internal_from_unicode): New. The first few
133            functions for the internal string representation
134    
135            * Thuban/UI/about.py (unicodeToLocale): Removed.  Use
136            internal_from_unicode instead.
137    
138            * Thuban/UI/__init__.py (install_wx_translation): Determine the
139            encoding to use for the internal string representation.  Also,
140            change the translation function to return strings in internal
141            representation even on unicode builds of wxPython
142    
143            * Thuban/Model/load.py (SessionLoader.check_attrs): Decode
144            filenames too.
145            (SessionLoader.start_clrange): Use check_attrs to decode and check
146            the attributes.
147    
148            * Thuban/Model/xmlreader.py (XMLReader.encode): Use
149            internal_from_unicode to convert unicode strings.
150    
151            * Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
152            unicode_from_internal when applicable
153    
154            * test/runtests.py (main): New command line option:
155            internal-encoding to specify the internal string encoding to use
156            in the tests.
157    
158            * test/support.py (initthuban): Set the internal encoding to
159            latin-1
160    
161            * test/test_load.py (TestSingleLayer.test, TestClassification.test)
162            (TestLabelLayer.test): Use the internal string representation when
163            dealing with non-ascii characters
164    
165            * test/test_load_1_0.py (TestSingleLayer.test)
166            (TestClassification.test, TestLabelLayer.test): Use the internal
167            string representation when dealing with non-ascii characters
168    
169            * test/test_load_0_9.py (TestSingleLayer.test)
170            (TestClassification.test): Use the internal string representation
171            when dealing with non-ascii characters
172    
173            * test/test_load_0_8.py (TestUnicodeStrings.test): Use the
174            internal string representation when dealing with non-ascii
175            characters
176    
177            * test/test_save.py (XMLWriterTest.testEncode)
178            (SaveSessionTest.testClassifiedLayer): Use the internal string
179            representation when dealing with non-ascii characters where
180            applicable
181    
182    2005-06-30  Bernhard Herzog  <[email protected]>
183    
184            * test/runtests.py: Untabify.
185    
186    2005-06-30  Bernhard Herzog  <[email protected]>
187    
188            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
189            untabify.
190    
191    2005-06-30  Bernhard Herzog  <[email protected]>
192    
193            * Extensions/ogr/test/__init__.py: Add missing coding directive
194    
195    2005-06-28  Jan-Oliver Wagner <[email protected]>
196    
197            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
198            Use the default size for rendering selected items of default type.
199            Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
200    
201    2005-06-28  Jan-Oliver Wagner <[email protected]>
202    
203            * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
204            (APR_TClr.GetThubanColor): Fix bug in color interpretation.
205            Thanks to Frank Koormann who identified this problem.
206    
207            * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
208            another symbol identified.
209    
210    2005-06-27  Jan-Oliver Wagner <[email protected]>
211    
212            * Doc/manual/thuban-manual-de.xml: More translations.
213    
214    2005-05-12  Jonathan Coles <[email protected]>
215            
216            * Thuban/UI/projdialog.py: Add missing import, which led to an
217            exception when opening a layer's projection.
218    
219    2005-05-09  Bernhard Herzog  <[email protected]>
220    
221            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
222    
223    2005-05-09  Bernhard Herzog  <[email protected]>
224    
225            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
226            connection to autoconnect.  Fixes RT#3148.
227    
228            * test/test_postgis_db.py
229            (TestPostGISSpecialCases.test_simple_error_handling): New test
230            that attempts to reproduce RT#3148.
231    
232    2005-05-06  Jonathan Coles <[email protected]>
233    
234            Add support for saving and loading the opacity and mask type
235            properties of RasterLayers. Also add support for proper use
236            of alpha information while drawing images not in 'RAW' format.
237            If transparency in an image format (e.g, PNG) is supported by
238            wxWidgets then the image would previously have been draw with
239            transparent regions, but the opaque regions would have been
240            unaffected by a change in the layer's opacity. This patch
241            corrects the problem.
242    
243            * Thuban/Model/layer.py (RasterLayer): Added opacity and
244            masktype parameters to the constructor, and set the
245            appropriate variables to those values.
246    
247            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
248            code to read the opacity and mask type of the layer and construct
249            a new layer with the additional parameters.
250    
251            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
252            to save the opacity and mask type of a layer.
253    
254            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
255            the opacity of the layer to draw_raster_data rather than the layer.
256            (BaseRenderer.draw_raster_data): Remove the layer parameter because
257            the function doesn't need to know about the layer. Add the optional
258            opacity parameter whose default is 1.0. Add 'PNG' as a supported
259            graphics format.
260    
261            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
262            signature to match that in BaseRenderer. Use the new opacity argument
263            in place of calling layer.Opacity(). In the case where the
264            format is not 'RAW', alpha_data is None and the loaded image has
265            alpha information, use the file's alpha information. This is
266            still subject to the layer's opacity setting.
267    
268            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
269            Fixed signature to match that in BaseRenderer.
270    
271            * test/test_load.py (TestRasterLayer): Change file_contents to
272            include opacity and masktype variables.
273            (TestRasterLayer.test): Include tests for opacity and masktype
274            changes.
275    
276            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
277            test to cover a variety of combinations of masktype and opacity
278            settings.
279    
280    2005-05-02  Jan-Oliver Wagner <[email protected]>
281    
282            * debian/rules: add --use-wx-python-swig-hack
283            to the build command.
284            Thanks to Moritz Lennert for pointing this out.
285    
286    2005-04-28  Jan-Oliver Wagner <[email protected]>
287    
288            Introduce OGRFileShapeStore in ogr extension.
289            This allows at least that loaded shapefile shape stores
290            can be saved correctly in the thuban session file
291            and reloaded again (reload is via core shapefile
292            routine, not OGR). For other types, .thuban files
293            can not be reloaded for the time being.
294    
295            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
296            class ist to be used for any file-based shape stores
297            accessed through OGR.
298    
299            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
300            forgotten _ for i18n. Adapted call OpenFileShapestore
301            regarding new parameter.
302            (OpenFileShapestore): Use OGRFileShapeStore instead of
303            OGRShapeStore. Fix return value (None instead of null).
304            Add new parameter "mainwindow" to avoid accessing global
305            context.
306    
307    2005-04-27  Jan-Oliver Wagner <[email protected]>
308    
309            Introduce FileShapeStore as generalization for
310            file-based shape stores. In a first instance
311            this allows additional modules to handle shapefile
312            format as well, namely the OGR extension.
313    
314            * Thuban/Model/data.py: Various small fixes in doc-strings.
315            (FileShapeStore): New class.
316            (ShapefileStore): Derive from FileShapeStore.
317            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
318            rename self.table to self._table, initialize self._bbox
319            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
320            and self.FileName() instead of self.filename.
321            (ShapefileStore.Table): Use self._table instead of self.table.
322            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
323            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
324    
325            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
326            (SessionSaver.write_data_containers): Only use methods of the
327            base class FileShapeStore.
328    
329    2005-04-26  Martin Schulze  <[email protected]>
330    
331            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
332            function to the modified render engine
333    
334    2005-04-25  Martin Schulze  <[email protected]>
335    
336            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
337            Added a description according to the CVS log message
338    
339    2005-04-23  Martin Schulze  <[email protected]>
340    
341            * Thuban/UI/renderer.py: Added a missing import
342    
343    2005-04-23  Russell Nelson  <[email protected]>
344    
345            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
346            way the previous tool is remembered, so that middle-button
347            panning works even if you haven't selected a tool.
348    
349    2005-04-11  Bernhard Herzog  <[email protected]>
350    
351            * libraries/thuban/wxproj.cpp: Move the compatibility code that
352            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
353            branch that includes wxPython.h because it's only needed when
354            wxPython.h is used.  Also, it won't compile when
355            USE_WX_PYTHON_SWIG_HACK is set otherwise.
356    
357    2005-04-07  Bernhard Herzog  <[email protected]>
358    
359            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
360            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
361            ClassGrid.__init__ and it's value is outside of the valid
362            range (must be < 32768).  wxPython 2.5 complains about it with an
363            exception.
364    
365    2005-04-05  Jan-Oliver Wagner <[email protected]>
366    
367            * Doc/manual/thuban-manual-de.xml: More translations.
368    
369    2005-04-05  Bernhard Herzog  <[email protected]>
370    
371            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
372            wxPython 2.4 as well.  Also, remove a now obsolete comment.
373    
374    2005-04-05  Bernhard Herzog  <[email protected]>
375    
376            Use wxPython.h by default but provide a workaround when it isn't
377            available.
378    
379            * setup.py (wxproj_extension): New variable.  Assign the Extension
380            instance for Lib.wxproj to this variable instead of putting it
381            directly into the listso that it can be accessed by other code
382            later.
383            (thuban_build_ext.user_options): Added boolean option
384            --use-wx-python-swig-hack.
385            (thuban_build_ext.initialize_options): Initialize the new option
386            to False.
387            (thuban_build_ext.finalize_options): If the new option was given,
388            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
389            (thuban_build_ext): Update the doc-string
390    
391            * libraries/thuban/wxproj.cpp: Normally we use
392            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
393            defined, use swigPtrConvertHack.h instead.
394    
395            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
396            copied over from wxPython.h.
397            (decode_pointer_new): New.  Equivalent of decode_pointer for
398            wxPython 2.5.
399            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
400    
401            * README: Add section on potential build problems which explains
402            how the work-around for a missing wxPython.h is activated.
403    
404    2005-03-29  Bernhard Herzog  <[email protected]>
405    
406            * test/postgissupport.py (find_postgis_sql): Added yet another
407            potential location for (lw)postgis.sql because the file has moved
408            again in postgis 1.0.0 rc4.
409    
410    2005-03-29  Bernhard Herzog  <[email protected]>
411    
412            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
413            match the site of the legend_icon_layer icon.  Otherwise wxpython
414            2.5 complains when the legend is created with the error:
415    
416            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
417            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
418            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
419            in wxImageList: this might work on this platform but definitely
420            won't under Windows.
421    
422    2005-03-23  Jonathan Coles <[email protected]>
423    
424            These changes add support for adjusting the opacity of a raster layer.
425    
426            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
427            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
428            a LAYER_CHANGED event if the opacity actually changes.
429    
430            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
431            layer parameter needed in the implementation of this method in
432            renderer.py.
433    
434            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
435            typo 00 -> 0.
436    
437            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
438            control to adjust opacity.
439    
440            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
441            alpha data based on the opacity level of the layer.
442    
443            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
444            accepts a layer parameter.
445    
446            * test/test_layer.py (TestLayerModification.test_raster_layer):
447            Rename opacity method calls and add test for LAYER_CHANGED.
448    
449    2005-03-16  Bernhard Herzog  <[email protected]>
450    
451            * test/test_connector.py (DeletionTestMixin.check_deletions)
452            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
453            update the callers.
454    
455    2005-03-14  Jan-Oliver Wagner <[email protected]>
456    
457            * Doc/manual/thuban-manual-de.xml: More translations.
458    
459    2005-03-10  Jan-Oliver Wagner <[email protected]>
460    
461            Introducing initialization callbacks for extensions.
462    
463            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
464            optional parameter init_callback.
465            (ExtensionDesc.init_ext): New. Executes the callback and sets
466            a status.
467    
468            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
469            initialization of the extensions.
470            (ThubanApplication.init_extensions): Init all extensions.
471    
472            * Thuban/UI/about.py (About.__init__): Added status of the extensions
473            to the about text.
474    
475            * Extensions/gns2shp/__init__.py: Added init method for Extension
476            description.
477            (init): New. Contains the initialization of the module.
478    
479    2005-03-04  Nina H�ffmeyer <[email protected]>
480    
481            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
482            OGRConnection to open a datasource. Removed dialog to display all
483            available drivers. Added some doc strings.
484    
485            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
486            OGRDatasource with a string. Added two opening methods which return an
487            OGRDatasource (either data from file or from DB).
488    
489            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
490            represents a geometry reference of an OGRFeature. OGRShape now has a
491            list of referenced geometry objects (important for geometry
492            collections).
493            For OGRShapeStores loaded from a DB an ID column can be specified now.
494    
495    2005-02-22  Jan-Oliver Wagner <[email protected]>
496    
497            * test/test_map.py (TestMapWithContents.test_tree_info):
498            Added label layer for comparison.
499    
500    2005-02-18  Jonathan Coles <[email protected]>
501    
502            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
503            which builds a mask. Handle the majority of an image in a loop,
504            creating 8 bits at a time. Later, handle the edge case where less
505            than 8 bits are packed.
506    
507    2005-02-18  Bernhard Herzog  <[email protected]>
508    
509            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
510            doc-string
511    
512    2005-02-18  Jonathan Coles <[email protected]>
513    
514            * setup.py: Remove wx_cs_params from gdal compile options.
515    
516  2005-02-18  Jonathan Coles <[email protected]>  2005-02-18  Jonathan Coles <[email protected]>
517    
518          Refactored baserenderer.py and renderer.py to remove baserenderer.py's          Refactored baserenderer.py and renderer.py to remove baserenderer.py's

Legend:
Removed from v.2571  
changed lines
  Added in v.2671

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26