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

Legend:
Removed from v.2250  
changed lines
  Added in v.2543

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26