/[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 2342 by jschuengel, Fri Sep 3 17:02:28 2004 UTC revision 2537 by jonathan, Fri Jan 21 14:01:25 2005 UTC
# Line 1  Line 1 
1    2005-01-21  Jonathan Coles <[email protected]>
2    
3            * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
4            a projection and returns a formatted string representing the
5            parameters to feed to gdalwarp. This function eliminates
6            redundancy in draw_raster_layer().
7            (render_map_incrementally): Removed the optimization which
8            drew the top most raster layer first and then only those vector-
9            based layers that are above it. With the support for transparency
10            this optimization breaks correct behaviour.
11            (draw_raster_layer): Reorganize code to support possible future
12            enhancements to raster layer bounding box. The old behaviour has not
13            changed. Also, change calling parameters to draw_raster_data()
14            to specify new RAW data format and mask.
15            (draw_raster_data): Change signature to include an optional
16            parameter for mask information. Change documentation to mention
17            support for new parameter and added option for RAW data format.
18            The data argument is now a list of [width, height, data].
19    
20            * Thuban/UI/renderer.py (draw_raster_data): Add new optional
21            mask parameter. Add new condition for RAW format, which
22            significantly reduces rendering time. Add condition for
23            mask parameter.
24    
25            * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
26            data array of RGB values from the projected image returned from
27            the gdal warping functions. In the case of palette based images, it
28            converts the NO_DATA index to the mask color.
29            (ProjectRasterFile): Removed all custom memory driver references
30            and replaced it with the standard in-memory dataset provided
31            by gdal. The return data is no longer a BMP file, but an array
32            of RGB values, one set triple per pixel.
33    
34            * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
35            * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
36            * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
37    
38            * setup.py (thuban_build_ext.finalize_options): Removed mention
39            of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
40            files. These are obsolete with the new version of gdalwarp.cpp
41    
42            * test/test_baserenderer.py (draw_raster_data): Updated signature.
43            (test_raster_no_projection): Changed the test data to be data
44            in the uncompressed RAW format returned from ProjectRasterFile.
45    
46    2005-01-21  Jan-Oliver Wagner <[email protected]>
47    
48            * Thuban/UI/mainwindow.py (view_position_changed): Made string
49            available for i18n.
50    
51    2005-01-20  Russell Nelson  <[email protected]>
52    
53            * Resources/Projections/defaults.proj: Ruin the speling of the
54            Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
55            It's the wrong thing to do in the long run, but it's necessary for
56            those users until that bug is fixed.  Otherwise the projection
57            dialog segfaults.  Better to annoy some Lambert-93 users with a
58            spelling mistake than every Fedora Core 3 user of Thuban-CVS.
59    
60    2005-01-20  Bernhard Reiter <[email protected]>
61    
62            * Thuban/UI/mainwindow.py(view_position_changed): Added docstring
63            and comment that the warning code here is a hack.
64    
65    2005-01-20  Russell Nelson  <[email protected]>
66    
67            * Thuban/UI/mainwindow.py(view_position_changed): Warn user about
68            misprojected layers when their lat/lon bounding
69            box exceeds rational lat/lon values.
70    
71    2005-01-20  Bernhard Reiter <[email protected]>
72    
73            * Thuban/UI/about.py (unicodeToLocale()): Improved:
74            Use 'ascii' and then 'replace' for other characters
75            when getdefaultlocale returns None. Thanks to Bernhard H. .
76            
77    2005-01-20  Bernhard Reiter <[email protected]>
78    
79            * Thuban/UI/classgen.py (OnRetrieve()): Added a comment
80            that OnRangeText might be called twice and using None as argument.
81            
82    2005-01-20  Bernhard Reiter <[email protected]>
83    
84            * Thuban/UI/classgen.py (OnRetrieve()): Add a OnRangeText(0)
85            to work around a different in wx Behaviour noticed on MacOSX,
86            thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
87            
88    2005-01-20  Bernhard Reiter <[email protected]>
89    
90            * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
91            None. (Fixes rt#2910.)
92            
93    2005-01-18  Frank Koormann <[email protected]>
94    
95            New Extension: mouseposition
96            Tool to collect mouse click positions (map coordinates) in a dialog.
97    
98            * Extensions/mouseposition/__init__.py: New, extension registration
99    
100            * Extensions/mouseposition/mouseposition.py: New, implements the
101            dialog and adds a tool to Thuban mainwindow.
102    
103            * Extensions/mouseposition/position.xpm: New, icon for tool.
104    
105    2005-01-14  Jan-Oliver Wagner <[email protected]>
106    
107            * Doc/manual/thuban-manual-de.xml: More translations.
108    
109    2005-01-11  Frank Koormann <[email protected]>
110    
111            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
112            Fix indention bug.
113    
114    2005-01-09  Frank Koormann <[email protected]>
115    
116            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
117            BugFix 2901: Explicitly copy layers ClassificationColumn since it
118            is not part of the layers Classification.
119    
120    2005-01-03  Frank Koormann <[email protected]>
121    
122            * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
123            BugFix 2883: Former implementation only worked on classified point
124            layers: KeyError was raised, now use the default size if field is None.
125    
126    2004-12-27  Bernhard Reiter <[email protected]>
127    
128            svgexport 1.0.0cvs: Fixed label export.
129    
130            * Extensions/svgexport/test/test_svgmapwriter.py:
131            class TestSVGRenderer(): New class; new test test_label_font().
132    
133            * Extensions/svgexport/svgmapwriter.py
134            (SVGRenderer.label_font()): initialised Font size with self.factor now,
135            makes test_label_font happy.
136    
137            * Extensions/svgexport/TODO: crossed out fixed label export item.
138            Added item for options.
139    
140            * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
141    
142    2004-12-27  Russell Nelson  <[email protected]>
143    
144            Middle mouse button pans.
145    
146            * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
147            OnMiddleDown and OnMiddleUp events.
148            (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
149            previously used tool.
150            (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
151            pressing the middle mouse button.
152    
153    2004-12-27  Jan-Oliver Wagner <[email protected]>
154    
155            * Doc/manual/thuban-manual-de.xml: More translations.
156    
157    2004-12-23  Jan-Oliver Wagner <[email protected]>
158    
159            * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
160            \n to stderr after the warnings. Thanks to Russell Nelson.
161    
162    2004-12-20  Nina Hueffmeyer <[email protected]>
163    
164            * Extensions/ogr/ogrshapes.py: Fixed some issues from
165            Bernhard (coding guidelines etc.). Additionally it is now possible to
166            display shapefiles containing feature collections (e.g.polygons
167            with holes). Works with gdal 1.2.1 now.
168    
169            * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
170            from Bernhard (coding guidelines etc.). If ogr can't be imported,
171            tests are skipped now.
172    
173            * Extensions/ogr/ogrstart.py: Fixed some typings.
174    
175    2004-12-20  Bernhard Reiter <[email protected]>
176    
177            * Extensions/svgexport/TODO: updated to add support for
178            raster layers and labels for 1.0.1.
179    
180            * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
181            Issue a warning now.
182    
183    2004-12-19  Bernhard Reiter <[email protected]>
184    
185            * Extensions/svgexport/TODO: Added idea to support triggering
186            the application down the pipe.
187    
188    2004-12-19  Bernhard Reiter <[email protected]>
189    
190            svgexport: Improved code quality, mainly by better naming.
191    
192            * Extensions/svgexport/svgmapwriter.py:
193            DrawPath() renamed to DrawPolygonPath(),
194            added documentation, improved comments and variable names.
195            
196            * Extensions/svgexport/svgmapwriter.py,
197              Extensions/svgexport/test/test_svgmapwriter.py:
198            All using DrawPolygonPath() now, the default parameter closed=True
199            omitted.
200    
201            * Extensions/svgexport/test/test_svgmapwriter.py:
202            renamed test_polygon_opened() to test_polyline()
203            renamed test_transparent_polygon() to test_transparent_polyline()
204    
205    2004-12-18  Jan-Oliver Wagner <[email protected]>
206    
207            Some fixes of gns2shp extension.
208    
209            * Extensions/gns2shp/test/__init__.py: New. Make this directory a
210            package.
211    
212            * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
213            dynamically.
214    
215            * Extensions/gns2shp/test/README: Simplified description how to test.
216    
217            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
218            fixed some dimensions of fields according to the GNS documentation
219            which seems to change undocumented.
220            Now killing trailing \n and/or \r from MODIFY_DATE.
221            This fixes RT#2453.
222    
223    2004-12-18  Bernhard Reiter <[email protected]>
224    
225            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
226    
227            * Extensions/svgexport/test/test_svgmapwriter.py:
228            Added new tests: test_export_polygon_with_hole()
229            and test_polygon_with_hole().
230    
231            * Extensions/svgexport/svgmapwriter.py
232            (draw_polygon_shape()): Uses DrawPath correctly now.
233    
234            * Doc/manual/thuban-manual.xml: Added documentation for stable
235            extention svgexport.    
236            * Doc/manual/thuban-manual-de.xml: Copied English section about
237            svexport over.
238    
239            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
240    
241            * Extensions/svgexport/svgsaver.py,maplegend.py:
242            Moved from experimental to stable extension menu.
243    
244            * Extensions/svgexport/TODO: updated.
245    
246    
247    2004-12-18  Bernhard Reiter <[email protected]>
248    
249            Added Extensions/svgexport/TODO
250    
251    2004-12-18  Bernhard Reiter <[email protected]>
252    
253            Refactored in svgexport:
254            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
255    
256            * Extensions/svgexport/svgmapwriter.py
257            Added verbosity level 3 to print out polygon points.
258            (class Point): added __repr__
259            (class Brush, __str__()): Added space after ,.
260            (DrawPolygon): Renamed to DrawPath()
261            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
262            (DrawLines): Using DrawPath now.
263    
264            * Extensions/svgexport/test/test_svgmapwriter.py:
265            Replaced DrawPolygon() calls with DrawPath() and put the first argument
266            inside another list. Adapted test data with a newline before "M".
267    
268    2004-12-18  Bernhard Reiter <[email protected]>
269            
270            Refactored svgexport tests: 9 double tests runs eliminated;
271            code size reduced by 8 lines.
272    
273            * Extensions/svgexport/test/test_svgmapwriter.py:
274            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
275            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
276            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
277            this fixed the double running of the nine tests of TestVirtualDC.
278            (class TestVirtualDC): Using self.dc and self.file from setUp().
279    
280    2004-12-17  Bernhard Herzog  <[email protected]>
281    
282            Two windows specific fixes ported from thuban-1�0-branch:
283    
284            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
285            instead of getlocale because getlocale doesn't return a usable
286            encoding name on a german windows 2000
287    
288            * setup.py: windows build: Removed the absolute path names and
289            made all prfixes relative to the directory containing setup.py.
290            Makes it a little easier to adapt to a different system.
291    
292    2004-12-16  Bernhard Herzog  <[email protected]>
293    
294            Add support for PostGIS tables with LINESTRING geometries.
295            Fixes RT#2299
296    
297            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
298    
299            * test/postgissupport.py
300            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
301            table to "roads-multi" because it now uses MULTILINESTRING
302            geometries and introduce a new "roads" table that uses LINESTRING
303            (coords_to_multilinestring): Make the doc string more precise
304            (coords_to_linestring): New.  Create a LINESTRING WKT
305            representatin
306            (wkt_converter): Add coords_to_linestring
307            (upload_shapefile): Rephrase the doc-string a bit.
308    
309            * test/test_postgis_db.py (TestPostGISShapestoreArc)
310            (LineStringTests)
311            (TestPostGISShapestoreLineString)
312            (TestPostGISShapestoreMultiLineString): Split
313            TestPostGISShapestoreArc into a base class LineStringTests and two
314            derived classes TestPostGISShapestoreLineString for LINESTRING
315            geometries and TestPostGISShapestoreMultiLineString for
316            MULTILINESTRING geometries.  Most test methods are in the base
317            class with the exception of tests that explicitly check the raw
318            format.
319    
320    2004-12-16  Bernhard Herzog  <[email protected]>
321    
322            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
323    
324            * test/postgissupport.py (find_postgis_sql): Different postgis
325            versions put the postgis.sql file into slightly different places
326            so we have to look in both.  The updated doc string describes this
327            is more detail.
328    
329            * test/test_postgis_db.py
330            (TestPostGISSpecialCases.test_column_name_quoting): The return
331            value of UniqueValues is unsorted, so it has to be sorted for
332            comparison.
333    
334    2004-12-16  Bernhard Herzog  <[email protected]>
335    
336            Fix for RT#2237
337    
338            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
339            panel to be shown is the UnknownProjPanel disable the OK and Try
340            buttons.  Otherwise enable them.
341            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
342            the parameters.  In that case __GetProjection also returns None
343            now.
344    
345    2004-12-15  Bernhard Herzog  <[email protected]>
346    
347            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
348            minimum number of classes to 2.  The calculate_quantiles needs at
349            least two and raises an exception otherwise.  
350            Fixes RT#2549
351    
352    2004-12-15  Bernhard Herzog  <[email protected]>
353    
354            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
355            so that it returns a result for select statements.
356            (PostgreSQLServer.server_version): New.  Return the version of the
357            server software.
358            (PostgreSQLServer.require_authentication): The format of
359            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
360            server version and generate the file in the correct format
361    
362    2004-12-15  Bernhard Herzog  <[email protected]>
363    
364            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
365            in the doc string and rephrase it a little.
366    
367    2004-12-15  Frank Koormann <[email protected]>
368    
369            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
370            session has been loaded successfully. The check is called by the relevant
371            tests after executing load_session().
372    
373    2004-12-13  Bernhard Herzog  <[email protected]>
374    
375            Make sure the region used to determine which shapes are visible
376            actually matches the region on the printed page.  If this isn't
377            done properly some shapes might not be printed.  
378            Fixes RT #2692
379    
380            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
381            renderer has to be at the same position as the mapregion
382    
383            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
384            has to be moved by (self.shiftx, self.shifty) too.
385    
386    2004-12-13  Bernhard Herzog  <[email protected]>
387    
388            * libraries/pyprojection/Projection.i: Work around a bug in the
389            generated python code which leads to exception in the __del__
390            method when the constructor fails.  See the comments in the code
391            for more details.
392    
393            * libraries/pyprojection/Projection.py: Updated from Projection.i
394            with SWIG.
395    
396    2004-12-13  Bernhard Herzog  <[email protected]>
397    
398            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
399            (TestAltPath.test_02_path_error_fix_from_list)
400            (TestAltPath.test_05_path_error_fix_from_list_changed)
401            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
402            is destroyed in tearDown, so there's no need to do it in a test
403            case.
404    
405            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
406            debug print
407    
408    2004-12-13  Bernhard Herzog  <[email protected]>
409    
410            * Extensions/svgexport/test/test_svgmapwriter.py
411            (TestDrawSplines.setUp): Do not use super with the unittest
412            classes because in Python 2.2 they're still old-style classes.
413    
414    2004-12-13  Frank Koormann <[email protected]>
415    
416        Alternative Path feature: When loading a (moved) session where
417            shapefiles cannot be found, ask the user. Use the specified path
418            if further shapefiles are missing. However, ask the usr for confirmation
419            in such cases.
420    
421            * test/test_load.py (TestAltPath): New, tests for alternative path feature
422            in load_session()
423            (Shapefile_CallBack): Helper, implements controllable callback.
424    
425            * Thuban/UI/application.py (ThubanApplication.OnInit):
426            Added "alt_path" to self.path
427            (ThubanApplication.OpenSession): Added shapefile_callback as second
428            callback similar to db_connection_callback.
429            (ThubanApplication.run_alt_path_dialog): New, implementaion of
430            shapefile_callback. In addition to raising the dialog the control of
431            self.path('alt_path') is implemented here.
432    
433            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
434            (SessionLoader.open_shapefile): Open shapefile, eventually with
435            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
436            formerly used in start_fileshapesource()/start_layer().
437            (SessionLoader.start_fileshapesource): Call open_shapefile().
438            (SessionLoader.start_layer): Call open_shapefile().
439            (load_session): Added shapefile_callback.
440    
441            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
442            feature (search / check).
443            
444            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
445    
446    2004-12-11  Bernhard Reiter <[email protected]>
447    
448             svgexport 0.9.2: Point size supports for maps.
449    
450            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
451            (def draw_point_shape): new parameter size defaults to 2 as before.
452            (draw_shape_layer_incrementally): Moved draw_func log line higher.
453            Added draw_func call with size when dealing with a point layer.
454    
455            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
456            
457    2004-12-11  Bernhard Reiter <[email protected]>
458    
459            Made sure that newlines are inserted in the svg path d attributes
460            to raise the chance that the line length will be below 255 characters,
461            as recommended by REC SVG 1.1 in section 8.3.1.
462    
463            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
464            Adding \n before L's and changed whitespace handling.
465    
466            * Extensions/svgexport/test/test_svgmapwriter.py:
467            Adapted tests to new whitespace handling of DrawPolygon.
468    
469    2004-12-11  Bernhard Reiter <[email protected]>
470    
471            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
472    
473            * Extensions/svgexport/test/test_svgmapwriter.py:
474            Removed test_drawbezier in favour of new test_drawspline3 and
475            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
476            All only to test DrawSpline.
477    
478            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
479            New implementation now really using the strange algorithm of
480            xfig 3.1's approximated splines and its conversion to postscript
481            with one twist: SVG can do quadratic beziers, so skipped translation
482            to cubic beziers.
483            (TestWithDC): Typo in comment fixed.
484    
485    2004-12-09  Martin Schulze  <[email protected]>
486    
487            * Thuban/Model/classgen.py: Added missing character encoding
488    
489            * Extensions/wms/properties.py (OpenWMSProperties): removed
490    
491            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
492            support for get_srs_discrepancies() since there are no
493            discrepancies anymore (was a thinko)
494    
495            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
496            format priority now that more formats are supported globally by
497            the render engine.
498    
499    2004-12-08  Silke Reimer <[email protected]>
500            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
501            because it is not available in all versions of ogr
502    
503    2004-12-08  Bernhard Reiter <[email protected]>
504            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
505            global tests until a real one is commited.
506    
507    2004-12-07 Nina H�ffmeyer <[email protected]>
508    
509            * /Extensions/ogr/: Adding a new extension to read shapefiles with
510            ogr. It is planned to add other vector formats.
511    
512            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
513    
514    2004-12-07  Jan-Oliver Wagner <[email protected]>
515    
516            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
517            part of a (non-)fix to renable that the tests are always
518            executed.
519    
520    2004-12-07  Bernhard Reiter <[email protected]>
521    
522            * Extensions/svgexport/test/test_svgmapwriter.py:
523            Added test_drawbezier() to test DrawSpline().
524    
525            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
526            Really implemented bezier drawing.
527    
528            * Extensions/svgexport/__init__.py: Bumped version of svgexport
529            to 0.9.1 because now the legend examples lines styles
530            will be drawing with beziers.
531    
532    2004-12-05  Martin Schulze  <[email protected]>
533    
534            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
535            GIF as supported bitmap image formats (helpful for the WMS extension)
536    
537    2004-11-30  Martin Schulze  <[email protected]>
538    
539            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
540            Improved the test for the internal compare method
541    
542    2004-11-27  Jan-Oliver Wagner <[email protected]>
543    
544            * Thuban/UI/about.py (About.__init__): Added
545            Norbert Solymosi for hungarian translation and Ole Rahn
546            as contrbutor. Moved Bernhard Reiter from Contributor
547            to Developer.
548    
549    2004-11-27  Bernhard Reiter <[email protected]>
550    
551            * Extensions/svgexport/test/test_svgmapwriter.py:
552            Removed Jan from author list as he did not change enough significant
553            lines yet.
554    
555            * Extensions/svgexport/__init__.py: Added Bernhard as author
556            of the Extension.
557    
558    2004-11-27  Jan-Oliver Wagner <[email protected]>
559    
560            * po/hu.po: New. Hungarian translation. Contributed
561            by Norbert Solymosi.
562    
563    2004-11-26  Bernhard Herzog  <[email protected]>
564    
565            * Extensions/svgexport/test/test_svgmapwriter.py
566            (Testobjectexport.test_transparent_polygon): Commented out some
567            debug prints
568    
569    2004-11-24  Jan-Oliver Wagner <[email protected]>
570    
571            Fix broken tests for svg extension and added svg legend
572            to Experimental menu.
573    
574            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
575            the test run correctly even if the extension is a package.
576            Also removed the "import Thuban" which makes no sense.
577    
578            * Extensions/svgexport/__init__.py: Fix to have the extensions'
579            test module also be executed from the global test routine.
580            This is done by looking for the absense of the DISPLAY variable.
581    
582            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
583            to Experimental menu since this module has yet not reached a stable
584            status (ie. 1.0).
585    
586    2004-11-22  Bernhard Reiter <[email protected]>
587    
588            * Extensions/svgexport/svgmapwriter.py:
589            Added verbose variable and some logging depending on it.
590            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
591            because counting i is not necessary.
592            (class Pen, class Brush): Added simple __str__ methods.
593            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
594            not exported to svg file) Note: holes still unhandled.
595    
596            * Extensions/svgexport/test/test_svgmapwriter.py:
597                    Made a baseclass TestWithDC for test needed a DC.
598                    Added tests for bug #2698 (transparent polygons are not
599                    exported to svg file):
600                    Testobjectexport.test_transparent_polygon()
601    
602            * Thuban/Model/base.py (UnsetModified):
603            Fixed some typos in docstring.
604    
605            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
606            Added hints on the used algorithm for handling holes.
607    
608    2004-11-20  Jan-Oliver Wagner <[email protected]>
609    
610            Some face lifting for the examples.
611    
612            * Examples/__init__.py: Make this directory a package.
613    
614            * Examples/simple_extensions/__init__.py: Make this directory a package.
615    
616            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
617            menu to Examples menu.
618    
619            * Examples/simple_extensions/simple_command.py: Some more comments,
620            minor changes.
621    
622            * Examples/simple_extensions/simple_tool.py: Minor changes.
623    
624    2004-11-20  Jan-Oliver Wagner <[email protected]>
625    
626            Changed way of extension registry for wms and added extension
627            registry for umn_mapserver extension.
628    
629            * Extensions/wms/__init__.py: Added registry entry and the importing
630            of the actual wms module. Included a test for the required PyOGCLib.
631    
632            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
633    
634            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
635            importing of the actual umn mapserver management modules.
636            Included a test for the required Python MapScript.
637    
638    2004-11-20  Jan-Oliver Wagner <[email protected]>
639    
640            Changed way of extension registry for importAPR, bboxdump
641            and added extension registry for svgexport.extension registry for
642            svgexport.
643    
644            * Extensions/importAPR/__init__.py: Added registry entry and the importing
645            of the actual importAPR module.
646    
647            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
648            __init__.py).
649    
650            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
651            ����of the actual bboxdump module.
652    
653            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
654            ����__init__.py).
655    
656            * Extensions/svgexport/__init__.py: Added registry entry and the importing
657            of the svgsaver module.
658    
659            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
660            to Experimental menu since this module has yet not reached a stable
661            status (ie. 1.0).
662    
663    2004-11-18  Jan-Oliver Wagner <[email protected]>
664    
665            Now the hit test considers the size of point symbols.
666    
667            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
668            'size' defaulting to the previously fixed value 5.
669            Extended doc-string.
670            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
671            for symbols.
672            Now the size of the largest point symbol is determined to find out
673            about whether the point has been hit.
674            This fixes the problem that only clicks inside a fixed distance of
675            5 where found.
676    
677    2004-11-17  Jan-Oliver Wagner <[email protected]>
678    
679            Another open issue fixed regarding sizeable symbols: correct rendering of
680            selected symbols.
681    
682            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
683            Added consideration of the specific size of point symbols.
684            The property for each point symbol is retrieved and the size applied
685            for the rendering method.
686            Added doc-string.
687    
688    2004-11-16  Jan-Oliver Wagner <[email protected]>
689    
690            Changed way of Extension Registry for gns2shp and profiling.
691    
692            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
693            __init__.py).
694    
695            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
696            of the actual gns2shp module.
697    
698            * Extensions/profiling/profiling.py: Removed registry entry (moved to
699            __init__.py).
700    
701            * Extensions/profiling/__init__.py: Added registry entry and the importing
702            of the actual profiling module.
703    
704    2004-10-28  Bernhard Reiter <[email protected]>
705    
706            * Extensions/svgexport/: Minor improvements to doc strings.
707    
708    2004-10-07  Jan-Oliver Wagner <[email protected]>
709    
710            Further elements for sizable point objects now
711            making this feature usable though not yet complete.
712    
713            * Thuban/Model/save.py (SessionSaver.write_classification): Write
714            attribute 'size' for cldata when the shape layer is of point type.
715            This also now make the test_load.py tests happy.
716    
717            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
718            gradient.
719    
720            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
721            ID_SELPROP_SPINCTRL_LINEWIDTH.
722            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
723            (ID_SELPROP_SPINCTRL_SIZE): New Id.
724            (SelectPropertiesDialog.__init__): Added a second spin control
725            for the size in case the corresponding layer is of point type.
726            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
727            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
728            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
729            and refresh preview.
730    
731    
732    
733    2004-10-04  Martin Schulze  <[email protected]>
734    
735            * Extensions/wms/test/test_parser.py
736            (TestWMSCapabilitiesParser.test_compareLists): Added missing
737            self-test for compareLists()
738            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
739            self-test for compareDicts()
740            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
741            to verify the test routine fails with non-equal arguments
742            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
743            to verify the test routine fails with non-equal arguments
744    
745    2004-10-03  Jan-Oliver Wagner <[email protected]>
746    
747            First elements for sizeable point objects.
748    
749            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
750    
751            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
752    
753            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
754            of a corresponding argument is given.
755            (TestSymbolSize): New. Test the size attribute of cldata.
756    
757            * Thuban/Model/classification.py: Removed some trailing whitespaces.
758            (ClassGroupProperties.__init__): Set default size.
759            (ClassGroupProperties.SetProperties): Set the size.
760            (ClassGroupProperties.GetSize): New. Return the size.
761            (ClassGroupProperties.SetSize): New. Set the size.
762            (ClassGroupProperties__eq__): Compare also size.
763            (ClassGroupProperties__repr__): Print also size.
764    
765            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
766            the size attribute.
767    
768            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
769            Also, now there is a return value that indicates whether the drawing
770            size exceeded the given rect extent and if so the new extent.
771            Finally, point objects are drawn depending on the size. If either
772            the width or height is exceeded, the new extent is returned.
773            (ClassRenderer.Draw): Now when calling the previewer drawing function,
774            evaluate the return value and, if not None, adapt the grid widget size
775            accordingly and redraw again.
776    
777            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
778            If the draw function is for points, call it with the size as additional
779            parameter.
780            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
781            the size. Compute the radius using the size.
782    
783            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
784            that Thuban supports size, apply this correctly.
785    
786            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
787    
788    2004-10-03  Jan-Oliver Wagner <[email protected]>
789    
790            * Doc/manual/thuban-manual-de.xml: Started translation of
791            Map chapter.
792    
793    2004-10-01  Martin Schulze  <[email protected]>
794    
795            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
796            argument for general use through properties-dialog selector
797            
798            * Thuban/UI/classifier.py: Register properties dialog classes for
799            both provided layer classes/types.
800    
801            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
802            map can be retrieved through the parent which is passed to the
803            constructor anyway and doesn't require an argument of its own,
804            required for the unification of arguments for general use through
805            properties-dialog selector.
806            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
807            whether a dialog is already opened (and raising it to the users
808            attention) and creating a new dialog into a function of its own
809            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
810            method
811            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
812            global registration of properties dialog classes (which are indeed
813            layer-specific).
814    
815            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
816            for general use through properties-dialog selector, the map can be
817            retrieved through the parent and doesn't require an argument of
818            its own.
819    
820            * Extensions/wms/wms.py: Register the properties dialog class for
821            the provided WMS layer
822    
823    2004-09-28  Jan-Oliver Wagner <[email protected]>
824    
825            New feature: Registry for Extensions.
826    
827            * Thuban/UI/extensionregistry.py: This module defines a registry for
828            Extensions.
829    
830            * Thuban/UI/about.py (About.__init__): Added description
831            of the registered extensions with all of the information.
832    
833            * Thuban/Model/extension.py (Extension): Improved doc-string.
834    
835            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
836            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
837            Extensions/wms/wms.py: Added registration of the extension.
838    
839    2004-09-27  Bernhard Reiter <[email protected]>
840    
841            More fixes to svgexport to make used ids unique and
842            conforming to XML's Name production.
843    
844            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
845            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
846            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
847            Added Bernhard R. as author.
848            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
849            concatenation char now (makes test_make_ide_nosetbaseid() valid).
850            Also transform second id part with "%d" and catch the TypeError
851            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
852            Corrected typo inBernhard's author line.
853            (SetBaseID): Return the transformed base id. Transform characters
854            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
855            import binascii. If to be set string starts with "xml" or so, add "t".
856            (draw_shape_layer_incrementally): use the returned value of SetBaseID
857            for used_baseids checks.
858    
859    2004-09-25  Bernhard Herzog  <[email protected]>
860    
861            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
862            Remove a debug print and some tab characters.
863    
864    2004-09-25  Bernhard Reiter <[email protected]>
865    
866            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
867            (SetBaseID, SetID, make_id): Improved docstring comments to explain
868            the interaction of the three functions and the XML id contrains.
869    
870    
871    2004-09-23  Jan-Oliver Wagner <[email protected]>
872    
873            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
874            Module.
875    
876            * Doc/README: Added info on ThubanModel.xmi.
877    
878    2004-09-23  Jan-Oliver Wagner <[email protected]>
879    
880            * Doc/README: New. Some info about how to generate technical
881            documentation from the source code.
882            This text was send to the Thuban developer mailing list on
883            September 21st 2004 by Bernhard Reiter.
884    
885    2004-09-21  Bernhard Reiter <[email protected]>
886    
887            Improved the svgexport to only use unique ids. Will issues
888            an error message dialoge when two layer names are the same.
889            ShapeIDs are now added with a dash within the svg ids.
890    
891            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
892            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
893            (TestSVGRenderer): New test class with test_make_in() and
894            test_check_for_layer_name_clash()
895            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
896            and draw_shape_layer_incrementally() to not use a baseid twice,
897            satisfying test_check_for_layer_name_clash()
898            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
899            test_make_in().
900            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
901            and wxICON_HAND.
902            (write_to_svg): Put dc and rendering in a try statement and on
903            catching SVGmapWriterError notify the user and delete the target file.
904    
905    2004-09-20  Bernhard Reiter <[email protected]>
906    
907            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
908    
909  2004-09-03  Jan Sch�ngel  <[email protected]>  2004-09-03  Jan Sch�ngel  <[email protected]>
910    
911          * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a          * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a

Legend:
Removed from v.2342  
changed lines
  Added in v.2537

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26