/[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 2255 by jschuengel, Wed Jun 23 12:42:54 2004 UTC revision 2479 by bernhard, Fri Dec 17 23:06:03 2004 UTC
# Line 1  Line 1 
1    2004-12-18  Bernhard Reiter <[email protected]>
2            
3            Refactored svgexport tests: 9 double tests runs eliminated;
4            code size reduced by 8 lines.
5    
6            * Extensions/svgexport/test/test_svgmapwriter.py:
7            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
8            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
9            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
10            this fixed the double running of the nine tests of TestVirtualDC.
11            (class TestVirtualDC): Using self.dc and self.file from setUp().
12    
13    2004-12-17  Bernhard Herzog  <[email protected]>
14    
15            Two windows specific fixes ported from thuban-1�0-branch:
16    
17            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
18            instead of getlocale because getlocale doesn't return a usable
19            encoding name on a german windows 2000
20    
21            * setup.py: windows build: Removed the absolute path names and
22            made all prfixes relative to the directory containing setup.py.
23            Makes it a little easier to adapt to a different system.
24    
25    2004-12-16  Bernhard Herzog  <[email protected]>
26    
27            Add support for PostGIS tables with LINESTRING geometries.
28            Fixes RT#2299
29    
30            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
31    
32            * test/postgissupport.py
33            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
34            table to "roads-multi" because it now uses MULTILINESTRING
35            geometries and introduce a new "roads" table that uses LINESTRING
36            (coords_to_multilinestring): Make the doc string more precise
37            (coords_to_linestring): New.  Create a LINESTRING WKT
38            representatin
39            (wkt_converter): Add coords_to_linestring
40            (upload_shapefile): Rephrase the doc-string a bit.
41    
42            * test/test_postgis_db.py (TestPostGISShapestoreArc)
43            (LineStringTests)
44            (TestPostGISShapestoreLineString)
45            (TestPostGISShapestoreMultiLineString): Split
46            TestPostGISShapestoreArc into a base class LineStringTests and two
47            derived classes TestPostGISShapestoreLineString for LINESTRING
48            geometries and TestPostGISShapestoreMultiLineString for
49            MULTILINESTRING geometries.  Most test methods are in the base
50            class with the exception of tests that explicitly check the raw
51            format.
52    
53    2004-12-16  Bernhard Herzog  <[email protected]>
54    
55            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
56    
57            * test/postgissupport.py (find_postgis_sql): Different postgis
58            versions put the postgis.sql file into slightly different places
59            so we have to look in both.  The updated doc string describes this
60            is more detail.
61    
62            * test/test_postgis_db.py
63            (TestPostGISSpecialCases.test_column_name_quoting): The return
64            value of UniqueValues is unsorted, so it has to be sorted for
65            comparison.
66    
67    2004-12-16  Bernhard Herzog  <[email protected]>
68    
69            Fix for RT#2237
70    
71            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
72            panel to be shown is the UnknownProjPanel disable the OK and Try
73            buttons.  Otherwise enable them.
74            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
75            the parameters.  In that case __GetProjection also returns None
76            now.
77    
78    2004-12-15  Bernhard Herzog  <[email protected]>
79    
80            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
81            minimum number of classes to 2.  The calculate_quantiles needs at
82            least two and raises an exception otherwise.  
83            Fixes RT#2549
84    
85    2004-12-15  Bernhard Herzog  <[email protected]>
86    
87            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
88            so that it returns a result for select statements.
89            (PostgreSQLServer.server_version): New.  Return the version of the
90            server software.
91            (PostgreSQLServer.require_authentication): The format of
92            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
93            server version and generate the file in the correct format
94    
95    2004-12-15  Bernhard Herzog  <[email protected]>
96    
97            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
98            in the doc string and rephrase it a little.
99    
100    2004-12-15  Frank Koormann <[email protected]>
101    
102            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
103            session has been loaded successfully. The check is called by the relevant
104            tests after executing load_session().
105    
106    2004-12-13  Bernhard Herzog  <[email protected]>
107    
108            Make sure the region used to determine which shapes are visible
109            actually matches the region on the printed page.  If this isn't
110            done properly some shapes might not be printed.  
111            Fixes RT #2692
112    
113            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
114            renderer has to be at the same position as the mapregion
115    
116            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
117            has to be moved by (self.shiftx, self.shifty) too.
118    
119    2004-12-13  Bernhard Herzog  <[email protected]>
120    
121            * libraries/pyprojection/Projection.i: Work around a bug in the
122            generated python code which leads to exception in the __del__
123            method when the constructor fails.  See the comments in the code
124            for more details.
125    
126            * libraries/pyprojection/Projection.py: Updated from Projection.i
127            with SWIG.
128    
129    2004-12-13  Bernhard Herzog  <[email protected]>
130    
131            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
132            (TestAltPath.test_02_path_error_fix_from_list)
133            (TestAltPath.test_05_path_error_fix_from_list_changed)
134            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
135            is destroyed in tearDown, so there's no need to do it in a test
136            case.
137    
138            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
139            debug print
140    
141    2004-12-13  Bernhard Herzog  <[email protected]>
142    
143            * Extensions/svgexport/test/test_svgmapwriter.py
144            (TestDrawSplines.setUp): Do not use super with the unittest
145            classes because in Python 2.2 they're still old-style classes.
146    
147    2004-12-13  Frank Koormann <[email protected]>
148    
149        Alternative Path feature: When loading a (moved) session where
150            shapefiles cannot be found, ask the user. Use the specified path
151            if further shapefiles are missing. However, ask the usr for confirmation
152            in such cases.
153    
154            * test/test_load.py (TestAltPath): New, tests for alternative path feature
155            in load_session()
156            (Shapefile_CallBack): Helper, implements controllable callback.
157    
158            * Thuban/UI/application.py (ThubanApplication.OnInit):
159            Added "alt_path" to self.path
160            (ThubanApplication.OpenSession): Added shapefile_callback as second
161            callback similar to db_connection_callback.
162            (ThubanApplication.run_alt_path_dialog): New, implementaion of
163            shapefile_callback. In addition to raising the dialog the control of
164            self.path('alt_path') is implemented here.
165    
166            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
167            (SessionLoader.open_shapefile): Open shapefile, eventually with
168            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
169            formerly used in start_fileshapesource()/start_layer().
170            (SessionLoader.start_fileshapesource): Call open_shapefile().
171            (SessionLoader.start_layer): Call open_shapefile().
172            (load_session): Added shapefile_callback.
173    
174            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
175            feature (search / check).
176            
177            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
178    
179    2004-12-11  Bernhard Reiter <[email protected]>
180    
181             svgexport 0.9.2: Point size supports for maps.
182    
183            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
184            (def draw_point_shape): new parameter size defaults to 2 as before.
185            (draw_shape_layer_incrementally): Moved draw_func log line higher.
186            Added draw_func call with size when dealing with a point layer.
187    
188            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
189            
190    2004-12-11  Bernhard Reiter <[email protected]>
191    
192            Made sure that newlines are inserted in the svg path d attributes
193            to raise the chance that the line length will be below 255 characters,
194            as recommended by REC SVG 1.1 in section 8.3.1.
195    
196            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
197            Adding \n before L's and changed whitespace handling.
198    
199            * Extensions/svgexport/test/test_svgmapwriter.py:
200            Adapted tests to new whitespace handling of DrawPolygon.
201    
202    2004-12-11  Bernhard Reiter <[email protected]>
203    
204            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
205    
206            * Extensions/svgexport/test/test_svgmapwriter.py:
207            Removed test_drawbezier in favour of new test_drawspline3 and
208            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
209            All only to test DrawSpline.
210    
211            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
212            New implementation now really using the strange algorithm of
213            xfig 3.1's approximated splines and its conversion to postscript
214            with one twist: SVG can do quadratic beziers, so skipped translation
215            to cubic beziers.
216            (TestWithDC): Typo in comment fixed.
217    
218    2004-12-09  Martin Schulze  <[email protected]>
219    
220            * Thuban/Model/classgen.py: Added missing character encoding
221    
222            * Extensions/wms/properties.py (OpenWMSProperties): removed
223    
224            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
225            support for get_srs_discrepancies() since there are no
226            discrepancies anymore (was a thinko)
227    
228            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
229            format priority now that more formats are supported globally by
230            the render engine.
231    
232    2004-12-08  Silke Reimer <[email protected]>
233            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
234            because it is not available in all versions of ogr
235    
236    2004-12-08  Bernhard Reiter <[email protected]>
237            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
238            global tests until a real one is commited.
239    
240    2004-12-07 Nina H�ffmeyer <[email protected]>
241    
242            * /Extensions/ogr/: Adding a new extension to read shapefiles with
243            ogr. It is planned to add other vector formats.
244    
245            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
246    
247    2004-12-07  Jan-Oliver Wagner <[email protected]>
248    
249            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
250            part of a (non-)fix to renable that the tests are always
251            executed.
252    
253    2004-12-07  Bernhard Reiter <[email protected]>
254    
255            * Extensions/svgexport/test/test_svgmapwriter.py:
256            Added test_drawbezier() to test DrawSpline().
257    
258            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
259            Really implemented bezier drawing.
260    
261            * Extensions/svgexport/__init__.py: Bumped version of svgexport
262            to 0.9.1 because now the legend examples lines styles
263            will be drawing with beziers.
264    
265    2004-12-05  Martin Schulze  <[email protected]>
266    
267            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
268            GIF as supported bitmap image formats (helpful for the WMS extension)
269    
270    2004-11-30  Martin Schulze  <[email protected]>
271    
272            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
273            Improved the test for the internal compare method
274    
275    2004-11-27  Jan-Oliver Wagner <[email protected]>
276    
277            * Thuban/UI/about.py (About.__init__): Added
278            Norbert Solymosi for hungarian translation and Ole Rahn
279            as contrbutor. Moved Bernhard Reiter from Contributor
280            to Developer.
281    
282    2004-11-27  Bernhard Reiter <[email protected]>
283    
284            * Extensions/svgexport/test/test_svgmapwriter.py:
285            Removed Jan from author list as he did not change enough significant
286            lines yet.
287    
288            * Extensions/svgexport/__init__.py: Added Bernhard as author
289            of the Extension.
290    
291    2004-11-27  Jan-Oliver Wagner <[email protected]>
292    
293            * po/hu.po: New. Hungarian translation. Contributed
294            by Norbert Solymosi.
295    
296    2004-11-26  Bernhard Herzog  <[email protected]>
297    
298            * Extensions/svgexport/test/test_svgmapwriter.py
299            (Testobjectexport.test_transparent_polygon): Commented out some
300            debug prints
301    
302    2004-11-24  Jan-Oliver Wagner <[email protected]>
303    
304            Fix broken tests for svg extension and added svg legend
305            to Experimental menu.
306    
307            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
308            the test run correctly even if the extension is a package.
309            Also removed the "import Thuban" which makes no sense.
310    
311            * Extensions/svgexport/__init__.py: Fix to have the extensions'
312            test module also be executed from the global test routine.
313            This is done by looking for the absense of the DISPLAY variable.
314    
315            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
316            to Experimental menu since this module has yet not reached a stable
317            status (ie. 1.0).
318    
319    2004-11-22  Bernhard Reiter <[email protected]>
320    
321            * Extensions/svgexport/svgmapwriter.py:
322            Added verbose variable and some logging depending on it.
323            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
324            because counting i is not necessary.
325            (class Pen, class Brush): Added simple __str__ methods.
326            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
327            not exported to svg file) Note: holes still unhandled.
328    
329            * Extensions/svgexport/test/test_svgmapwriter.py:
330                    Made a baseclass TestWithDC for test needed a DC.
331                    Added tests for bug #2698 (transparent polygons are not
332                    exported to svg file):
333                    Testobjectexport.test_transparent_polygon()
334    
335            * Thuban/Model/base.py (UnsetModified):
336            Fixed some typos in docstring.
337    
338            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
339            Added hints on the used algorithm for handling holes.
340    
341    2004-11-20  Jan-Oliver Wagner <[email protected]>
342    
343            Some face lifting for the examples.
344    
345            * Examples/__init__.py: Make this directory a package.
346    
347            * Examples/simple_extensions/__init__.py: Make this directory a package.
348    
349            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
350            menu to Examples menu.
351    
352            * Examples/simple_extensions/simple_command.py: Some more comments,
353            minor changes.
354    
355            * Examples/simple_extensions/simple_tool.py: Minor changes.
356    
357    2004-11-20  Jan-Oliver Wagner <[email protected]>
358    
359            Changed way of extension registry for wms and added extension
360            registry for umn_mapserver extension.
361    
362            * Extensions/wms/__init__.py: Added registry entry and the importing
363            of the actual wms module. Included a test for the required PyOGCLib.
364    
365            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
366    
367            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
368            importing of the actual umn mapserver management modules.
369            Included a test for the required Python MapScript.
370    
371    2004-11-20  Jan-Oliver Wagner <[email protected]>
372    
373            Changed way of extension registry for importAPR, bboxdump
374            and added extension registry for svgexport.extension registry for
375            svgexport.
376    
377            * Extensions/importAPR/__init__.py: Added registry entry and the importing
378            of the actual importAPR module.
379    
380            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
381            __init__.py).
382    
383            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
384            ����of the actual bboxdump module.
385    
386            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
387            ����__init__.py).
388    
389            * Extensions/svgexport/__init__.py: Added registry entry and the importing
390            of the svgsaver module.
391    
392            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
393            to Experimental menu since this module has yet not reached a stable
394            status (ie. 1.0).
395    
396    2004-11-18  Jan-Oliver Wagner <[email protected]>
397    
398            Now the hit test considers the size of point symbols.
399    
400            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
401            'size' defaulting to the previously fixed value 5.
402            Extended doc-string.
403            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
404            for symbols.
405            Now the size of the largest point symbol is determined to find out
406            about whether the point has been hit.
407            This fixes the problem that only clicks inside a fixed distance of
408            5 where found.
409    
410    2004-11-17  Jan-Oliver Wagner <[email protected]>
411    
412            Another open issue fixed regarding sizeable symbols: correct rendering of
413            selected symbols.
414    
415            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
416            Added consideration of the specific size of point symbols.
417            The property for each point symbol is retrieved and the size applied
418            for the rendering method.
419            Added doc-string.
420    
421    2004-11-16  Jan-Oliver Wagner <[email protected]>
422    
423            Changed way of Extension Registry for gns2shp and profiling.
424    
425            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
426            __init__.py).
427    
428            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
429            of the actual gns2shp module.
430    
431            * Extensions/profiling/profiling.py: Removed registry entry (moved to
432            __init__.py).
433    
434            * Extensions/profiling/__init__.py: Added registry entry and the importing
435            of the actual profiling module.
436    
437    2004-10-28  Bernhard Reiter <[email protected]>
438    
439            * Extensions/svgexport/: Minor improvements to doc strings.
440    
441    2004-10-07  Jan-Oliver Wagner <[email protected]>
442    
443            Further elements for sizable point objects now
444            making this feature usable though not yet complete.
445    
446            * Thuban/Model/save.py (SessionSaver.write_classification): Write
447            attribute 'size' for cldata when the shape layer is of point type.
448            This also now make the test_load.py tests happy.
449    
450            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
451            gradient.
452    
453            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
454            ID_SELPROP_SPINCTRL_LINEWIDTH.
455            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
456            (ID_SELPROP_SPINCTRL_SIZE): New Id.
457            (SelectPropertiesDialog.__init__): Added a second spin control
458            for the size in case the corresponding layer is of point type.
459            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
460            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
461            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
462            and refresh preview.
463    
464    
465    
466    2004-10-04  Martin Schulze  <[email protected]>
467    
468            * Extensions/wms/test/test_parser.py
469            (TestWMSCapabilitiesParser.test_compareLists): Added missing
470            self-test for compareLists()
471            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
472            self-test for compareDicts()
473            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
474            to verify the test routine fails with non-equal arguments
475            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
476            to verify the test routine fails with non-equal arguments
477    
478    2004-10-03  Jan-Oliver Wagner <[email protected]>
479    
480            First elements for sizeable point objects.
481    
482            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
483    
484            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
485    
486            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
487            of a corresponding argument is given.
488            (TestSymbolSize): New. Test the size attribute of cldata.
489    
490            * Thuban/Model/classification.py: Removed some trailing whitespaces.
491            (ClassGroupProperties.__init__): Set default size.
492            (ClassGroupProperties.SetProperties): Set the size.
493            (ClassGroupProperties.GetSize): New. Return the size.
494            (ClassGroupProperties.SetSize): New. Set the size.
495            (ClassGroupProperties__eq__): Compare also size.
496            (ClassGroupProperties__repr__): Print also size.
497    
498            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
499            the size attribute.
500    
501            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
502            Also, now there is a return value that indicates whether the drawing
503            size exceeded the given rect extent and if so the new extent.
504            Finally, point objects are drawn depending on the size. If either
505            the width or height is exceeded, the new extent is returned.
506            (ClassRenderer.Draw): Now when calling the previewer drawing function,
507            evaluate the return value and, if not None, adapt the grid widget size
508            accordingly and redraw again.
509    
510            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
511            If the draw function is for points, call it with the size as additional
512            parameter.
513            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
514            the size. Compute the radius using the size.
515    
516            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
517            that Thuban supports size, apply this correctly.
518    
519            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
520    
521    2004-10-03  Jan-Oliver Wagner <[email protected]>
522    
523            * Doc/manual/thuban-manual-de.xml: Started translation of
524            Map chapter.
525    
526    2004-10-01  Martin Schulze  <[email protected]>
527    
528            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
529            argument for general use through properties-dialog selector
530            
531            * Thuban/UI/classifier.py: Register properties dialog classes for
532            both provided layer classes/types.
533    
534            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
535            map can be retrieved through the parent which is passed to the
536            constructor anyway and doesn't require an argument of its own,
537            required for the unification of arguments for general use through
538            properties-dialog selector.
539            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
540            whether a dialog is already opened (and raising it to the users
541            attention) and creating a new dialog into a function of its own
542            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
543            method
544            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
545            global registration of properties dialog classes (which are indeed
546            layer-specific).
547    
548            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
549            for general use through properties-dialog selector, the map can be
550            retrieved through the parent and doesn't require an argument of
551            its own.
552    
553            * Extensions/wms/wms.py: Register the properties dialog class for
554            the provided WMS layer
555    
556    2004-09-28  Jan-Oliver Wagner <[email protected]>
557    
558            New feature: Registry for Extensions.
559    
560            * Thuban/UI/extensionregistry.py: This module defines a registry for
561            Extensions.
562    
563            * Thuban/UI/about.py (About.__init__): Added description
564            of the registered extensions with all of the information.
565    
566            * Thuban/Model/extension.py (Extension): Improved doc-string.
567    
568            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
569            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
570            Extensions/wms/wms.py: Added registration of the extension.
571    
572    2004-09-27  Bernhard Reiter <[email protected]>
573    
574            More fixes to svgexport to make used ids unique and
575            conforming to XML's Name production.
576    
577            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
578            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
579            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
580            Added Bernhard R. as author.
581            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
582            concatenation char now (makes test_make_ide_nosetbaseid() valid).
583            Also transform second id part with "%d" and catch the TypeError
584            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
585            Corrected typo inBernhard's author line.
586            (SetBaseID): Return the transformed base id. Transform characters
587            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
588            import binascii. If to be set string starts with "xml" or so, add "t".
589            (draw_shape_layer_incrementally): use the returned value of SetBaseID
590            for used_baseids checks.
591    
592    2004-09-25  Bernhard Herzog  <[email protected]>
593    
594            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
595            Remove a debug print and some tab characters.
596    
597    2004-09-25  Bernhard Reiter <[email protected]>
598    
599            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
600            (SetBaseID, SetID, make_id): Improved docstring comments to explain
601            the interaction of the three functions and the XML id contrains.
602    
603    
604    2004-09-23  Jan-Oliver Wagner <[email protected]>
605    
606            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
607            Module.
608    
609            * Doc/README: Added info on ThubanModel.xmi.
610    
611    2004-09-23  Jan-Oliver Wagner <[email protected]>
612    
613            * Doc/README: New. Some info about how to generate technical
614            documentation from the source code.
615            This text was send to the Thuban developer mailing list on
616            September 21st 2004 by Bernhard Reiter.
617    
618    2004-09-21  Bernhard Reiter <[email protected]>
619    
620            Improved the svgexport to only use unique ids. Will issues
621            an error message dialoge when two layer names are the same.
622            ShapeIDs are now added with a dash within the svg ids.
623    
624            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
625            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
626            (TestSVGRenderer): New test class with test_make_in() and
627            test_check_for_layer_name_clash()
628            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
629            and draw_shape_layer_incrementally() to not use a baseid twice,
630            satisfying test_check_for_layer_name_clash()
631            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
632            test_make_in().
633            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
634            and wxICON_HAND.
635            (write_to_svg): Put dc and rendering in a try statement and on
636            catching SVGmapWriterError notify the user and delete the target file.
637    
638    2004-09-20  Bernhard Reiter <[email protected]>
639    
640            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
641    
642    2004-09-03  Jan Sch�ngel  <[email protected]>
643    
644            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
645            small bug with the line color. Now the line color will now only set
646            if it is set in Thuban an not Transparent.
647            
648            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
649            deleting the layers from mapfile. Now all layers will delete backwards
650            from the last.
651    
652    2004-08-20  Silke Reimer <[email protected]>
653    
654            * Thuban/Model/layer.py:
655            Fixes bug in projection handling: Otherwise very large region might not
656            have valid values in the layer's projection.
657    
658    2004-08-20  Silke Reimer <[email protected]>
659    
660            * Thuban/UI/about.py:
661            small changes to be consistent with coding style.
662              
663    2004-08-13  Martin Schulze  <[email protected]>
664    
665            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
666            Adjusted a comment
667    
668    2004-08-11  Silke Reimer <[email protected]>
669    
670            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
671                    too many and too enhanced imports of locale
672    
673    2004-08-10  Silke Reimer <[email protected]>
674    
675            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
676                    function unicodeToLocale() to convert special characters to users
677                    locale encoding
678    
679    2004-08-10  Jan-Oliver Wagner <[email protected]>
680    
681            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
682            lower case letter'
683    
684    2004-08-09  Jan Sch�ngel  <[email protected]>
685    
686            * ChangeLog: Rewrite the last ChangeLog entry to follow
687            the standard way.
688    
689            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
690            the function where it is needed, because it don't works if it stands
691            at the beginning.
692            (MF_Layer.__init__): Removed the extra numclassed variable. Now
693            numclasses from the mapscript will be used.
694            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
695            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
696            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
697            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
698            (MF_Map.create_new_layer): New. A new Layer is created and associated
699            with the mapscript object.
700            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
701            the mapscript.
702            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
703            linked to the layer in thuban, else the layerobject linked to the
704            thubanlayer will be used.
705            AnnotationLayer will now store the filename of the shapefile.
706            (MF_Map.remove_layer): If a layer is removed the associated object
707            must be set new.
708            
709            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
710            layers which are exists in thuban to the mapobj. All removed Layers
711            will be removed from the mapobj.
712            Added comments to all functions.
713            (thuban_to_map): No layer will be removed here.
714            
715            * Extensions/umn_mapserver/mf_handle.py
716            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
717            Layersettings for the mapserver kann be edited.
718    
719            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
720            imported, will be linked with the associated MF_Layer.
721            (import_mapfile): All layers, which are not selected, will be removed.
722            Disable the "import layer from mapfile" menu option.
723    
724            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
725            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
726            layer on permanently.
727    
728    2004-08-03  Jan Sch�ngel  <[email protected]>
729    
730            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
731            New. This function removes all metadata
732            (MF_Layer.set_group): New. Set the group setting.
733            (MF_Layer.get_group): New. Get the group setting.
734            (MF_Map): Removed the extra numlayers variable, used the mapscript
735            parameter instead.
736            (MF_Map.get_numlayers): New. This get numlayers.
737            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
738            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
739            if the object is an instance. Also added the annotation layer here to
740            export, but only the layer is created in the mapfile.
741    
742            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
743            the check if a mapobj exist, because its not needed anymore. The
744            export function is only available if a mapobj exist.
745            Use the new function to remove all layers.
746            
747            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
748            option and the metadata button. The layer dialog is temporary disabled.
749            (Metadata_CustomDataTable): Added some functions to show the grid
750            correct.
751    
752            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
753            the number of layer from import_mapfile to this function.
754            (AnnotationLayer): New. This Class shows the Annotation layer in
755            thuban. The layer don't do anything. It's only to show the layer
756            and to save the layer order.
757            (add_annotationlayer): New. Import an annotation layer to thuban.
758            (select_layer2import): New. Import only layers to thuban and not
759            the other settings like projection or scalebar.
760            (create_new_mapfile): Moved the _has_umn_mapobj function and the
761            create_new_mapfile functions from mf_handle.py to mf_import.py.
762            
763            * Extensions/umn_mapserver/sample/iceland.map: Added the group
764            parameter to the roads and cultural layers. Also added a new
765            Annotation Layer for the cultural points.
766    
767            * Extensions/umn_mapserver/sample/iceland.html: Added the select
768            option for the annotation layer.
769    
770            * Extensions/umn_mapserver/sample/index.html: Added the start
771            parameter for the annotation layer.
772    
773    2004-08-01  Jan-Oliver Wagner <[email protected]>
774    
775            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
776            translation completed.
777    
778            * Doc/manual/thuban-manual.xml (Chapter Session Management):
779            Fixed unprecise description for Save Session.
780    
781    2004-07-31  Jan-Oliver Wagner <[email protected]>
782    
783            Started translation of Users Manual into german.
784    
785            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
786    
787            * Doc/manual/Makefile: Added build instructions for german
788            users manual.
789    
790            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
791    
792    2004-07-28  Jan Sch�ngel  <[email protected]>
793    
794            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
795            functions. Now all metadata will handle by the function and its not
796            needed to initialize it from outside. Therefor the associated mapobj
797            will be stored in the Metadata Object. So we can use the special
798            functions from the associated mapobj to get the Metadata.
799            Therefor all initialization code for the metadata is removed from the
800            other classes.
801            (MF_Layer): Added a function to get the metadata object.
802            (MF_Map): Added a function to set the mappath, the path where
803            the mapfile ist stored.
804    
805            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
806            to set the extent in the mapfile. Now the code is set by the displayed
807            data in the Thuban-view.
808            (export_mapfile): The shapepath is now set empty, until relative
809            pathnames are supported.
810    
811            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
812            metadata. Yet only mapfile metadata are supported. Layer and class
813            supported are not implemented.
814            Added a dialog to handle layer informations. The dialog only shows the
815            selected layer at the moment.
816    
817            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
818            code for setting the extent in thuban. Now the extent is set to the
819            given extent from the mapfile.
820            Fixed a logical mistake. Now the extent is set when realy a layer is
821            loaded, and not if one is selected to load.
822    
823            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
824            move the shown map in the browser.
825    
826            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
827            line to the mapobj and added metadata to the political layer.
828    
829            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
830            for Metadata.
831    
832    2004-07-26  Martin Schulze  <[email protected]>
833    
834            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
835            ClassMapper
836    
837            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
838            case for the new ClassMapper
839    
840    
841    2004-07-22  Bernhard Herzog  <[email protected]>
842    
843            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
844            visible extent of the map in projected coordinates
845    
846            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
847            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
848            tests.
849            (SimpleViewPortTest.test_visible_extent): New. The real test for
850            VisibleExtent()
851    
852    2004-07-22  Bernhard Herzog  <[email protected]>
853    
854            * test/test_viewport.py: Use support.run_tests as the main
855            function when running asa script.
856    
857    2004-07-22  Jan Sch�ngel <[email protected]>
858    
859            * Extensions/umn_mapserver/mf_export.py: Added "import os"
860            Removed the old "import Thuban.UI.mainwindow" code.
861            (tbextent_to_map): Removed the extra function and at the code direct
862            to "thuban_to_map" function.
863            (write_creatorcomment): Added. Now a short comment is added to the
864            beginning of an generated mapfile.
865            (export_mapfile): Now the Path and filename are saved in to variables,
866            and not together in one variable. This is needed for the new
867            write_creatorcomment function.
868                    
869            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
870            import module "re". Also added Range and the ClassGroupRange import
871            from Thuban. Both are needed for the new range expression import.
872            (create_rangeexpression): Added. Creates a Range Expression in Thuban
873            style from a given mapfile expression.
874            (added_rasterlayer): Make some small code changes. The shapepath is
875            now stored in an extra variable and the clazz_name is set empty if no
876            class name set in the mapfile.
877            Changed the Error message for Range Expressions, becaus the new
878            function create a error string which will be shown in the dialog.
879    
880            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
881            range expression import.
882    
883    2004-07-21  Jan-Oliver Wagner <[email protected]>
884    
885            * Extensions/umn_mapserver/README: Added hint that
886            installation as root can be avoided. Removed all tabs.
887    
888    2004-07-16  Bernhard Herzog  <[email protected]>
889    
890            * test/test_viewport.py
891            (ViewPortTest.test_changing_map_projection): Check that changing
892            the projection of an empty map shown in a viewport doesn't lead to
893            exceptions in the viewport's handler for the
894            MAP_PROJECTION_CHANGED messages
895    
896            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
897            try to keep the same region visible when the map actually contains
898            something
899    
900    2004-07-15  Jan Sch�ngel <[email protected]>
901    
902            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
903            mappath directly from the mapobj. Is needed because of the changes
904            in mf_import.py.
905            (MF_Layer.add_thubanclass): Added a new comment.
906            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
907            mapobj is empty there is no extent get from thuban an so no one can
908            set to th mapobj.
909            
910            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
911            the discription.
912            Split the funktion in to three smaller ones. The new functions are
913            add_rasterlayer, add_polygonlayer and select_layer2import.
914            Removed the mapfilepath and filepath initialisation, because its know
915            include in the new functions.
916            Now nothing will be imported if cancel is pressed in the
917            layer choice dialog.
918    
919    2004-07-14  Jan Sch�ngel <[email protected]>
920    
921            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
922            import.
923            (MF_Symbolset): Removed the extra variable for numsymbols.
924            (MF_Class.__init__): Added a comment to the exception clause.
925            Removed the extent init, because it was not needed anymore.
926            (MF_Layer.add_thubanclass): Added the code to set the class name to
927            the expression value from thuban if no label is defined.
928            Added the code to export Range expressions from thuban to the mapfile.
929            (MF_Map.set_extent): Removed the exception and replace it by some if
930            code. If the size of a map is not defined the size will be set to 1,1.
931            This is necessary because if the extent is set, mapscript checks if
932            the size is greater than zero.
933            (MF_Web): Added the get and set function for the template.
934    
935            * Extensions/umn_mapserver/mf_export.py: Added the function to check
936            if a mapobject exists and used it to set the status of the menu items.
937            If no mapfile exists the settings could not be edditied.
938            Define after which menuitem the exportitem will include.
939            
940            * Extensions/umn_mapserver/mf_handle.py: Removed the import
941            Thuban.UI.mainwindow clause, because it is not needed.
942            Added the command Refresh() to all "OnChangeColor()" functions,
943            because the color preview window was not updated on a color change.
944            Added the function to check if a mapobject exists and used it to set the
945            status of the menu items. If no mapobject exists the settings could not
946            be edditied.
947            (Map_Dialog): Moved the imagetype selector from the
948            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
949            (Web_Dialog): Removed the name label and added the template textbox.
950    
951            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
952            the exception handling on loading the layers by an if statement. It
953            is not necessary to us the exception there.
954            The Filepath creation now use os.path.join to build the path.
955    
956            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
957            definition from global to the setUp function. Now the testMap will
958            initialize new on each test.
959    
960            * Extensions/umn_mapserver/sample/iceland.map: Include three new
961            classes in the Line Layer, to test logical Expressions.
962            Set the status of the class "Point9" in the Point Layer to off
963            
964    2004-07-13  Bernhard Herzog  <[email protected]>
965    
966            * Thuban/UI/baserenderer.py
967            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
968            optimization that tries not to draw layers under a raster layer.
969            The bug was harmless.  All it effectively did was to produce The a
970            strange messages about not being able to draw Layer instances for
971            all vector layers below a raster layer which would be invisible
972            anyway because the raster layer currently always covers the entire
973            window
974    
975    2004-07-08  Jan Sch�ngel <[email protected]>
976    
977            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
978            a list of supported outputformats. This formats are not alle supported
979            because there is no possibility to get the outputformat without the
980            name known. Make some formal changes to the code.
981            (MF_Map.set_name()): Fixed a bug if the name is None.
982    
983            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
984            statement, because its not needed anymore. The Outputformat is now
985            given as string from the object. Make some formal changes to the code.
986    
987            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
988            most of the new setting which were added during the last changes.
989            Removed the MF_Size Test.
990            
991            * Extensions/umn_mapserver/test/test.map: Added a new class to the
992            cultural Layer to test expressions and the the status of that layer
993            from on to default.
994            Changed the data path the the correct Thuban Data
995            Added the Outputformat Object and Symbol Object
996            
997    2004-07-07  Jan Sch�ngel <[email protected]>
998    
999            * Extensions/umn_mapserver/mapfile.py: Added some new
1000            settings to edit (outputformat, label, imagetype)
1001    
1002            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
1003            the Label Dialog and add the OutputDialog.
1004            Make some changes to the code order.
1005    
1006    2004-07-06  Jan Sch�ngel <[email protected]>
1007    
1008            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
1009            and line Obj and add the scalebar_status_type, scalebar_style_type and
1010            scalebar_position_type.
1011            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
1012            are only used to create a Symbol like the circle in Thuban.
1013            Added the scalebarObject (MF_Scalebar)
1014            (MF_Class): Added set_status and get_status.
1015            (MF_Layer.add_thubanclass): Added code to set the class status
1016            (MF_Map): Added code to handle the symbols and scalebar
1017            (MF_Label): Added the set_partials and get_partials functions
1018            
1019            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
1020            from mapfile. Added a function to create a circle object like the one
1021            from thuban if no one exists.
1022            
1023            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
1024            press ok in the assosiated dialog and not at the end of the
1025            colordialog.
1026            Added the Dialog for the Scalebar.
1027            (Label_Dialog): Added the offset option
1028    
1029            * Extensions/umn_mapserver/mf_import.py: Added code to import the
1030            status of the Classes.
1031            Fixed a bug with the projection. Now the to_meter parameter will be
1032            added to the Projection only if it doesn't exists.
1033    
1034    2004-07-01  Jan Sch�ngel <[email protected]>
1035    
1036            Added the functionality to handle the content thuban is not
1037            able to handle directly.
1038    
1039            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
1040            Thuban with the possibility to edit the mapfile content.        
1041            
1042            * Extensions/umn_mapserver/mf_import.py: Added the possibility
1043            to import mapfiles without any layer selected. So it is possible
1044            to edit the other settings in a mapfile.
1045            (import_mapfile): Added code to use the editing functions.
1046            Added the possibility to import the projection to a layer if one
1047            is defined.
1048            Status settings (On,Off) will now set in thuban (visible, invisible).
1049            fixed a bug with with classnames. If no classname is set in mapfile
1050            the value in Thuban will set to the expression.
1051            
1052            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
1053            possibility to save a new mapfile or use the old one which is
1054            imported or new created.
1055            Added code to use the editing functions.
1056            Remove some not needed import statements
1057    
1058            * Extensions/umn_mapserver/mapfile.py: Added new types which are
1059            need for the editing functions.
1060            Added needed set-functions for the editing functions.
1061            Added the possibility to export rasterimages.
1062            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
1063            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
1064            moment.
1065            (MF_Class.set_thubanstyle): Now point layers will set to a default
1066            symbol to show a circle in mapserver and not only a 1px dot.
1067            (MF_Style.__init__): Fixed a bug with the color. Color was not set
1068            correct before.
1069            (MF_Size): Removed, because it is not needed.
1070            
1071            * Extensions/umn_mapserver/README: Added the hints to use the
1072            export and editing functions, too.
1073    
1074            * Extensions/umn_mapserver/sample/iceland.map: Added the
1075            new parameter "UNITS METERS".
1076            Change the political layer to status OFF.
1077    
1078            * Extensions/umn_mapserver/sample/README: Added some
1079            more details to setup the sample in the MapServer.
1080            
1081    2004-06-26  Bernhard Reiter <[email protected]>
1082    
1083            * Extensions/svgexport/test/test_svgmapwriter.py:
1084            Removed class VFile and used standard StringIO instead.
1085    
1086  2004-06-23  Jan Sch�ngel  <[email protected]>  2004-06-23  Jan Sch�ngel  <[email protected]>
1087    
1088          Add the export function to the umn_mapserver extension.          Add the export function to the umn_mapserver extension.

Legend:
Removed from v.2255  
changed lines
  Added in v.2479

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26