/[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 2422 by jan, Sat Nov 27 12:55:37 2004 UTC revision 2553 by jonathan, Fri Jan 28 19:10:07 2005 UTC
# Line 1  Line 1 
1    2005-01-28  Jonathan Coles <[email protected]>
2    
3            * libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the
4            mask is packed into a bit array. It's now slightly faster.
5    
6    2005-01-28  Jonathan Coles <[email protected]>
7    
8            * Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask
9            default to true.
10    
11            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove
12            code that loads the state of the layer's use_mask flag. Its
13            usefulness is still being debated.
14    
15            * Thuban/Model/save.py (SessionSaver.write_layer): Remove
16            code that saves the state of the layer's use_mask flag. Its
17            usefulness is still being debated.
18    
19            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
20            options to ProjectRasterFile based on the state of layer.UseMask().
21            Catch more exceptions from ProjectRasterFile so that Thuban doesn't
22            quit is there is a problem projecting.
23            (BaseRenderer.draw_raster_data): Change the documentation to
24            describe the new format (XBM) that the mask data will be in.
25    
26            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask
27            data is in XBM format when format='RAW' which means it doesn't
28            need to be converted to a wxImage before being used as a mask
29            for a wxBitmap. Assume that if format != 'RAW' that the image
30            data and mask data are in the same format.
31    
32            * libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled
33            and a mask is requested, convert the alpha band to a bit array in
34            XBM format. if an alpha channel is requested, simply return the
35            data in the alpha band. Provide better error handling by returning
36            python error messages (also fixes RT #2947).
37            (ProjectRasterFile): Support multiple mask options, rather than simply
38            a flag indicating that a mask should or should not be used. Provide
39            better error handling by returning python error messages.
40    
41            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
42            Add mask data to test.
43    
44            * test/test_layer.py (TestLayer.test_raster_layer): Test that a layer
45            should use the mask by default.
46            (TestLayerModificaton.test_raster_layer): Test that a layer should use
47            the mask by default.
48    
49            * test/test_load.py (TestRasterLayer.test): Remove testing for
50            use_mask flag in file.
51    
52            * test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing
53            for use_mask in file.
54    
55            * test/test_load_1_0_1.py: Removed. Shouldn't have been checked in.
56            
57    2005-01-26  Jonathan Coles <[email protected]>
58    
59            Add a new dialog box for raster layers. The dialog box allows
60            the user to toggle a mask that is generated by ProjectRasterFile
61            and is used to only draw the real parts of the projected image.
62    
63            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
64            Instruct the warping code to generate a mask if the raster layer
65            requests one.
66            (BaseRenderer.draw_raster_data): Removed obsolete optional mask argument.
67    
68            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed
69            obsolete optional mask argument.
70    
71            * Thuban/UI/classifier.py (Classifier): Change the parent class
72            to LayerProperties and rework the code to support layout calls
73            from the parent.
74            (Classifier.dialog_layout): New. Layout the dialog box.
75            (Classifier.map_layers_removed): Removed. Moved to parent class.
76            (Classifier.map_replaced): Removed. Moved to parent class.
77            (Classifier._OnTry): Renamed to OnTry to support parent class.
78            (Classifier.OnClose): Removed. Supplied in parent class.
79            (Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn.
80            (Classifier._OnOK): Renamed to OnOK to support parent class.
81            (Classifier._OnRevert): Renamed to OnRevert to support parent class.
82    
83            * Thuban/UI/layerproperties.py: New. Base class for layer properties
84            dialog boxes.
85    
86            * Thuban/UI/rasterlayerproperties.py: New. Class for displaying
87            raster layer properties.
88    
89            * libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code
90            with the non-simple version supplied with gdal. This allows added
91            features such as creating an alpha band.
92            (GetImageData): Generate a mask array from the alpha band that is
93            generated by gdal if the user has selected it. Try to support images
94            that have more than three bands, such as images with RGB plus an
95            alpha band.
96            (ProjectRasterFile): Convert python argument for mask and tell
97            gdal to enable or disable an alpha band.
98    
99            * Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string
100            describing what kind of layer the class is. Defaults to "Unknown",
101            but should be overridden by subclasses.
102            (Layer.Type): New. Override base class method.
103            (RasterLayer.__init__): Create a flag for using a mask. Record extra
104            data from gdal for display in the properties dialog.
105            (RasterLayer.Type): New. Override base class method.
106            (RasterLayer.UseMask): New. Returns True if the mask should be used.
107            (RasterLayer.SetUseMask): New. Set if the mask should be used.
108            (RasterLayer.ImageInfo): New. Return extra information about the image.
109    
110            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load
111            the mask information.
112    
113            * Thuban/Model/save.py (SessionSaver.write_layer): Save mask information.
114    
115            * Thuban/UI/mainwindow.py: Register the RasterLayerProperties and
116            Classifier classes as dialogs to use with the proper layer types.
117    
118            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
119            Fix test.
120    
121            * test/test_layer.py (TestLayer.test_raster_layer): Test new methods.
122            (TestLayerModification.build_path): New. Support function.
123            (TestLayerModification.test_raster_layer): New. Test new methods.
124    
125            * test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask.
126    
127            * test/test_load.py (TestRasterLayer): Add tests for mask.
128    
129            * test/test_load_1_0_1.py: New. Copied from test_load.py.
130    
131            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed
132            obsolete optional mask argument.
133    
134    2005-01-26  Nina H�ffmeyer <[email protected]>
135    
136            * Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore
137            which maps the ids and the ordinals. Fixed RowIdToOrdinal(),
138            RowOrdinalToId() and ReadRowAsDict().
139    
140            * Extensions/ogr/ogrstart.py: Added menu item which opens database
141            layers for existing database connections.
142    
143            * Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string.
144    
145    
146    2005-01-26  Jan-Oliver Wagner <[email protected]>
147    
148            * Doc/manual/thuban-manual-de.xml: More translations.
149    
150    2005-01-24  Bernhard Herzog  <[email protected]>
151    
152            Rework the status bar updates a bit to make sure the message about
153            the projections is produced at the right times.
154    
155            * Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages):
156            New class variable with messages that may require a status bar
157            update.
158            (MainWindow.view_position_changed)
159            (MainWindow.update_status_bar): Rename from view_position_changed
160            to update_status_bar.  It's meaning has changed now that it may
161            also generate messages about problems with projection settings.
162            (MainWindow.__init__): Use the new update_status_bar_messages
163            class variable to subscribe update_status_bar
164            (MainWindow.set_position_text): Update doc-string.  This method
165            has to be renamed at some point.  See doc-string and comments.
166            (MainWindow.OnClose): Unsubscribe update_status_bar from all
167            messages in update_status_bar_messages
168    
169            * Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New
170            class attribute.  map messages to be forwarded by the viewport.
171            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe
172            the messages in forwarded_map_messages
173    
174    2005-01-21  Bernhard Herzog  <[email protected]>
175    
176            * test/postgissupport.py (PostGISDatabase.__init__): Tweak
177            doc-string
178            (find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
179            different name for the initialization SQL file.
180    
181    2005-01-21  Jonathan Coles <[email protected]>
182    
183            * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
184            a projection and returns a formatted string representing the
185            parameters to feed to gdalwarp. This function eliminates
186            redundancy in draw_raster_layer().
187            (BaseRenderer.render_map_incrementally): Removed the optimization which
188            drew the top most raster layer first and then only those vector-
189            based layers that are above it. With the support for transparency
190            this optimization breaks correct behaviour.
191            (BaseRenderer.draw_raster_layer): Reorganize code to support possible
192            future enhancements to raster layer bounding box. The old behaviour has
193            not changed. Also, change calling parameters to draw_raster_data()
194            to specify new RAW data format and mask.
195            (BaseRenderer.draw_raster_data): Change signature to include an optional
196            parameter for mask information. Change documentation to mention
197            support for new parameter and added option for RAW data format.
198            The data argument is now a list of [width, height, data].
199    
200            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional
201            mask parameter. Add new condition for RAW format, which
202            significantly reduces rendering time. Add condition for
203            mask parameter.
204    
205            * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
206            data array of RGB values from the projected image returned from
207            the gdal warping functions. In the case of palette based images, it
208            converts the NO_DATA index to the mask color.
209            (ProjectRasterFile): Removed all custom memory driver references
210            and replaced it with the standard in-memory dataset provided
211            by gdal. The return data is no longer a BMP file, but an array
212            of RGB values, one set triple per pixel.
213    
214            * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
215            * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
216            * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
217    
218            * setup.py (thuban_build_ext.finalize_options): Removed mention
219            of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
220            files. These are obsolete with the new version of gdalwarp.cpp
221    
222            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
223            Updated signature.
224            (TestBaseRenderer.test_raster_no_projection): Changed the test
225            data to be data in the uncompressed RAW format returned from
226            ProjectRasterFile.
227    
228    2005-01-21  Jan-Oliver Wagner <[email protected]>
229    
230            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made
231            string available for i18n.
232    
233    2005-01-20  Russell Nelson  <[email protected]>
234    
235            * Resources/Projections/defaults.proj: Ruin the speling of the
236            Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
237            It's the wrong thing to do in the long run, but it's necessary for
238            those users until that bug is fixed.  Otherwise the projection
239            dialog segfaults.  Better to annoy some Lambert-93 users with a
240            spelling mistake than every Fedora Core 3 user of Thuban-CVS.
241    
242    2005-01-20  Bernhard Reiter <[email protected]>
243    
244            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added
245            docstring and comment that the warning code here is a hack.
246    
247    2005-01-20  Russell Nelson  <[email protected]>
248    
249            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn
250            user about misprojected layers when their lat/lon bounding
251            box exceeds rational lat/lon values.
252    
253    2005-01-20  Bernhard Reiter <[email protected]>
254    
255            * Thuban/UI/about.py (unicodeToLocale): Improved:
256            Use 'ascii' and then 'replace' for other characters
257            when getdefaultlocale returns None. Thanks to Bernhard H. .
258    
259    2005-01-20  Bernhard Reiter <[email protected]>
260    
261            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment
262            that OnRangeText might be called twice and using None as argument.
263    
264    2005-01-20  Bernhard Reiter <[email protected]>
265    
266            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a
267            OnRangeText(0) to work around a different in wx Behaviour noticed
268            on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
269    
270    2005-01-20  Bernhard Reiter <[email protected]>
271    
272            * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
273            None. (Fixes rt#2910.)
274            
275    2005-01-18  Frank Koormann <[email protected]>
276    
277            New Extension: mouseposition
278            Tool to collect mouse click positions (map coordinates) in a dialog.
279    
280            * Extensions/mouseposition/__init__.py: New, extension registration
281    
282            * Extensions/mouseposition/mouseposition.py: New, implements the
283            dialog and adds a tool to Thuban mainwindow.
284    
285            * Extensions/mouseposition/position.xpm: New, icon for tool.
286    
287    2005-01-14  Jan-Oliver Wagner <[email protected]>
288    
289            * Doc/manual/thuban-manual-de.xml: More translations.
290    
291    2005-01-11  Frank Koormann <[email protected]>
292    
293            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
294            Fix indention bug.
295    
296    2005-01-09  Frank Koormann <[email protected]>
297    
298            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
299            BugFix 2901: Explicitly copy layers ClassificationColumn since it
300            is not part of the layers Classification.
301    
302    2005-01-03  Frank Koormann <[email protected]>
303    
304            * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
305            BugFix 2883: Former implementation only worked on classified point
306            layers: KeyError was raised, now use the default size if field is None.
307    
308    2004-12-27  Bernhard Reiter <[email protected]>
309    
310            svgexport 1.0.0cvs: Fixed label export.
311    
312            * Extensions/svgexport/test/test_svgmapwriter.py:
313            class TestSVGRenderer(): New class; new test test_label_font().
314    
315            * Extensions/svgexport/svgmapwriter.py
316            (SVGRenderer.label_font()): initialised Font size with self.factor now,
317            makes test_label_font happy.
318    
319            * Extensions/svgexport/TODO: crossed out fixed label export item.
320            Added item for options.
321    
322            * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
323    
324    2004-12-27  Russell Nelson  <[email protected]>
325    
326            Middle mouse button pans.
327    
328            * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
329            OnMiddleDown and OnMiddleUp events.
330            (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
331            previously used tool.
332            (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
333            pressing the middle mouse button.
334    
335    2004-12-27  Jan-Oliver Wagner <[email protected]>
336    
337            * Doc/manual/thuban-manual-de.xml: More translations.
338    
339    2004-12-23  Jan-Oliver Wagner <[email protected]>
340    
341            * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
342            \n to stderr after the warnings. Thanks to Russell Nelson.
343    
344    2004-12-20  Nina Hueffmeyer <[email protected]>
345    
346            * Extensions/ogr/ogrshapes.py: Fixed some issues from
347            Bernhard (coding guidelines etc.). Additionally it is now possible to
348            display shapefiles containing feature collections (e.g.polygons
349            with holes). Works with gdal 1.2.1 now.
350    
351            * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
352            from Bernhard (coding guidelines etc.). If ogr can't be imported,
353            tests are skipped now.
354    
355            * Extensions/ogr/ogrstart.py: Fixed some typings.
356    
357    2004-12-20  Bernhard Reiter <[email protected]>
358    
359            * Extensions/svgexport/TODO: updated to add support for
360            raster layers and labels for 1.0.1.
361    
362            * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
363            Issue a warning now.
364    
365    2004-12-19  Bernhard Reiter <[email protected]>
366    
367            * Extensions/svgexport/TODO: Added idea to support triggering
368            the application down the pipe.
369    
370    2004-12-19  Bernhard Reiter <[email protected]>
371    
372            svgexport: Improved code quality, mainly by better naming.
373    
374            * Extensions/svgexport/svgmapwriter.py:
375            DrawPath() renamed to DrawPolygonPath(),
376            added documentation, improved comments and variable names.
377            
378            * Extensions/svgexport/svgmapwriter.py,
379              Extensions/svgexport/test/test_svgmapwriter.py:
380            All using DrawPolygonPath() now, the default parameter closed=True
381            omitted.
382    
383            * Extensions/svgexport/test/test_svgmapwriter.py:
384            renamed test_polygon_opened() to test_polyline()
385            renamed test_transparent_polygon() to test_transparent_polyline()
386    
387    2004-12-18  Jan-Oliver Wagner <[email protected]>
388    
389            Some fixes of gns2shp extension.
390    
391            * Extensions/gns2shp/test/__init__.py: New. Make this directory a
392            package.
393    
394            * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
395            dynamically.
396    
397            * Extensions/gns2shp/test/README: Simplified description how to test.
398    
399            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
400            fixed some dimensions of fields according to the GNS documentation
401            which seems to change undocumented.
402            Now killing trailing \n and/or \r from MODIFY_DATE.
403            This fixes RT#2453.
404    
405    2004-12-18  Bernhard Reiter <[email protected]>
406    
407            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
408    
409            * Extensions/svgexport/test/test_svgmapwriter.py:
410            Added new tests: test_export_polygon_with_hole()
411            and test_polygon_with_hole().
412    
413            * Extensions/svgexport/svgmapwriter.py
414            (draw_polygon_shape()): Uses DrawPath correctly now.
415    
416            * Doc/manual/thuban-manual.xml: Added documentation for stable
417            extention svgexport.    
418            * Doc/manual/thuban-manual-de.xml: Copied English section about
419            svexport over.
420    
421            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
422    
423            * Extensions/svgexport/svgsaver.py,maplegend.py:
424            Moved from experimental to stable extension menu.
425    
426            * Extensions/svgexport/TODO: updated.
427    
428    
429    2004-12-18  Bernhard Reiter <[email protected]>
430    
431            Added Extensions/svgexport/TODO
432    
433    2004-12-18  Bernhard Reiter <[email protected]>
434    
435            Refactored in svgexport:
436            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
437    
438            * Extensions/svgexport/svgmapwriter.py
439            Added verbosity level 3 to print out polygon points.
440            (class Point): added __repr__
441            (class Brush, __str__()): Added space after ,.
442            (DrawPolygon): Renamed to DrawPath()
443            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
444            (DrawLines): Using DrawPath now.
445    
446            * Extensions/svgexport/test/test_svgmapwriter.py:
447            Replaced DrawPolygon() calls with DrawPath() and put the first argument
448            inside another list. Adapted test data with a newline before "M".
449    
450    2004-12-18  Bernhard Reiter <[email protected]>
451            
452            Refactored svgexport tests: 9 double tests runs eliminated;
453            code size reduced by 8 lines.
454    
455            * Extensions/svgexport/test/test_svgmapwriter.py:
456            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
457            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
458            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
459            this fixed the double running of the nine tests of TestVirtualDC.
460            (class TestVirtualDC): Using self.dc and self.file from setUp().
461    
462    2004-12-17  Bernhard Herzog  <[email protected]>
463    
464            Two windows specific fixes ported from thuban-1�0-branch:
465    
466            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
467            instead of getlocale because getlocale doesn't return a usable
468            encoding name on a german windows 2000
469    
470            * setup.py: windows build: Removed the absolute path names and
471            made all prfixes relative to the directory containing setup.py.
472            Makes it a little easier to adapt to a different system.
473    
474    2004-12-16  Bernhard Herzog  <[email protected]>
475    
476            Add support for PostGIS tables with LINESTRING geometries.
477            Fixes RT#2299
478    
479            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
480    
481            * test/postgissupport.py
482            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
483            table to "roads-multi" because it now uses MULTILINESTRING
484            geometries and introduce a new "roads" table that uses LINESTRING
485            (coords_to_multilinestring): Make the doc string more precise
486            (coords_to_linestring): New.  Create a LINESTRING WKT
487            representatin
488            (wkt_converter): Add coords_to_linestring
489            (upload_shapefile): Rephrase the doc-string a bit.
490    
491            * test/test_postgis_db.py (TestPostGISShapestoreArc)
492            (LineStringTests)
493            (TestPostGISShapestoreLineString)
494            (TestPostGISShapestoreMultiLineString): Split
495            TestPostGISShapestoreArc into a base class LineStringTests and two
496            derived classes TestPostGISShapestoreLineString for LINESTRING
497            geometries and TestPostGISShapestoreMultiLineString for
498            MULTILINESTRING geometries.  Most test methods are in the base
499            class with the exception of tests that explicitly check the raw
500            format.
501    
502    2004-12-16  Bernhard Herzog  <[email protected]>
503    
504            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
505    
506            * test/postgissupport.py (find_postgis_sql): Different postgis
507            versions put the postgis.sql file into slightly different places
508            so we have to look in both.  The updated doc string describes this
509            is more detail.
510    
511            * test/test_postgis_db.py
512            (TestPostGISSpecialCases.test_column_name_quoting): The return
513            value of UniqueValues is unsorted, so it has to be sorted for
514            comparison.
515    
516    2004-12-16  Bernhard Herzog  <[email protected]>
517    
518            Fix for RT#2237
519    
520            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
521            panel to be shown is the UnknownProjPanel disable the OK and Try
522            buttons.  Otherwise enable them.
523            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
524            the parameters.  In that case __GetProjection also returns None
525            now.
526    
527    2004-12-15  Bernhard Herzog  <[email protected]>
528    
529            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
530            minimum number of classes to 2.  The calculate_quantiles needs at
531            least two and raises an exception otherwise.  
532            Fixes RT#2549
533    
534    2004-12-15  Bernhard Herzog  <[email protected]>
535    
536            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
537            so that it returns a result for select statements.
538            (PostgreSQLServer.server_version): New.  Return the version of the
539            server software.
540            (PostgreSQLServer.require_authentication): The format of
541            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
542            server version and generate the file in the correct format
543    
544    2004-12-15  Bernhard Herzog  <[email protected]>
545    
546            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
547            in the doc string and rephrase it a little.
548    
549    2004-12-15  Frank Koormann <[email protected]>
550    
551            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
552            session has been loaded successfully. The check is called by the relevant
553            tests after executing load_session().
554    
555    2004-12-13  Bernhard Herzog  <[email protected]>
556    
557            Make sure the region used to determine which shapes are visible
558            actually matches the region on the printed page.  If this isn't
559            done properly some shapes might not be printed.  
560            Fixes RT #2692
561    
562            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
563            renderer has to be at the same position as the mapregion
564    
565            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
566            has to be moved by (self.shiftx, self.shifty) too.
567    
568    2004-12-13  Bernhard Herzog  <[email protected]>
569    
570            * libraries/pyprojection/Projection.i: Work around a bug in the
571            generated python code which leads to exception in the __del__
572            method when the constructor fails.  See the comments in the code
573            for more details.
574    
575            * libraries/pyprojection/Projection.py: Updated from Projection.i
576            with SWIG.
577    
578    2004-12-13  Bernhard Herzog  <[email protected]>
579    
580            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
581            (TestAltPath.test_02_path_error_fix_from_list)
582            (TestAltPath.test_05_path_error_fix_from_list_changed)
583            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
584            is destroyed in tearDown, so there's no need to do it in a test
585            case.
586    
587            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
588            debug print
589    
590    2004-12-13  Bernhard Herzog  <[email protected]>
591    
592            * Extensions/svgexport/test/test_svgmapwriter.py
593            (TestDrawSplines.setUp): Do not use super with the unittest
594            classes because in Python 2.2 they're still old-style classes.
595    
596    2004-12-13  Frank Koormann <[email protected]>
597    
598        Alternative Path feature: When loading a (moved) session where
599            shapefiles cannot be found, ask the user. Use the specified path
600            if further shapefiles are missing. However, ask the usr for confirmation
601            in such cases.
602    
603            * test/test_load.py (TestAltPath): New, tests for alternative path feature
604            in load_session()
605            (Shapefile_CallBack): Helper, implements controllable callback.
606    
607            * Thuban/UI/application.py (ThubanApplication.OnInit):
608            Added "alt_path" to self.path
609            (ThubanApplication.OpenSession): Added shapefile_callback as second
610            callback similar to db_connection_callback.
611            (ThubanApplication.run_alt_path_dialog): New, implementaion of
612            shapefile_callback. In addition to raising the dialog the control of
613            self.path('alt_path') is implemented here.
614    
615            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
616            (SessionLoader.open_shapefile): Open shapefile, eventually with
617            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
618            formerly used in start_fileshapesource()/start_layer().
619            (SessionLoader.start_fileshapesource): Call open_shapefile().
620            (SessionLoader.start_layer): Call open_shapefile().
621            (load_session): Added shapefile_callback.
622    
623            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
624            feature (search / check).
625            
626            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
627    
628    2004-12-11  Bernhard Reiter <[email protected]>
629    
630             svgexport 0.9.2: Point size supports for maps.
631    
632            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
633            (def draw_point_shape): new parameter size defaults to 2 as before.
634            (draw_shape_layer_incrementally): Moved draw_func log line higher.
635            Added draw_func call with size when dealing with a point layer.
636    
637            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
638            
639    2004-12-11  Bernhard Reiter <[email protected]>
640    
641            Made sure that newlines are inserted in the svg path d attributes
642            to raise the chance that the line length will be below 255 characters,
643            as recommended by REC SVG 1.1 in section 8.3.1.
644    
645            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
646            Adding \n before L's and changed whitespace handling.
647    
648            * Extensions/svgexport/test/test_svgmapwriter.py:
649            Adapted tests to new whitespace handling of DrawPolygon.
650    
651    2004-12-11  Bernhard Reiter <[email protected]>
652    
653            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
654    
655            * Extensions/svgexport/test/test_svgmapwriter.py:
656            Removed test_drawbezier in favour of new test_drawspline3 and
657            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
658            All only to test DrawSpline.
659    
660            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
661            New implementation now really using the strange algorithm of
662            xfig 3.1's approximated splines and its conversion to postscript
663            with one twist: SVG can do quadratic beziers, so skipped translation
664            to cubic beziers.
665            (TestWithDC): Typo in comment fixed.
666    
667    2004-12-09  Martin Schulze  <[email protected]>
668    
669            * Thuban/Model/classgen.py: Added missing character encoding
670    
671            * Extensions/wms/properties.py (OpenWMSProperties): removed
672    
673            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
674            support for get_srs_discrepancies() since there are no
675            discrepancies anymore (was a thinko)
676    
677            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
678            format priority now that more formats are supported globally by
679            the render engine.
680    
681    2004-12-08  Silke Reimer <[email protected]>
682            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
683            because it is not available in all versions of ogr
684    
685    2004-12-08  Bernhard Reiter <[email protected]>
686            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
687            global tests until a real one is commited.
688    
689    2004-12-07 Nina H�ffmeyer <[email protected]>
690    
691            * /Extensions/ogr/: Adding a new extension to read shapefiles with
692            ogr. It is planned to add other vector formats.
693    
694            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
695    
696    2004-12-07  Jan-Oliver Wagner <[email protected]>
697    
698            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
699            part of a (non-)fix to renable that the tests are always
700            executed.
701    
702    2004-12-07  Bernhard Reiter <[email protected]>
703    
704            * Extensions/svgexport/test/test_svgmapwriter.py:
705            Added test_drawbezier() to test DrawSpline().
706    
707            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
708            Really implemented bezier drawing.
709    
710            * Extensions/svgexport/__init__.py: Bumped version of svgexport
711            to 0.9.1 because now the legend examples lines styles
712            will be drawing with beziers.
713    
714    2004-12-05  Martin Schulze  <[email protected]>
715    
716            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
717            GIF as supported bitmap image formats (helpful for the WMS extension)
718    
719    2004-11-30  Martin Schulze  <[email protected]>
720    
721            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
722            Improved the test for the internal compare method
723    
724    2004-11-27  Jan-Oliver Wagner <[email protected]>
725    
726            * Thuban/UI/about.py (About.__init__): Added
727            Norbert Solymosi for hungarian translation and Ole Rahn
728            as contrbutor. Moved Bernhard Reiter from Contributor
729            to Developer.
730    
731    2004-11-27  Bernhard Reiter <[email protected]>
732    
733            * Extensions/svgexport/test/test_svgmapwriter.py:
734            Removed Jan from author list as he did not change enough significant
735            lines yet.
736    
737            * Extensions/svgexport/__init__.py: Added Bernhard as author
738            of the Extension.
739    
740  2004-11-27  Jan-Oliver Wagner <[email protected]>  2004-11-27  Jan-Oliver Wagner <[email protected]>
741    
742          * po/hu.po: New. Hungarian translation. Contributed          * po/hu.po: New. Hungarian translation. Contributed

Legend:
Removed from v.2422  
changed lines
  Added in v.2553

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26