/[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 2075 by bh, Thu Feb 19 13:38:47 2004 UTC revision 2524 by frank, Tue Jan 18 10:19:25 2005 UTC
# Line 1  Line 1 
1    2005-01-18  Frank Koormann <[email protected]>
2    
3            New Extension: mouseposition
4            Tool to collect mouse click positions (map coordinates) in a dialog.
5    
6            * Extensions/mouseposition/__init__.py: New, extension registration
7    
8            * Extensions/mouseposition/mouseposition.py: New, implements the
9            dialog and adds a tool to Thuban mainwindow.
10    
11            * Extensions/mouseposition/position.xpm: New, icon for tool.
12    
13    2005-01-14  Jan-Oliver Wagner <[email protected]>
14    
15            * Doc/manual/thuban-manual-de.xml: More translations.
16    
17    2005-01-11  Frank Koormann <[email protected]>
18    
19            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
20            Fix indention bug.
21    
22    2005-01-09  Frank Koormann <[email protected]>
23    
24            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
25            BugFix 2901: Explicitly copy layers ClassificationColumn since it
26            is not part of the layers Classification.
27    
28    2005-01-03  Frank Koormann <[email protected]>
29    
30            * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
31            BugFix 2883: Former implementation only worked on classified point
32            layers: KeyError was raised, now use the default size if field is None.
33    
34    2004-12-27  Bernhard Reiter <[email protected]>
35    
36            svgexport 1.0.0cvs: Fixed label export.
37    
38            * Extensions/svgexport/test/test_svgmapwriter.py:
39            class TestSVGRenderer(): New class; new test test_label_font().
40    
41            * Extensions/svgexport/svgmapwriter.py
42            (SVGRenderer.label_font()): initialised Font size with self.factor now,
43            makes test_label_font happy.
44    
45            * Extensions/svgexport/TODO: crossed out fixed label export item.
46            Added item for options.
47    
48            * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
49    
50    2004-12-27  Russell Nelson  <[email protected]>
51    
52            Middle mouse button pans.
53    
54            * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
55            OnMiddleDown and OnMiddleUp events.
56            (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
57            previously used tool.
58            (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
59            pressing the middle mouse button.
60    
61    2004-12-27  Jan-Oliver Wagner <[email protected]>
62    
63            * Doc/manual/thuban-manual-de.xml: More translations.
64    
65    2004-12-23  Jan-Oliver Wagner <[email protected]>
66    
67            * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
68            \n to stderr after the warnings. Thanks to Russell Nelson.
69    
70    2004-12-20  Nina Hueffmeyer <[email protected]>
71    
72            * Extensions/ogr/ogrshapes.py: Fixed some issues from
73            Bernhard (coding guidelines etc.). Additionally it is now possible to
74            display shapefiles containing feature collections (e.g.polygons
75            with holes). Works with gdal 1.2.1 now.
76    
77            * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
78            from Bernhard (coding guidelines etc.). If ogr can't be imported,
79            tests are skipped now.
80    
81            * Extensions/ogr/ogrstart.py: Fixed some typings.
82    
83    2004-12-20  Bernhard Reiter <[email protected]>
84    
85            * Extensions/svgexport/TODO: updated to add support for
86            raster layers and labels for 1.0.1.
87    
88            * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
89            Issue a warning now.
90    
91    2004-12-19  Bernhard Reiter <[email protected]>
92    
93            * Extensions/svgexport/TODO: Added idea to support triggering
94            the application down the pipe.
95    
96    2004-12-19  Bernhard Reiter <[email protected]>
97    
98            svgexport: Improved code quality, mainly by better naming.
99    
100            * Extensions/svgexport/svgmapwriter.py:
101            DrawPath() renamed to DrawPolygonPath(),
102            added documentation, improved comments and variable names.
103            
104            * Extensions/svgexport/svgmapwriter.py,
105              Extensions/svgexport/test/test_svgmapwriter.py:
106            All using DrawPolygonPath() now, the default parameter closed=True
107            omitted.
108    
109            * Extensions/svgexport/test/test_svgmapwriter.py:
110            renamed test_polygon_opened() to test_polyline()
111            renamed test_transparent_polygon() to test_transparent_polyline()
112    
113    2004-12-18  Jan-Oliver Wagner <[email protected]>
114    
115            Some fixes of gns2shp extension.
116    
117            * Extensions/gns2shp/test/__init__.py: New. Make this directory a
118            package.
119    
120            * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
121            dynamically.
122    
123            * Extensions/gns2shp/test/README: Simplified description how to test.
124    
125            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
126            fixed some dimensions of fields according to the GNS documentation
127            which seems to change undocumented.
128            Now killing trailing \n and/or \r from MODIFY_DATE.
129            This fixes RT#2453.
130    
131    2004-12-18  Bernhard Reiter <[email protected]>
132    
133            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
134    
135            * Extensions/svgexport/test/test_svgmapwriter.py:
136            Added new tests: test_export_polygon_with_hole()
137            and test_polygon_with_hole().
138    
139            * Extensions/svgexport/svgmapwriter.py
140            (draw_polygon_shape()): Uses DrawPath correctly now.
141    
142            * Doc/manual/thuban-manual.xml: Added documentation for stable
143            extention svgexport.    
144            * Doc/manual/thuban-manual-de.xml: Copied English section about
145            svexport over.
146    
147            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
148    
149            * Extensions/svgexport/svgsaver.py,maplegend.py:
150            Moved from experimental to stable extension menu.
151    
152            * Extensions/svgexport/TODO: updated.
153    
154    
155    2004-12-18  Bernhard Reiter <[email protected]>
156    
157            Added Extensions/svgexport/TODO
158    
159    2004-12-18  Bernhard Reiter <[email protected]>
160    
161            Refactored in svgexport:
162            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
163    
164            * Extensions/svgexport/svgmapwriter.py
165            Added verbosity level 3 to print out polygon points.
166            (class Point): added __repr__
167            (class Brush, __str__()): Added space after ,.
168            (DrawPolygon): Renamed to DrawPath()
169            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
170            (DrawLines): Using DrawPath now.
171    
172            * Extensions/svgexport/test/test_svgmapwriter.py:
173            Replaced DrawPolygon() calls with DrawPath() and put the first argument
174            inside another list. Adapted test data with a newline before "M".
175    
176    2004-12-18  Bernhard Reiter <[email protected]>
177            
178            Refactored svgexport tests: 9 double tests runs eliminated;
179            code size reduced by 8 lines.
180    
181            * Extensions/svgexport/test/test_svgmapwriter.py:
182            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
183            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
184            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
185            this fixed the double running of the nine tests of TestVirtualDC.
186            (class TestVirtualDC): Using self.dc and self.file from setUp().
187    
188    2004-12-17  Bernhard Herzog  <[email protected]>
189    
190            Two windows specific fixes ported from thuban-1�0-branch:
191    
192            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
193            instead of getlocale because getlocale doesn't return a usable
194            encoding name on a german windows 2000
195    
196            * setup.py: windows build: Removed the absolute path names and
197            made all prfixes relative to the directory containing setup.py.
198            Makes it a little easier to adapt to a different system.
199    
200    2004-12-16  Bernhard Herzog  <[email protected]>
201    
202            Add support for PostGIS tables with LINESTRING geometries.
203            Fixes RT#2299
204    
205            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
206    
207            * test/postgissupport.py
208            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
209            table to "roads-multi" because it now uses MULTILINESTRING
210            geometries and introduce a new "roads" table that uses LINESTRING
211            (coords_to_multilinestring): Make the doc string more precise
212            (coords_to_linestring): New.  Create a LINESTRING WKT
213            representatin
214            (wkt_converter): Add coords_to_linestring
215            (upload_shapefile): Rephrase the doc-string a bit.
216    
217            * test/test_postgis_db.py (TestPostGISShapestoreArc)
218            (LineStringTests)
219            (TestPostGISShapestoreLineString)
220            (TestPostGISShapestoreMultiLineString): Split
221            TestPostGISShapestoreArc into a base class LineStringTests and two
222            derived classes TestPostGISShapestoreLineString for LINESTRING
223            geometries and TestPostGISShapestoreMultiLineString for
224            MULTILINESTRING geometries.  Most test methods are in the base
225            class with the exception of tests that explicitly check the raw
226            format.
227    
228    2004-12-16  Bernhard Herzog  <[email protected]>
229    
230            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
231    
232            * test/postgissupport.py (find_postgis_sql): Different postgis
233            versions put the postgis.sql file into slightly different places
234            so we have to look in both.  The updated doc string describes this
235            is more detail.
236    
237            * test/test_postgis_db.py
238            (TestPostGISSpecialCases.test_column_name_quoting): The return
239            value of UniqueValues is unsorted, so it has to be sorted for
240            comparison.
241    
242    2004-12-16  Bernhard Herzog  <[email protected]>
243    
244            Fix for RT#2237
245    
246            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
247            panel to be shown is the UnknownProjPanel disable the OK and Try
248            buttons.  Otherwise enable them.
249            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
250            the parameters.  In that case __GetProjection also returns None
251            now.
252    
253    2004-12-15  Bernhard Herzog  <[email protected]>
254    
255            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
256            minimum number of classes to 2.  The calculate_quantiles needs at
257            least two and raises an exception otherwise.  
258            Fixes RT#2549
259    
260    2004-12-15  Bernhard Herzog  <[email protected]>
261    
262            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
263            so that it returns a result for select statements.
264            (PostgreSQLServer.server_version): New.  Return the version of the
265            server software.
266            (PostgreSQLServer.require_authentication): The format of
267            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
268            server version and generate the file in the correct format
269    
270    2004-12-15  Bernhard Herzog  <[email protected]>
271    
272            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
273            in the doc string and rephrase it a little.
274    
275    2004-12-15  Frank Koormann <[email protected]>
276    
277            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
278            session has been loaded successfully. The check is called by the relevant
279            tests after executing load_session().
280    
281    2004-12-13  Bernhard Herzog  <[email protected]>
282    
283            Make sure the region used to determine which shapes are visible
284            actually matches the region on the printed page.  If this isn't
285            done properly some shapes might not be printed.  
286            Fixes RT #2692
287    
288            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
289            renderer has to be at the same position as the mapregion
290    
291            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
292            has to be moved by (self.shiftx, self.shifty) too.
293    
294    2004-12-13  Bernhard Herzog  <[email protected]>
295    
296            * libraries/pyprojection/Projection.i: Work around a bug in the
297            generated python code which leads to exception in the __del__
298            method when the constructor fails.  See the comments in the code
299            for more details.
300    
301            * libraries/pyprojection/Projection.py: Updated from Projection.i
302            with SWIG.
303    
304    2004-12-13  Bernhard Herzog  <[email protected]>
305    
306            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
307            (TestAltPath.test_02_path_error_fix_from_list)
308            (TestAltPath.test_05_path_error_fix_from_list_changed)
309            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
310            is destroyed in tearDown, so there's no need to do it in a test
311            case.
312    
313            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
314            debug print
315    
316    2004-12-13  Bernhard Herzog  <[email protected]>
317    
318            * Extensions/svgexport/test/test_svgmapwriter.py
319            (TestDrawSplines.setUp): Do not use super with the unittest
320            classes because in Python 2.2 they're still old-style classes.
321    
322    2004-12-13  Frank Koormann <[email protected]>
323    
324        Alternative Path feature: When loading a (moved) session where
325            shapefiles cannot be found, ask the user. Use the specified path
326            if further shapefiles are missing. However, ask the usr for confirmation
327            in such cases.
328    
329            * test/test_load.py (TestAltPath): New, tests for alternative path feature
330            in load_session()
331            (Shapefile_CallBack): Helper, implements controllable callback.
332    
333            * Thuban/UI/application.py (ThubanApplication.OnInit):
334            Added "alt_path" to self.path
335            (ThubanApplication.OpenSession): Added shapefile_callback as second
336            callback similar to db_connection_callback.
337            (ThubanApplication.run_alt_path_dialog): New, implementaion of
338            shapefile_callback. In addition to raising the dialog the control of
339            self.path('alt_path') is implemented here.
340    
341            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
342            (SessionLoader.open_shapefile): Open shapefile, eventually with
343            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
344            formerly used in start_fileshapesource()/start_layer().
345            (SessionLoader.start_fileshapesource): Call open_shapefile().
346            (SessionLoader.start_layer): Call open_shapefile().
347            (load_session): Added shapefile_callback.
348    
349            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
350            feature (search / check).
351            
352            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
353    
354    2004-12-11  Bernhard Reiter <[email protected]>
355    
356             svgexport 0.9.2: Point size supports for maps.
357    
358            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
359            (def draw_point_shape): new parameter size defaults to 2 as before.
360            (draw_shape_layer_incrementally): Moved draw_func log line higher.
361            Added draw_func call with size when dealing with a point layer.
362    
363            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
364            
365    2004-12-11  Bernhard Reiter <[email protected]>
366    
367            Made sure that newlines are inserted in the svg path d attributes
368            to raise the chance that the line length will be below 255 characters,
369            as recommended by REC SVG 1.1 in section 8.3.1.
370    
371            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
372            Adding \n before L's and changed whitespace handling.
373    
374            * Extensions/svgexport/test/test_svgmapwriter.py:
375            Adapted tests to new whitespace handling of DrawPolygon.
376    
377    2004-12-11  Bernhard Reiter <[email protected]>
378    
379            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
380    
381            * Extensions/svgexport/test/test_svgmapwriter.py:
382            Removed test_drawbezier in favour of new test_drawspline3 and
383            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
384            All only to test DrawSpline.
385    
386            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
387            New implementation now really using the strange algorithm of
388            xfig 3.1's approximated splines and its conversion to postscript
389            with one twist: SVG can do quadratic beziers, so skipped translation
390            to cubic beziers.
391            (TestWithDC): Typo in comment fixed.
392    
393    2004-12-09  Martin Schulze  <[email protected]>
394    
395            * Thuban/Model/classgen.py: Added missing character encoding
396    
397            * Extensions/wms/properties.py (OpenWMSProperties): removed
398    
399            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
400            support for get_srs_discrepancies() since there are no
401            discrepancies anymore (was a thinko)
402    
403            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
404            format priority now that more formats are supported globally by
405            the render engine.
406    
407    2004-12-08  Silke Reimer <[email protected]>
408            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
409            because it is not available in all versions of ogr
410    
411    2004-12-08  Bernhard Reiter <[email protected]>
412            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
413            global tests until a real one is commited.
414    
415    2004-12-07 Nina H�ffmeyer <[email protected]>
416    
417            * /Extensions/ogr/: Adding a new extension to read shapefiles with
418            ogr. It is planned to add other vector formats.
419    
420            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
421    
422    2004-12-07  Jan-Oliver Wagner <[email protected]>
423    
424            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
425            part of a (non-)fix to renable that the tests are always
426            executed.
427    
428    2004-12-07  Bernhard Reiter <[email protected]>
429    
430            * Extensions/svgexport/test/test_svgmapwriter.py:
431            Added test_drawbezier() to test DrawSpline().
432    
433            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
434            Really implemented bezier drawing.
435    
436            * Extensions/svgexport/__init__.py: Bumped version of svgexport
437            to 0.9.1 because now the legend examples lines styles
438            will be drawing with beziers.
439    
440    2004-12-05  Martin Schulze  <[email protected]>
441    
442            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
443            GIF as supported bitmap image formats (helpful for the WMS extension)
444    
445    2004-11-30  Martin Schulze  <[email protected]>
446    
447            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
448            Improved the test for the internal compare method
449    
450    2004-11-27  Jan-Oliver Wagner <[email protected]>
451    
452            * Thuban/UI/about.py (About.__init__): Added
453            Norbert Solymosi for hungarian translation and Ole Rahn
454            as contrbutor. Moved Bernhard Reiter from Contributor
455            to Developer.
456    
457    2004-11-27  Bernhard Reiter <[email protected]>
458    
459            * Extensions/svgexport/test/test_svgmapwriter.py:
460            Removed Jan from author list as he did not change enough significant
461            lines yet.
462    
463            * Extensions/svgexport/__init__.py: Added Bernhard as author
464            of the Extension.
465    
466    2004-11-27  Jan-Oliver Wagner <[email protected]>
467    
468            * po/hu.po: New. Hungarian translation. Contributed
469            by Norbert Solymosi.
470    
471    2004-11-26  Bernhard Herzog  <[email protected]>
472    
473            * Extensions/svgexport/test/test_svgmapwriter.py
474            (Testobjectexport.test_transparent_polygon): Commented out some
475            debug prints
476    
477    2004-11-24  Jan-Oliver Wagner <[email protected]>
478    
479            Fix broken tests for svg extension and added svg legend
480            to Experimental menu.
481    
482            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
483            the test run correctly even if the extension is a package.
484            Also removed the "import Thuban" which makes no sense.
485    
486            * Extensions/svgexport/__init__.py: Fix to have the extensions'
487            test module also be executed from the global test routine.
488            This is done by looking for the absense of the DISPLAY variable.
489    
490            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
491            to Experimental menu since this module has yet not reached a stable
492            status (ie. 1.0).
493    
494    2004-11-22  Bernhard Reiter <[email protected]>
495    
496            * Extensions/svgexport/svgmapwriter.py:
497            Added verbose variable and some logging depending on it.
498            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
499            because counting i is not necessary.
500            (class Pen, class Brush): Added simple __str__ methods.
501            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
502            not exported to svg file) Note: holes still unhandled.
503    
504            * Extensions/svgexport/test/test_svgmapwriter.py:
505                    Made a baseclass TestWithDC for test needed a DC.
506                    Added tests for bug #2698 (transparent polygons are not
507                    exported to svg file):
508                    Testobjectexport.test_transparent_polygon()
509    
510            * Thuban/Model/base.py (UnsetModified):
511            Fixed some typos in docstring.
512    
513            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
514            Added hints on the used algorithm for handling holes.
515    
516    2004-11-20  Jan-Oliver Wagner <[email protected]>
517    
518            Some face lifting for the examples.
519    
520            * Examples/__init__.py: Make this directory a package.
521    
522            * Examples/simple_extensions/__init__.py: Make this directory a package.
523    
524            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
525            menu to Examples menu.
526    
527            * Examples/simple_extensions/simple_command.py: Some more comments,
528            minor changes.
529    
530            * Examples/simple_extensions/simple_tool.py: Minor changes.
531    
532    2004-11-20  Jan-Oliver Wagner <[email protected]>
533    
534            Changed way of extension registry for wms and added extension
535            registry for umn_mapserver extension.
536    
537            * Extensions/wms/__init__.py: Added registry entry and the importing
538            of the actual wms module. Included a test for the required PyOGCLib.
539    
540            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
541    
542            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
543            importing of the actual umn mapserver management modules.
544            Included a test for the required Python MapScript.
545    
546    2004-11-20  Jan-Oliver Wagner <[email protected]>
547    
548            Changed way of extension registry for importAPR, bboxdump
549            and added extension registry for svgexport.extension registry for
550            svgexport.
551    
552            * Extensions/importAPR/__init__.py: Added registry entry and the importing
553            of the actual importAPR module.
554    
555            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
556            __init__.py).
557    
558            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
559            ����of the actual bboxdump module.
560    
561            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
562            ����__init__.py).
563    
564            * Extensions/svgexport/__init__.py: Added registry entry and the importing
565            of the svgsaver module.
566    
567            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
568            to Experimental menu since this module has yet not reached a stable
569            status (ie. 1.0).
570    
571    2004-11-18  Jan-Oliver Wagner <[email protected]>
572    
573            Now the hit test considers the size of point symbols.
574    
575            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
576            'size' defaulting to the previously fixed value 5.
577            Extended doc-string.
578            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
579            for symbols.
580            Now the size of the largest point symbol is determined to find out
581            about whether the point has been hit.
582            This fixes the problem that only clicks inside a fixed distance of
583            5 where found.
584    
585    2004-11-17  Jan-Oliver Wagner <[email protected]>
586    
587            Another open issue fixed regarding sizeable symbols: correct rendering of
588            selected symbols.
589    
590            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
591            Added consideration of the specific size of point symbols.
592            The property for each point symbol is retrieved and the size applied
593            for the rendering method.
594            Added doc-string.
595    
596    2004-11-16  Jan-Oliver Wagner <[email protected]>
597    
598            Changed way of Extension Registry for gns2shp and profiling.
599    
600            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
601            __init__.py).
602    
603            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
604            of the actual gns2shp module.
605    
606            * Extensions/profiling/profiling.py: Removed registry entry (moved to
607            __init__.py).
608    
609            * Extensions/profiling/__init__.py: Added registry entry and the importing
610            of the actual profiling module.
611    
612    2004-10-28  Bernhard Reiter <[email protected]>
613    
614            * Extensions/svgexport/: Minor improvements to doc strings.
615    
616    2004-10-07  Jan-Oliver Wagner <[email protected]>
617    
618            Further elements for sizable point objects now
619            making this feature usable though not yet complete.
620    
621            * Thuban/Model/save.py (SessionSaver.write_classification): Write
622            attribute 'size' for cldata when the shape layer is of point type.
623            This also now make the test_load.py tests happy.
624    
625            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
626            gradient.
627    
628            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
629            ID_SELPROP_SPINCTRL_LINEWIDTH.
630            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
631            (ID_SELPROP_SPINCTRL_SIZE): New Id.
632            (SelectPropertiesDialog.__init__): Added a second spin control
633            for the size in case the corresponding layer is of point type.
634            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
635            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
636            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
637            and refresh preview.
638    
639    
640    
641    2004-10-04  Martin Schulze  <[email protected]>
642    
643            * Extensions/wms/test/test_parser.py
644            (TestWMSCapabilitiesParser.test_compareLists): Added missing
645            self-test for compareLists()
646            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
647            self-test for compareDicts()
648            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
649            to verify the test routine fails with non-equal arguments
650            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
651            to verify the test routine fails with non-equal arguments
652    
653    2004-10-03  Jan-Oliver Wagner <[email protected]>
654    
655            First elements for sizeable point objects.
656    
657            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
658    
659            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
660    
661            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
662            of a corresponding argument is given.
663            (TestSymbolSize): New. Test the size attribute of cldata.
664    
665            * Thuban/Model/classification.py: Removed some trailing whitespaces.
666            (ClassGroupProperties.__init__): Set default size.
667            (ClassGroupProperties.SetProperties): Set the size.
668            (ClassGroupProperties.GetSize): New. Return the size.
669            (ClassGroupProperties.SetSize): New. Set the size.
670            (ClassGroupProperties__eq__): Compare also size.
671            (ClassGroupProperties__repr__): Print also size.
672    
673            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
674            the size attribute.
675    
676            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
677            Also, now there is a return value that indicates whether the drawing
678            size exceeded the given rect extent and if so the new extent.
679            Finally, point objects are drawn depending on the size. If either
680            the width or height is exceeded, the new extent is returned.
681            (ClassRenderer.Draw): Now when calling the previewer drawing function,
682            evaluate the return value and, if not None, adapt the grid widget size
683            accordingly and redraw again.
684    
685            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
686            If the draw function is for points, call it with the size as additional
687            parameter.
688            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
689            the size. Compute the radius using the size.
690    
691            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
692            that Thuban supports size, apply this correctly.
693    
694            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
695    
696    2004-10-03  Jan-Oliver Wagner <[email protected]>
697    
698            * Doc/manual/thuban-manual-de.xml: Started translation of
699            Map chapter.
700    
701    2004-10-01  Martin Schulze  <[email protected]>
702    
703            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
704            argument for general use through properties-dialog selector
705            
706            * Thuban/UI/classifier.py: Register properties dialog classes for
707            both provided layer classes/types.
708    
709            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
710            map can be retrieved through the parent which is passed to the
711            constructor anyway and doesn't require an argument of its own,
712            required for the unification of arguments for general use through
713            properties-dialog selector.
714            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
715            whether a dialog is already opened (and raising it to the users
716            attention) and creating a new dialog into a function of its own
717            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
718            method
719            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
720            global registration of properties dialog classes (which are indeed
721            layer-specific).
722    
723            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
724            for general use through properties-dialog selector, the map can be
725            retrieved through the parent and doesn't require an argument of
726            its own.
727    
728            * Extensions/wms/wms.py: Register the properties dialog class for
729            the provided WMS layer
730    
731    2004-09-28  Jan-Oliver Wagner <[email protected]>
732    
733            New feature: Registry for Extensions.
734    
735            * Thuban/UI/extensionregistry.py: This module defines a registry for
736            Extensions.
737    
738            * Thuban/UI/about.py (About.__init__): Added description
739            of the registered extensions with all of the information.
740    
741            * Thuban/Model/extension.py (Extension): Improved doc-string.
742    
743            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
744            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
745            Extensions/wms/wms.py: Added registration of the extension.
746    
747    2004-09-27  Bernhard Reiter <[email protected]>
748    
749            More fixes to svgexport to make used ids unique and
750            conforming to XML's Name production.
751    
752            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
753            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
754            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
755            Added Bernhard R. as author.
756            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
757            concatenation char now (makes test_make_ide_nosetbaseid() valid).
758            Also transform second id part with "%d" and catch the TypeError
759            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
760            Corrected typo inBernhard's author line.
761            (SetBaseID): Return the transformed base id. Transform characters
762            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
763            import binascii. If to be set string starts with "xml" or so, add "t".
764            (draw_shape_layer_incrementally): use the returned value of SetBaseID
765            for used_baseids checks.
766    
767    2004-09-25  Bernhard Herzog  <[email protected]>
768    
769            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
770            Remove a debug print and some tab characters.
771    
772    2004-09-25  Bernhard Reiter <[email protected]>
773    
774            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
775            (SetBaseID, SetID, make_id): Improved docstring comments to explain
776            the interaction of the three functions and the XML id contrains.
777    
778    
779    2004-09-23  Jan-Oliver Wagner <[email protected]>
780    
781            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
782            Module.
783    
784            * Doc/README: Added info on ThubanModel.xmi.
785    
786    2004-09-23  Jan-Oliver Wagner <[email protected]>
787    
788            * Doc/README: New. Some info about how to generate technical
789            documentation from the source code.
790            This text was send to the Thuban developer mailing list on
791            September 21st 2004 by Bernhard Reiter.
792    
793    2004-09-21  Bernhard Reiter <[email protected]>
794    
795            Improved the svgexport to only use unique ids. Will issues
796            an error message dialoge when two layer names are the same.
797            ShapeIDs are now added with a dash within the svg ids.
798    
799            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
800            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
801            (TestSVGRenderer): New test class with test_make_in() and
802            test_check_for_layer_name_clash()
803            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
804            and draw_shape_layer_incrementally() to not use a baseid twice,
805            satisfying test_check_for_layer_name_clash()
806            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
807            test_make_in().
808            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
809            and wxICON_HAND.
810            (write_to_svg): Put dc and rendering in a try statement and on
811            catching SVGmapWriterError notify the user and delete the target file.
812    
813    2004-09-20  Bernhard Reiter <[email protected]>
814    
815            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
816    
817    2004-09-03  Jan Sch�ngel  <[email protected]>
818    
819            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
820            small bug with the line color. Now the line color will now only set
821            if it is set in Thuban an not Transparent.
822            
823            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
824            deleting the layers from mapfile. Now all layers will delete backwards
825            from the last.
826    
827    2004-08-20  Silke Reimer <[email protected]>
828    
829            * Thuban/Model/layer.py:
830            Fixes bug in projection handling: Otherwise very large region might not
831            have valid values in the layer's projection.
832    
833    2004-08-20  Silke Reimer <[email protected]>
834    
835            * Thuban/UI/about.py:
836            small changes to be consistent with coding style.
837              
838    2004-08-13  Martin Schulze  <[email protected]>
839    
840            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
841            Adjusted a comment
842    
843    2004-08-11  Silke Reimer <[email protected]>
844    
845            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
846                    too many and too enhanced imports of locale
847    
848    2004-08-10  Silke Reimer <[email protected]>
849    
850            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
851                    function unicodeToLocale() to convert special characters to users
852                    locale encoding
853    
854    2004-08-10  Jan-Oliver Wagner <[email protected]>
855    
856            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
857            lower case letter'
858    
859    2004-08-09  Jan Sch�ngel  <[email protected]>
860    
861            * ChangeLog: Rewrite the last ChangeLog entry to follow
862            the standard way.
863    
864            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
865            the function where it is needed, because it don't works if it stands
866            at the beginning.
867            (MF_Layer.__init__): Removed the extra numclassed variable. Now
868            numclasses from the mapscript will be used.
869            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
870            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
871            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
872            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
873            (MF_Map.create_new_layer): New. A new Layer is created and associated
874            with the mapscript object.
875            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
876            the mapscript.
877            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
878            linked to the layer in thuban, else the layerobject linked to the
879            thubanlayer will be used.
880            AnnotationLayer will now store the filename of the shapefile.
881            (MF_Map.remove_layer): If a layer is removed the associated object
882            must be set new.
883            
884            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
885            layers which are exists in thuban to the mapobj. All removed Layers
886            will be removed from the mapobj.
887            Added comments to all functions.
888            (thuban_to_map): No layer will be removed here.
889            
890            * Extensions/umn_mapserver/mf_handle.py
891            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
892            Layersettings for the mapserver kann be edited.
893    
894            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
895            imported, will be linked with the associated MF_Layer.
896            (import_mapfile): All layers, which are not selected, will be removed.
897            Disable the "import layer from mapfile" menu option.
898    
899            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
900            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
901            layer on permanently.
902    
903    2004-08-03  Jan Sch�ngel  <[email protected]>
904    
905            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
906            New. This function removes all metadata
907            (MF_Layer.set_group): New. Set the group setting.
908            (MF_Layer.get_group): New. Get the group setting.
909            (MF_Map): Removed the extra numlayers variable, used the mapscript
910            parameter instead.
911            (MF_Map.get_numlayers): New. This get numlayers.
912            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
913            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
914            if the object is an instance. Also added the annotation layer here to
915            export, but only the layer is created in the mapfile.
916    
917            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
918            the check if a mapobj exist, because its not needed anymore. The
919            export function is only available if a mapobj exist.
920            Use the new function to remove all layers.
921            
922            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
923            option and the metadata button. The layer dialog is temporary disabled.
924            (Metadata_CustomDataTable): Added some functions to show the grid
925            correct.
926    
927            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
928            the number of layer from import_mapfile to this function.
929            (AnnotationLayer): New. This Class shows the Annotation layer in
930            thuban. The layer don't do anything. It's only to show the layer
931            and to save the layer order.
932            (add_annotationlayer): New. Import an annotation layer to thuban.
933            (select_layer2import): New. Import only layers to thuban and not
934            the other settings like projection or scalebar.
935            (create_new_mapfile): Moved the _has_umn_mapobj function and the
936            create_new_mapfile functions from mf_handle.py to mf_import.py.
937            
938            * Extensions/umn_mapserver/sample/iceland.map: Added the group
939            parameter to the roads and cultural layers. Also added a new
940            Annotation Layer for the cultural points.
941    
942            * Extensions/umn_mapserver/sample/iceland.html: Added the select
943            option for the annotation layer.
944    
945            * Extensions/umn_mapserver/sample/index.html: Added the start
946            parameter for the annotation layer.
947    
948    2004-08-01  Jan-Oliver Wagner <[email protected]>
949    
950            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
951            translation completed.
952    
953            * Doc/manual/thuban-manual.xml (Chapter Session Management):
954            Fixed unprecise description for Save Session.
955    
956    2004-07-31  Jan-Oliver Wagner <[email protected]>
957    
958            Started translation of Users Manual into german.
959    
960            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
961    
962            * Doc/manual/Makefile: Added build instructions for german
963            users manual.
964    
965            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
966    
967    2004-07-28  Jan Sch�ngel  <[email protected]>
968    
969            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
970            functions. Now all metadata will handle by the function and its not
971            needed to initialize it from outside. Therefor the associated mapobj
972            will be stored in the Metadata Object. So we can use the special
973            functions from the associated mapobj to get the Metadata.
974            Therefor all initialization code for the metadata is removed from the
975            other classes.
976            (MF_Layer): Added a function to get the metadata object.
977            (MF_Map): Added a function to set the mappath, the path where
978            the mapfile ist stored.
979    
980            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
981            to set the extent in the mapfile. Now the code is set by the displayed
982            data in the Thuban-view.
983            (export_mapfile): The shapepath is now set empty, until relative
984            pathnames are supported.
985    
986            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
987            metadata. Yet only mapfile metadata are supported. Layer and class
988            supported are not implemented.
989            Added a dialog to handle layer informations. The dialog only shows the
990            selected layer at the moment.
991    
992            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
993            code for setting the extent in thuban. Now the extent is set to the
994            given extent from the mapfile.
995            Fixed a logical mistake. Now the extent is set when realy a layer is
996            loaded, and not if one is selected to load.
997    
998            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
999            move the shown map in the browser.
1000    
1001            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
1002            line to the mapobj and added metadata to the political layer.
1003    
1004            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
1005            for Metadata.
1006    
1007    2004-07-26  Martin Schulze  <[email protected]>
1008    
1009            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
1010            ClassMapper
1011    
1012            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
1013            case for the new ClassMapper
1014    
1015    
1016    2004-07-22  Bernhard Herzog  <[email protected]>
1017    
1018            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
1019            visible extent of the map in projected coordinates
1020    
1021            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
1022            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
1023            tests.
1024            (SimpleViewPortTest.test_visible_extent): New. The real test for
1025            VisibleExtent()
1026    
1027    2004-07-22  Bernhard Herzog  <[email protected]>
1028    
1029            * test/test_viewport.py: Use support.run_tests as the main
1030            function when running asa script.
1031    
1032    2004-07-22  Jan Sch�ngel <[email protected]>
1033    
1034            * Extensions/umn_mapserver/mf_export.py: Added "import os"
1035            Removed the old "import Thuban.UI.mainwindow" code.
1036            (tbextent_to_map): Removed the extra function and at the code direct
1037            to "thuban_to_map" function.
1038            (write_creatorcomment): Added. Now a short comment is added to the
1039            beginning of an generated mapfile.
1040            (export_mapfile): Now the Path and filename are saved in to variables,
1041            and not together in one variable. This is needed for the new
1042            write_creatorcomment function.
1043                    
1044            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
1045            import module "re". Also added Range and the ClassGroupRange import
1046            from Thuban. Both are needed for the new range expression import.
1047            (create_rangeexpression): Added. Creates a Range Expression in Thuban
1048            style from a given mapfile expression.
1049            (added_rasterlayer): Make some small code changes. The shapepath is
1050            now stored in an extra variable and the clazz_name is set empty if no
1051            class name set in the mapfile.
1052            Changed the Error message for Range Expressions, becaus the new
1053            function create a error string which will be shown in the dialog.
1054    
1055            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
1056            range expression import.
1057    
1058    2004-07-21  Jan-Oliver Wagner <[email protected]>
1059    
1060            * Extensions/umn_mapserver/README: Added hint that
1061            installation as root can be avoided. Removed all tabs.
1062    
1063    2004-07-16  Bernhard Herzog  <[email protected]>
1064    
1065            * test/test_viewport.py
1066            (ViewPortTest.test_changing_map_projection): Check that changing
1067            the projection of an empty map shown in a viewport doesn't lead to
1068            exceptions in the viewport's handler for the
1069            MAP_PROJECTION_CHANGED messages
1070    
1071            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
1072            try to keep the same region visible when the map actually contains
1073            something
1074    
1075    2004-07-15  Jan Sch�ngel <[email protected]>
1076    
1077            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
1078            mappath directly from the mapobj. Is needed because of the changes
1079            in mf_import.py.
1080            (MF_Layer.add_thubanclass): Added a new comment.
1081            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
1082            mapobj is empty there is no extent get from thuban an so no one can
1083            set to th mapobj.
1084            
1085            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
1086            the discription.
1087            Split the funktion in to three smaller ones. The new functions are
1088            add_rasterlayer, add_polygonlayer and select_layer2import.
1089            Removed the mapfilepath and filepath initialisation, because its know
1090            include in the new functions.
1091            Now nothing will be imported if cancel is pressed in the
1092            layer choice dialog.
1093    
1094    2004-07-14  Jan Sch�ngel <[email protected]>
1095    
1096            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
1097            import.
1098            (MF_Symbolset): Removed the extra variable for numsymbols.
1099            (MF_Class.__init__): Added a comment to the exception clause.
1100            Removed the extent init, because it was not needed anymore.
1101            (MF_Layer.add_thubanclass): Added the code to set the class name to
1102            the expression value from thuban if no label is defined.
1103            Added the code to export Range expressions from thuban to the mapfile.
1104            (MF_Map.set_extent): Removed the exception and replace it by some if
1105            code. If the size of a map is not defined the size will be set to 1,1.
1106            This is necessary because if the extent is set, mapscript checks if
1107            the size is greater than zero.
1108            (MF_Web): Added the get and set function for the template.
1109    
1110            * Extensions/umn_mapserver/mf_export.py: Added the function to check
1111            if a mapobject exists and used it to set the status of the menu items.
1112            If no mapfile exists the settings could not be edditied.
1113            Define after which menuitem the exportitem will include.
1114            
1115            * Extensions/umn_mapserver/mf_handle.py: Removed the import
1116            Thuban.UI.mainwindow clause, because it is not needed.
1117            Added the command Refresh() to all "OnChangeColor()" functions,
1118            because the color preview window was not updated on a color change.
1119            Added the function to check if a mapobject exists and used it to set the
1120            status of the menu items. If no mapobject exists the settings could not
1121            be edditied.
1122            (Map_Dialog): Moved the imagetype selector from the
1123            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
1124            (Web_Dialog): Removed the name label and added the template textbox.
1125    
1126            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
1127            the exception handling on loading the layers by an if statement. It
1128            is not necessary to us the exception there.
1129            The Filepath creation now use os.path.join to build the path.
1130    
1131            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
1132            definition from global to the setUp function. Now the testMap will
1133            initialize new on each test.
1134    
1135            * Extensions/umn_mapserver/sample/iceland.map: Include three new
1136            classes in the Line Layer, to test logical Expressions.
1137            Set the status of the class "Point9" in the Point Layer to off
1138            
1139    2004-07-13  Bernhard Herzog  <[email protected]>
1140    
1141            * Thuban/UI/baserenderer.py
1142            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
1143            optimization that tries not to draw layers under a raster layer.
1144            The bug was harmless.  All it effectively did was to produce The a
1145            strange messages about not being able to draw Layer instances for
1146            all vector layers below a raster layer which would be invisible
1147            anyway because the raster layer currently always covers the entire
1148            window
1149    
1150    2004-07-08  Jan Sch�ngel <[email protected]>
1151    
1152            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
1153            a list of supported outputformats. This formats are not alle supported
1154            because there is no possibility to get the outputformat without the
1155            name known. Make some formal changes to the code.
1156            (MF_Map.set_name()): Fixed a bug if the name is None.
1157    
1158            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
1159            statement, because its not needed anymore. The Outputformat is now
1160            given as string from the object. Make some formal changes to the code.
1161    
1162            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
1163            most of the new setting which were added during the last changes.
1164            Removed the MF_Size Test.
1165            
1166            * Extensions/umn_mapserver/test/test.map: Added a new class to the
1167            cultural Layer to test expressions and the the status of that layer
1168            from on to default.
1169            Changed the data path the the correct Thuban Data
1170            Added the Outputformat Object and Symbol Object
1171            
1172    2004-07-07  Jan Sch�ngel <[email protected]>
1173    
1174            * Extensions/umn_mapserver/mapfile.py: Added some new
1175            settings to edit (outputformat, label, imagetype)
1176    
1177            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
1178            the Label Dialog and add the OutputDialog.
1179            Make some changes to the code order.
1180    
1181    2004-07-06  Jan Sch�ngel <[email protected]>
1182    
1183            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
1184            and line Obj and add the scalebar_status_type, scalebar_style_type and
1185            scalebar_position_type.
1186            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
1187            are only used to create a Symbol like the circle in Thuban.
1188            Added the scalebarObject (MF_Scalebar)
1189            (MF_Class): Added set_status and get_status.
1190            (MF_Layer.add_thubanclass): Added code to set the class status
1191            (MF_Map): Added code to handle the symbols and scalebar
1192            (MF_Label): Added the set_partials and get_partials functions
1193            
1194            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
1195            from mapfile. Added a function to create a circle object like the one
1196            from thuban if no one exists.
1197            
1198            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
1199            press ok in the assosiated dialog and not at the end of the
1200            colordialog.
1201            Added the Dialog for the Scalebar.
1202            (Label_Dialog): Added the offset option
1203    
1204            * Extensions/umn_mapserver/mf_import.py: Added code to import the
1205            status of the Classes.
1206            Fixed a bug with the projection. Now the to_meter parameter will be
1207            added to the Projection only if it doesn't exists.
1208    
1209    2004-07-01  Jan Sch�ngel <[email protected]>
1210    
1211            Added the functionality to handle the content thuban is not
1212            able to handle directly.
1213    
1214            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
1215            Thuban with the possibility to edit the mapfile content.        
1216            
1217            * Extensions/umn_mapserver/mf_import.py: Added the possibility
1218            to import mapfiles without any layer selected. So it is possible
1219            to edit the other settings in a mapfile.
1220            (import_mapfile): Added code to use the editing functions.
1221            Added the possibility to import the projection to a layer if one
1222            is defined.
1223            Status settings (On,Off) will now set in thuban (visible, invisible).
1224            fixed a bug with with classnames. If no classname is set in mapfile
1225            the value in Thuban will set to the expression.
1226            
1227            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
1228            possibility to save a new mapfile or use the old one which is
1229            imported or new created.
1230            Added code to use the editing functions.
1231            Remove some not needed import statements
1232    
1233            * Extensions/umn_mapserver/mapfile.py: Added new types which are
1234            need for the editing functions.
1235            Added needed set-functions for the editing functions.
1236            Added the possibility to export rasterimages.
1237            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
1238            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
1239            moment.
1240            (MF_Class.set_thubanstyle): Now point layers will set to a default
1241            symbol to show a circle in mapserver and not only a 1px dot.
1242            (MF_Style.__init__): Fixed a bug with the color. Color was not set
1243            correct before.
1244            (MF_Size): Removed, because it is not needed.
1245            
1246            * Extensions/umn_mapserver/README: Added the hints to use the
1247            export and editing functions, too.
1248    
1249            * Extensions/umn_mapserver/sample/iceland.map: Added the
1250            new parameter "UNITS METERS".
1251            Change the political layer to status OFF.
1252    
1253            * Extensions/umn_mapserver/sample/README: Added some
1254            more details to setup the sample in the MapServer.
1255            
1256    2004-06-26  Bernhard Reiter <[email protected]>
1257    
1258            * Extensions/svgexport/test/test_svgmapwriter.py:
1259            Removed class VFile and used standard StringIO instead.
1260    
1261    2004-06-23  Jan Sch�ngel  <[email protected]>
1262    
1263            Add the export function to the umn_mapserver extension.
1264    
1265            * Extension/umn_mapserver/mf_export.py: New. This module extents
1266            Thuban with the possibility to export the Thuban content.
1267    
1268            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
1269            with the export module. Especially added the possibility to
1270            add thuban objects directly to the map objects.
1271    
1272            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
1273            because of the hint from Bernhard Herzog.
1274            Corrected the handling of absolute pathnames.
1275            Changed the Text of the Menu-Item, now the beginning is upper case.
1276    
1277            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
1278    
1279    2004-06-16  Jan Sch�ngel  <[email protected]>
1280    
1281            Add a sample and make some changes.
1282    
1283            * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
1284            import from * to explicit used statements. Changed the
1285            Thuban.UI.mainwindow import phrase, too.
1286            (import_mapfile):Corrected a clerical mistake.
1287            Added wxCHANGE_DIR in OpenFile Dialog.
1288            Added a MultipleChoiceDialog, to select the layers to load from
1289            mapfile into thuban. Thereby the projection is only set if one layer
1290            is selected.
1291            Added the possibility to handle relative pathnames which uses
1292            up-level references.
1293            Removed some doubled code.
1294            Corrected an error with integer values used as label in thuban
1295            ClassGroup.
1296            
1297            * Extensions/umn_mapserver/sample: New.
1298    
1299            * Extensions/umn_mapserver/sample/README: New. Describes the
1300            usage of the sample files.
1301    
1302            * Extensions/umn_mapserver/sample/iceland.map: New. This is
1303            a suitable .map-file for the iceland data.
1304    
1305            * Extensions/umn_mapserver/sample/index.html: New. The template
1306            for the mapfile.  
1307    
1308            * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
1309            file for the Iceland Application on web.
1310    
1311            * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
1312            some details.
1313    
1314            * Extensions/umn_mapserver/test/test_mapserver
1315            (mapserver_import_Test_generalClasses.test_MF_Color):
1316            Corrected the thubancolor test.
1317    
1318    2004-06-15  Jan Sch�ngel  <[email protected]>
1319    
1320            * Extensions/umn_mapserver/README: New. Install instruction.
1321    
1322    2004-06-14  Bernhard Reiter <[email protected]>
1323    
1324            * libraries/thuban/cpl_mfile.h: Added copyright header.
1325    
1326            * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
1327            Free Software License so that it is most useful with gdalwarp
1328            and bmpdataset.
1329    
1330    2004-06-14  Bernhard Herzog  <[email protected]>
1331    
1332            * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
1333            import of wxPython.wx itself (as opposed to the contents of
1334            wxPython.wx).  For some reason wxPython.wx is available as
1335            wxPython.wx.wx in at least some 2.4 releases.  Fixes RT#2482
1336            wrt. wxPython 2.4.
1337    
1338    2004-06-10  Jan Sch�ngel  <[email protected]>
1339    
1340            Initial version of new extension "umn_mapserver".  This extension aims
1341            to manage configuration for the UMN MapServer application.  This
1342            inital version just imports the .map-files and displays all, Thuban is
1343            capable of.
1344    
1345            * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
1346    
1347            * Extensions/umn_mapserver/test/README: New. Describes how to run the
1348            tests.
1349    
1350            * Extensions/umn_mapserver/test/test.map: New. This is a test
1351            .map-file for automated tests of the umn_mapserver extension of
1352            Thuban.
1353    
1354            * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
1355            UMN Mapserver classes.
1356    
1357            * Extensions/umn_mapserver/__init__.py: New. Init to make this
1358            directory a package.
1359    
1360            * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
1361            '.map'-file objects.
1362    
1363            * Extensions/umn_mapserver/mf_import.py: New. This module extends
1364            Thuban with the possibility to handle UMN MapServer mapfiles.
1365    
1366    2004-06-03  Bernhard Herzog  <[email protected]>
1367    
1368            * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
1369            to a tuple before using it as arguments to the % operator.  This
1370            fixes the formatting issue filed in RT#2239 on 2004-01-13 and
1371            reported today on thuban-list by Jan Sch�ngel
1372    
1373            * test/test_layer.py (TestLayerModification.setUp): Save the
1374            filename as an instance variable so we can refer to it in tests
1375            (TestLayerModification.test_tree_info): Uncomment this method
1376            again and make it work.  This tests for the formatting issue
1377            filed in RT#2239 on 2004-01-13
1378    
1379    2004-05-28  Bernhard Herzog  <[email protected]>
1380    
1381            * Thuban/UI/baserenderer.py: Fix some typos.
1382    
1383    2004-05-18  Jan-Oliver Wagner <[email protected]>
1384    
1385            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
1386            by increasing a field size.
1387    
1388    2004-05-17  Bernhard Herzog  <[email protected]>
1389    
1390            Update to newest shapelib and get rid of Thuban specific
1391            extensions, i.e. use the new DBFUpdateHeader instead of our
1392            DBFCommit kludge
1393    
1394            * libraries/shapelib/shpopen.c: Update to version from current
1395            shapelib CVS.
1396    
1397            * libraries/shapelib/shapefil.h: Update to version from current
1398            shapelib CVS.
1399    
1400            * libraries/shapelib/dbfopen.c: Update to version from current
1401            shapelib CVS.
1402            (DBFCommit): Effectively removed since shapelib itself has
1403            DBFUpdateHeader now which is better for what DBFCommit wanted to
1404            achieve.  
1405            We're now using an unmodified version of dbfopen.
1406    
1407            * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
1408            value '1' to the Lib.dbflibc extension.  This simply reflects the
1409            shapelib and pyshapelib updates
1410    
1411    2004-05-16  Jan-Oliver Wagner <[email protected]>
1412    
1413            Finished introduction of Menu.FindOrInsertMenu.
1414    
1415            * Extensions/drawshape/drawshape.py: Add the command
1416            to the experimental menu additionally to the toolbar.
1417    
1418            * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
1419            finding menu on its own.
1420    
1421            * Doc/manual/thuban-manual.xml: updated sample file
1422            to use FindOrInsertMenu().
1423    
1424            * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
1425            instead of finding menu on its own.
1426    
1427    2004-05-11  Jan-Oliver Wagner <[email protected]>
1428    
1429            * test/test_menu.py (MenuTest.test): Added testing
1430            of method Menu.FindOrInsertMenu.
1431    
1432    2004-05-10  Jan-Oliver Wagner <[email protected]>
1433    
1434            Introduce and use Menu.FindOrInsertMenu.
1435    
1436            * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
1437              given menu or, if not found, insert it.
1438    
1439            * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
1440            /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
1441            /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
1442            menu on its own.
1443    
1444    2004-05-06  Jan-Oliver Wagner <[email protected]>
1445    
1446            Introduce a abstract ColorDialog class and remove
1447            and outdated file.
1448    
1449            * Thuban/UI/proj4dialog.py: Removed. It is has been
1450            replaced by projdialog for quite a while and is not used
1451            anymore.
1452    
1453            * Thuban/UI/colordialog.py: New. Abstraction for color selection
1454            dialog(s).
1455    
1456            * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
1457            Now calls the abstract ColorDialog instead of wxColourDialog.
1458            This also removed the dependency to Color class conversion
1459            from this function.
1460    
1461    2004-05-04  Frank Koormann  <[email protected]>
1462    
1463            * Extensions/bboxdump/__init__.py: Fixed string left over from
1464            copying.
1465    
1466            * Extensions/bboxdump/bboxdump.py (bboxdump):
1467            Use layer.ShapeStore().AllShapes() to loop over shapes instead of
1468            xrange(layer.NumShapes()). Compile the bboxmessage from a list
1469            of formatted outputs (string.join) instead of appending to the
1470            message. Two progress bar dialogs to report progress on the sometimes
1471            lenghty processing.
1472    
1473    2004-04-22  Frank Koormann  <[email protected]>
1474    
1475            New Extension to dump bounding boxes of all shapes of the selected
1476            layer. An optional column can be specified to group the objects,
1477            in this case the bounding box is a union of the separate boxes.
1478            Dump can be displayed in a ScrolledMessageDialog or written to file.
1479            The Extension is simply a combination of available and well tested
1480            Thuban functionality.
1481    
1482            * Extensions/bboxdump/__init__.py: New: Init to make this
1483            directory a package.
1484    
1485            * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
1486            all shapes of the selected layer.
1487    
1488    2004-04-22  Jan-Oliver Wagner <[email protected]>
1489    
1490            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
1491            strings to be i18n now.
1492    
1493    2004-04-18  Jan-Oliver Wagner <[email protected]>
1494    
1495            Changing popup menu of legend from direct building
1496            to using the Menu construction as used for the mainwindow.
1497    
1498            * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
1499            layer_to_bottom, layer_visibility
1500            (MainWindow.LayerToTop): New. Put current layer to the top.
1501            (MainWindow.LayerToBottom): New. Put current layer to bottom.
1502            (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
1503            Replace 1,0 by True, False.
1504            (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
1505            current layer.
1506            (MainWindow.LayerShowTable): Removed raising of dialog.
1507            (_has_selected_layer_visible): New. Support function.
1508    
1509            * Thuban/UI/legend.py: ID_POP_xxx: removed.
1510            (LegendPanel.__init__): Removed EVT_MENU bindings.
1511            (LegendTree._OnRightClick): Replace direct creation of
1512            menu via wx Classes by applying the menu definition
1513            as of Menu class of menu.py.
1514            
1515    2004-04-16  Jan-Oliver Wagner <[email protected]>
1516    
1517            * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
1518        button string to stronger clearify that Thuban will be closed when hitting
1519            the button.
1520    
1521            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
1522            Now for layers without a ShapeStore a corresponding message is given
1523            to the user, that this layer has no table to show.
1524    
1525    2004-04-15  Martin Schulze  <[email protected]>
1526    
1527            * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
1528            recalculate the format for the internal render engine as well.
1529    
1530            * Extensions/wms/properties.py (wmsProperties): First start for a
1531            properties dialog.  It's functional for a first selection of
1532            layers, but still has some weired wxWidgets/GTK problems but
1533            beautification can be done later.
1534    
1535            * Extensions/wms/layer.py: Added more documentation
1536            (WMSLayer.getFormats): New: Return list of supported image formats
1537            by the WMS server
1538            (WMSLayer.getLayers): New: Return the list of layer names
1539            supported by the WMS server
1540            (WMSLayer.getLayerTitle): New: Return the title of the named layer
1541            (WMSLayer.getWMSFormat): New: Return the image format that is used
1542            for WMS GetMap requests
1543            (WMSLayer.setWMSFormat): New: Set the image format that is used
1544            for WMS GetMap requests
1545            (WMSLayer.__init__): Move away from using only one layer to using
1546            a list of layers (unsorted at the moment, though).
1547            (WMSLayer.getVisibleLayers): New: Return the list of names for all
1548            visible layers
1549            (WMSLayer.setVisibleLayers): New: Set the list of names for all
1550            visible layers
1551    
1552            * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
1553            order to establish a clean structure.
1554    
1555            * Extensions/wms/layer.py: Moved the WMS layer into a file on its
1556            own in order to establish a clean structure.
1557    
1558    2004-04-13  Martin Schulze  <[email protected]>
1559    
1560            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
1561            support for oldstyle (WMS 1.0 apparently) image format
1562            specification.
1563    
1564            * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
1565            supported graphic formats back to JPEG and BMP, PNG and others are
1566            too *cough* experimental...  Sorry, I meant to filter this out
1567            before I committed this part.  This should make the WMS extension
1568            run from CVS again.
1569            (wms_dialog): Reset an empty URL to None so that the subsequent
1570            program can depend on this, since the dialog will indeed return an
1571            empty URL, causing another declaration of love by Python.
1572    
1573            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
1574            Whenever a native BoundingBox request cannot be fulfilled, check
1575            whether the requested SRS is EPSG:3426, in which case return the
1576            LatLonBoundingBox values.
1577    
1578            * Extensions/wms/test/test_parser.py
1579            (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
1580            ignoring AUTO:* SRS.
1581            (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
1582            Added another test method to test whether the LatLonBoundingBox
1583            values will be returned if BoundingBox values are requested with
1584            SRS set to EPSG:3426.
1585    
1586            * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
1587            Added rudimentary support for non-EPSG SRS, i.e. ignore them for
1588            the moment by placing them into a variable which is currently
1589            unused.  Also test whether the EPSG SRS is numerical as it should
1590            be and add an error message if it is not.
1591    
1592            * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
1593            appear in the real world as well.  Since we cannot handle them yet
1594            (OGCLib can't either), we will ignore them for the moment.
1595    
1596            * Extensions/wms/parser.py: Use a variable for denoting the sample
1597            filename
1598            (WMSCapabilitiesParser.peekLayers): Added support for error
1599            messages during grok().  They will be aggregated in an array and
1600            may be displayed later.  We may have to add a classification
1601            "Warning" and "Error" to this.  That requires more experience,
1602            though, since not every error may be lethal.
1603    
1604            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
1605            ShowTable() dialog/frame when the user attempts to display it
1606            while it has been opened before already and not closed again.
1607    
1608    2004-04-11  Martin Schulze  <[email protected]>
1609    
1610            * Extensions/wms/infodialog.py: Adjusted the class documentation
1611    
1612            * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
1613            Switch to using Thuban{Begin,End}BusyCursor instead of the pure
1614            wxWidgets variants.
1615            (WMSLayer.__init__): The epsg_id variable is named top_srs now.
1616    
1617            * Extensions/wms/infodialog.py: Added an information dialog that
1618            will display various information about the WMS current resource,
1619            so that additional information such as the title, the abstract,
1620            fees and access constraints can be displayed for the user if they
1621            are documented in the WMS XML.
1622    
1623    2004-04-10  Martin Schulze  <[email protected]>
1624    
1625            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
1626            string handling.  It's "foo".lower() and not lower(foo) without
1627            lower imported from strings or something.
1628    
1629            * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
1630            from capabilities.py and parser.py.  Implement priority list for
1631            supported graphics formats, take care of wbmp != bmp.  PNG, TIFF
1632            and GIF are supported here, but not yet by main Thuban.  Hence,
1633            support for them may be removed later.  Special contribution to
1634            usability: get wxWidgets to change the cursor when we're waiting
1635            for data from the network so the user won't start to worry.  This
1636            causes a redrawing error/warning, though.
1637    
1638            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
1639            the DOM object.
1640    
1641    2004-04-01  Martin Schulze  <[email protected]>
1642    
1643            * Extensions/wms/capabilities.py: Adjusted documentation
1644            (WMSCapabilities.__init__): Improved documentation, fixed syntax
1645            (WMSCapabilities.saveCapabilities): Only catch IOError when
1646            handling files
1647            (WMSCapabilities.loadCapabilities): Only catch IOError when
1648            handling files
1649            __main__: corrected variable naming
1650            (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
1651            class a specialisation of WMSCapabilitiesParser as well.  Also
1652            execute grok() after loading or fetching capabilities, if that
1653            went well, so that subsequent calls can already access the data.
1654            (WMSCapabilities.getVersion): Export the used version of the
1655            GetCapabilities request, so we can use it for subsequent calls,
1656            i.e. for GetMap requests.
1657            (WMSCapabilities.fetchCapabilities): Added proper error handling
1658            when the GetCapabilities request failed, so that the surrounding
1659            program can act accordingly.
1660    
1661    2004-03-30  Martin Schulze  <[email protected]>
1662    
1663            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
1664            Adjusted the getLayerSRS method to return the list of SRSes
1665            extracted from <SRS> elements instead of <BoundingBox> elements.
1666            Added a bit of documentation as well.
1667            (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
1668            since it was only implemented due to a misunderstanding.
1669    
1670            * Extensions/wms/test/test_parser.py
1671            (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
1672            reflect the corrected interpretation of the standard: i.e. a layer
1673            does not have to define a BoundingBox for all SRSes it supports.
1674            Hence the <SRS></SRS> specification is authoritative, not the list
1675            of BoundingBoxes.
1676            (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
1677            to ensure None is returned for a non-existing SRS.
1678            (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
1679            since it is not applicable anymore.  Listing more SRSes in <SRS>
1680            elements is valid according to the specs.
1681    
1682    2004-03-26  Bernhard Reiter <[email protected]>
1683    
1684            * README: Nicer formatting of text. Improved descriptions.
1685            Reflected wxWidgets name change.
1686            
1687            * Thuban/UI/about.py: Extended copyright to 2004 and added
1688            information about the thuban-devel mailinglist.
1689    
1690    2004-03-24  Martin Schulze  <[email protected]>
1691    
1692            * Extensions/wms/capabilities.py: Renamed the class to contain
1693            'WMS', also added a linebreak where required
1694    
1695            * Extensions/wms/parser.py: Finally added the XML parser for the
1696            GetCapabilities response.
1697    
1698            * Extensions/wms/test/sample.xml: Adjusted the sample file so that
1699            <SRS> elements match the <BoundingBox> elements, except for the
1700            layer 'beschriftung'.
1701    
1702            * Extensions/wms/test/test_parser.py: Encode non-ascii strings
1703            since Python uses unicode strings internally, otherwise
1704            comparisons will fail.  Removed tests for getLayerBBoxSRS() since
1705            the SRS will be calculated anyway and this method is obsoleted by
1706            getLayerSRS().  Denote SRS as strings and not as cardinal numbers.
1707            Move loading the sample file into the setUp method.  Added a test
1708            for finding the integrity problem in the sample response.
1709            Improved formatting.
1710    
1711            * Extensions/wms/domutils.py: Added convenience routines for
1712            handling of Document Object Model (DOM) nodes.
1713    
1714            * Extensions/wms/test/test_domutils.py: Added a test for the
1715            domutils module
1716    
1717    2004-03-19  Martin Schulze  <[email protected]>
1718    
1719            * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
1720            Moved path detection and adding into a module of its own,
1721            adjustpath, which exports thubandir as main Thuban directory.
1722    
1723            * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
1724            detection and adding into a module of its own, adjustpath, which
1725            exports thubandir as main Thuban directory.  Reorganised the
1726            module in order to support the SkipTest feature for Thuban test
1727            cases.
1728    
1729            * Extensions/wms/test/adjustpath.py: Moved path detection and
1730            adding into a module of its own.
1731    
1732    2004-03-18  Martin Schulze  <[email protected]>
1733    
1734            * Extensions/wms/test/test_parser.py: Added another test for
1735            checking whether the WMS XML parser (to be implemented) returns
1736            the information we expect.  This requires a sample WMS WML file
1737            (sample.xml) which has been extracted from the frida server and
1738            "improved" manually.
1739    
1740            * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
1741            main Thuban directory to the path in order to be able to import
1742            random modules.  Adjusted the PyOGCLib detection to reuse the
1743            information gathered.  Also added a note about the PYTHONPATH
1744            environment variable.
1745    
1746            * Extensions/wms/test/test_ogclib.py: The format specification is
1747            a mime-type, not a graphic format, hence image/jpeg wou ld be the
1748            proper format and not JPEG.  We'll also have to take care of the
1749            encoding of / as %2F.
1750    
1751    2004-03-16  Martin Schulze  <[email protected]>
1752    
1753            * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
1754            comprehensive test for the getMapURL method, built compare URLs
1755            according to the documentation in OGC 01-068r3
1756    
1757            * Extensions/wms/capabilities.py (WMSCapabilities): Added the
1758            class WMSCapabilities to manage capabilites, will incorporate
1759            parsing the capabilities response and provide details for other
1760            classes.
1761    
1762    2004-03-12  Bernhard Herzog  <[email protected]>
1763    
1764            Support views in addition to normal tables in the postgis
1765            shapestore
1766    
1767            * Thuban/Model/postgisdb.py
1768            (PostGISShapeStore._fetch_table_information): Add a fallback for
1769            the case where the table name is not in the geometry_columns
1770            table.  This is usually the case for views.  Also, set
1771            self.shapestore here.
1772            (PostGISShapeStore.ShapeType): No need to query the database all
1773            the time.  The shape type is now determined in
1774            _fetch_table_information
1775    
1776            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
1777            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
1778            New parameter to specify views.
1779            (PostGISDatabase.has_data): Also compare the views.  New views
1780            parameter
1781            (PostGISDatabase.initdb): Create the views.
1782            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
1783            view
1784    
1785            * test/test_postgis_db.py
1786            (TestPostGISShapestorePointFromViews): New.  Test a
1787            PostGISShapeStore with a view
1788            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
1789            the geometry_column explicitly to test whether that works
1790    
1791    2004-03-12  Bernhard Herzog  <[email protected]>
1792    
1793            Final step for explicit id/geometry columns: Loading and saving
1794    
1795            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
1796            with the following changes:
1797            (dbshapesource): Two new attributes id_column and geometry_column
1798    
1799            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
1800            (SessionSaver.write_session): Use the new namespace
1801            (SessionSaver.write_data_containers): Write the new dbshapesource
1802            parameters
1803    
1804            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
1805            the new file format version
1806            (SessionLoader.start_dbshapesource): Handle the new db parameters
1807    
1808            * test/test_save.py: Update to the new dtd and namespace
1809            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
1810            mock object to provide a working IDColumn method.
1811    
1812            * test/test_load_1_0.py: New.  Copy of the test_load.py before
1813            today's changes but with the round-trip tests removed.
1814    
1815            * test/test_load_0_9.py: Update doc-string.
1816    
1817            * test/test_load.py: Update all .thuban files to the new dtd and
1818            namespace.
1819            (TestPostGISLayer.file_contents): Add the new dbshapesource
1820            paramters
1821    
1822    2004-03-11  Bernhard Herzog  <[email protected]>
1823    
1824            Next step for explicit id/geometry columns: User interaction
1825    
1826            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
1827            the dialog is constructed. Add combo boxes to select id and
1828            geometry column.  Rename some instance variables.
1829            (ChooseDBTableDialog.GetTable): Return id and geometry column
1830            names
1831            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
1832            selections in the table list
1833    
1834            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
1835            and geometry_column
1836    
1837            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
1838            parameters for id_column and geometry column of PostGISShapeStore
1839            here as well.
1840    
1841            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
1842            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
1843            (PostGISConnection.GeometryTables): Use a better query to
1844            determine which relations in the database might be usable for
1845            shapestores.  Now supports views as well but is more PostgreSQL
1846            specific
1847            (PostGISConnection.table_columns): New. Somewhat experimental
1848            method to let the db dialogs provide lists of columns to users so
1849            that they can select id and geometry columns.
1850            (PostGISTable.__init__): The default value of the id_column
1851            parameter is now None it still means "gid" effectively, though.
1852            (PostGISTable.IDColumn): New introspection method to return a
1853            column object for the id column
1854            (PostGISShapeStore.GeometryColumn): New introspection method to
1855            return a column object for the geometry column
1856    
1857            * test/test_postgis_db.py
1858            (TestPostGISConnection.test_gis_tables_non_empty):
1859            Removed. Subsumed by the new:
1860            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
1861            New. Tes the GeometryTables and table_columns methods with actual
1862            tables and views.
1863            (PointTests.test_id_column, PointTests.test_geometry_column):
1864            New. tests for the new methods.
1865            (TestPostGISShapestorePoint.setUp)
1866            (TestPostGISShapestorePointSRID.setUp)
1867            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
1868            instance variables needed by the new tests
1869    
1870    2004-03-11  Bernhard Herzog  <[email protected]>
1871    
1872            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
1873            numbers given to ReadValue are ordinals.
1874    
1875    2004-03-11  Bernhard Herzog  <[email protected]>
1876    
1877            Elimiate the requirement for PostGIS tables to have a column
1878            called "gid".
1879    
1880            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
1881            id_column to specify which column to use to identify rows.  Also
1882            new instance variables id_column and quoted_id_column
1883            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
1884            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
1885            (PostGISTable.SimpleQuery): Use the id column name provided to the
1886            constructor instead of "gid"
1887            (PostGISShapeStore.__init__): New parameter id_column analogously
1888            to PostGISTable.__init__.  This parameter is simply passed through
1889            to the base class constructor
1890            (PostGISShapeStore._create_col_from_description): Fix typo in
1891            doc-string
1892            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
1893            (PostGISShapeStore.ShapesInRegion): Use the id column name
1894            provided to the constructor instead of "gid"
1895    
1896            * test/postgissupport.py
1897            (PostgreSQLServer.get_default_static_data_db): New static table
1898            landmarks_point_id with an id column != "gid.  Update the comments
1899            a bit.
1900            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
1901            doc-
1902            (upload_shapefile): New parameter gid_column to use a name other
1903            than "gid" for the column to store the shape ids
1904    
1905            * test/test_postgis_db.py (TableTests): New.  Mixin-class
1906            containing all tests previously in TestPostGISTable.  The actual
1907            tests are the same but the code is a bit more configurable to
1908            allow for different id columns etc.
1909            (TestPostGISTable): Derive from TableTests now for the actual
1910            tests.
1911            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
1912            except that it the landmarks_point_id table to test the id_column
1913            parameter
1914            (PointTests): Extend the doc-string
1915            (TestPostGISShapestorePointExplicitGIDColumn)
1916            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
1917            from PointTests to test the explicit id_column parameter.  One
1918            tests with the name of the column holding the shape ids, the other
1919            uses PostgreSQL's OID column.  For the latter a number of methods
1920            have to be overwritten to make them independent of the actual id
1921            values.
1922    
1923    2004-03-08  Silke Reimer  <[email protected]>
1924    
1925            Update debian directory:
1926    
1927            * debian/changelog: Added new version.
1928            * deiban/rules: Updated management of patches (with cbds)
1929            * debian/control: Added cbds to dependencies
1930            * debian/patches/*: New. Adds better support for patches of thuban in
1931                            debian
1932            * debian/menu: Syntax of menu changed slightly
1933            * debian/setup.py.patch: removed because it has been moved to
1934                            debian/patechs/setup.py.patch
1935            
1936    
1937    2004-02-26  Bernhard Herzog  <[email protected]>
1938    
1939            Create the Doc/technotes directory for text files with information
1940            for developers
1941    
1942            * Doc/technotes/README: New. README for the technotes
1943    
1944            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
1945            Thuban
1946    
1947            * Doc/technotes/release_process.txt: New. Used to be
1948            HOWTO-Release.  Now slightly adapted to technote formatting style.
1949    
1950            * HOWTO-Release: Removed.  It's contents are now in
1951            Doc/technotes/release_process.txt
1952    
1953    2004-02-25  Bernhard Herzog  <[email protected]>
1954    
1955            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
1956            version of wxWindows the module was compiled with so we can check
1957            that against the wxPython version.
1958    
1959            * Thuban/version.py (thuban_branch, thuban_release): New variables
1960            controlling which and how Thuban versions are shown.  See the
1961            comments for details.
1962            (verify_versions): Also check that the wx version that wxproj is
1963            compiled against matches that of the wxPython we use at runtime
1964    
1965    2004-02-20  Bernhard Herzog  <[email protected]>
1966    
1967            * Extensions/wms/wms.py (epsg_code_to_projection): Use
1968            get_system_proj_file to read the epsg projections.  The old way
1969            depended on the current directory being the top Thuban directory.
1970    
1971    2004-02-20  Bernhard Herzog  <[email protected]>
1972    
1973            * Extensions/svgexport/test/test_svgmapwriter.py
1974            (TestVirtualDC.test_clippath): Remove a debug print
1975    
1976    2004-02-20  Bernhard Herzog  <[email protected]>
1977    
1978            * Extensions/svgexport/__init__.py: New.  Turn
1979            Extensions/svgexport into a package.
1980    
1981            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
1982            doc-string a bit.  The doc-string must come first, otherwise it's
1983            not a doc-string.  The __future__ import must be the first thing
1984            after the doc-string.  Use only double quotes in doc-strings.
1985            Single quotes trip up emacs syntax highlighting if the text
1986            contains apostrophes.
1987    
1988    2004-02-20  Bernhard Herzog  <[email protected]>
1989    
1990            * Extensions/svgexport/test/__init__.py,
1991            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
1992            suite for svgexport
1993    
1994            * test/runtests.py (find_test_modules): New. Function with the
1995            module finding code from main.
1996            (main): Use find_test_modules to figure out the default test
1997            modules and take modules from Extensions.svgexport.test too.
1998    
1999    2004-02-19  Bernhard Herzog  <[email protected]>
2000    
2001            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
2002            the mainwindow has a reference to the map of the initial session.
2003            This fixes a bug introduced with the fix for RT#2245
2004    
2005  2004-02-19  Bernhard Herzog  <[email protected]>  2004-02-19  Bernhard Herzog  <[email protected]>
2006    
2007          * Extensions/svgexport/svgsaver.py,          * Extensions/svgexport/svgsaver.py,
# Line 4166  Line 6170 
6170          Fix problem of hidden properties dialog under windows after double          Fix problem of hidden properties dialog under windows after double
6171          click on layer tree:          click on layer tree:
6172          The tree control always gets an Expanded / Collapsed event after          The tree control always gets an Expanded / Collapsed event after
6173          the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply          the ItemActivated  on double click, which raises the main window again.
6174            We add a second ItemActivated event to the queue, which simply
6175          raises the already displayed window.          raises the already displayed window.
6176    
6177          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable

Legend:
Removed from v.2075  
changed lines
  Added in v.2524

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26