/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2585 - (hide annotations)
Mon Mar 14 08:17:08 2005 UTC (19 years, 11 months ago) by jan
Original Path: trunk/thuban/ChangeLog
File size: 450126 byte(s)
More translation.

1 jan 2585 2005-03-14 Jan-Oliver Wagner <[email protected]>
2    
3     * Doc/manual/thuban-manual-de.xml: More translations.
4    
5 jan 2584 2005-03-10 Jan-Oliver Wagner <[email protected]>
6    
7     Introducing initialization callbacks for extensions.
8    
9     * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
10     optional parameter init_callback.
11     (ExtensionDesc.init_ext): New. Executes the callback and sets
12     a status.
13    
14     * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
15     initialization of the extensions.
16     (ThubanApplication.init_extensions): Init all extensions.
17    
18     * Thuban/UI/about.py (About.__init__): Added status of the extensions
19     to the about text.
20    
21     * Extensions/gns2shp/__init__.py: Added init method for Extension
22     description.
23     (init): New. Contains the initialization of the module.
24    
25 nhueffme 2577 2005-03-04 Nina Hüffmeyer <[email protected]>
26    
27     * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
28     OGRConnection to open a datasource. Removed dialog to display all
29     available drivers. Added some doc strings.
30    
31     * Extensions/ogr/ogrstart.py: Added menu entry for opening an
32     OGRDatasource with a string. Added two opening methods which return an
33     OGRDatasource (either data from file or from DB).
34    
35     * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
36     represents a geometry reference of an OGRFeature. OGRShape now has a
37     list of referenced geometry objects (important for geometry
38     collections).
39     For OGRShapeStores loaded from a DB an ID column can be specified now.
40    
41 jan 2576 2005-02-22 Jan-Oliver Wagner <[email protected]>
42    
43     * test/test_map.py (TestMapWithContents.test_tree_info):
44     Added label layer for comparison.
45    
46 jonathan 2574 2005-02-18 Jonathan Coles <[email protected]>
47    
48     * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
49     which builds a mask. Handle the majority of an image in a loop,
50     creating 8 bits at a time. Later, handle the edge case where less
51     than 8 bits are packed.
52    
53 bh 2573 2005-02-18 Bernhard Herzog <[email protected]>
54    
55     * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
56     doc-string
57    
58 jonathan 2571 2005-02-18 Jonathan Coles <[email protected]>
59    
60 jonathan 2572 * setup.py: Remove wx_cs_params from gdal compile options.
61    
62     2005-02-18 Jonathan Coles <[email protected]>
63    
64 jonathan 2571 Refactored baserenderer.py and renderer.py to remove baserenderer.py's
65     dependencies on wxPython. Added a new method projected_raster_layer()
66     that returns a raster layer image in projected space. This must be
67     implemented in classes derived from BaseRenderer. This also eliminates
68     the dependency on gdal in baserenderer.py.
69    
70     * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
71     new projected_raster_layer() to get projected raster image instead
72     of directly calling ProjectRasterFile().
73     (BaseRenderer.projected_raster_layer): New. This must be implemented
74     by derived classes. It takes almost the same arguments as ProjectRasterFile
75     did and returns a projected image with mask and alpha data (if requested).
76     (BaseRenderer.render_map_incrementally): Remove the check for gdal since
77     that check will be done in MapRenderer.projected_raster_layer(). This
78     also allows other implementations to use different projection code.
79    
80     * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
81     Implementation of BaseRenderer.projected_raster_layer. Checks for
82     gdal support and wxPython version. Also handles exceptions from
83     ProjectRasterFile.
84    
85     * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
86     and added a variable which can be set through the options argument
87     of ProjectRasterFile.
88    
89     * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
90     Calls ProjectRasterFile and returns the result.
91     (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
92     of calling projected_raster_layer() with different options.
93     (TestBaseRenderer.test_raster_no_projection): Removed tests based on
94     wxPython version and all tests of masks and alpha channels. These are
95     now in test_projected_raster_layer().
96    
97 jan 2565 2005-02-17 Jan-Oliver Wagner <[email protected]>
98    
99 jan 2570 * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
100     doc-strings to comply with coding_guidelines.
101    
102     2005-02-17 Jan-Oliver Wagner <[email protected]>
103    
104 jan 2565 Docstring improvements and minor fixes for labellayer.
105    
106     * Thuban/Model/map.py:
107     (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
108     Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
109     Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
110     Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
111     doc string.
112     (Map.BoundingBox): Removed superfluous test for label_layer
113     and improved doc string.
114     (Map.TreeInfo): Added label_layer and improved sdo string.
115    
116     * Thuban/Model/label.py: Added import of _.
117     (Label, Label.__init__): Improved/added doc string.
118     (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
119     LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
120     Improved/added doc string.
121     (LabelLayer.AddLabel): Use already defined names for
122     align strings and improved doc string.
123     (LabelLayer.TreeInfo): New. Return the object data for
124     the tree view.
125    
126 jonathan 2562 2005-02-16 Jonathan Coles <[email protected]>
127    
128     Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
129     so that that wxproj doesn't crash. Added GUI support for selecting
130     alpha channel (opacity can't be selected yet).
131    
132     NOTE: If wxPython.h is including in future distribution packages
133     then it will not be necessary to have the files swigPtrConvertHack.h
134     and wxPython_int.h included with Thuban. This is hopefully
135     a temporary workaround.
136    
137     * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
138     access to the macro wxCHECK_VERSION so that it will properly
139     generate a bit mask. There was a problem between wx2.4 and wx2.5
140     that this works around.
141    
142     * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
143     of RasterLayer.MaskType.
144     (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
145     (RasterLayer.MaskType): New. Returns the type of mask to use. Can
146     specify none, a bitmap, or an alpha channel.
147     (RasterLayer.SetMaskType): New. Set what kind of mask to use.
148    
149     * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
150     Set the raster warping options for the mask based on the value
151     of RasterLayer.MaskType.
152    
153     * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
154     deprecated calls to SetItemSelectedImage in favor of SetItemImage
155     with wxTreeItemIcon_Selected.
156    
157     * Thuban/UI/rasterlayerproperties.py: Support selecting to use
158     an alpha channel for the mask.
159    
160     * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
161     data if it is available and an alpha channel is supported under
162     the current version of wxPython.
163    
164     * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
165     to select whether 1's or 0's select the desired portion of an image
166     in the bit mask. wx2.4 has a bug where the documentation is the opposite
167     from behavior.
168     (ProjectRasterFile): Only generate an alpha channel if the version
169     of wxPython is >= 2.5.3.
170    
171     * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
172     When wxPython >= 2.5.3 use the special swig functions to decode an
173     object's address.
174    
175     * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
176     based on the version of wxPython. If >= 2.5.3 use the special swig
177     functions from wxPython to decode wxPython objects, otherwise use
178     the old method of retrieving the address from the object __repr__ string.
179    
180     * libraries/thuban/wxPython_int.h: Copied from wxPython source.
181     Unnecessary code was removed to make it smaller.
182    
183     * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
184     Add tests for returning an alpha channel.
185    
186     * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
187     tests that used removed functions UseMask and SetUseMask
188    
189    
190 bh 2560 2005-02-08 Bernhard Herzog <[email protected]>
191    
192 bh 2561 More wxPython 2.5 changes. This time taken from a patch from
193     Daniel Calvelo Aros.
194    
195     * Thuban/UI/tableview.py (QueryTableFrame.__init__)
196     (QueryTableFrame.__init__): Pass the size of a spacer as a single
197     item.
198    
199     * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
200     (ProjFrame.build_dialog): Pass the size of a spacer as a single
201     item.
202    
203     * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
204     size of a spacer as a single item.
205    
206     * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
207     size of a spacer as a single item.
208    
209     2005-02-08 Bernhard Herzog <[email protected]>
210    
211 bh 2560 Compatibility with wxPython 2.5. The changes should make it work
212     better with 2.5 while still keeping compatibility with 2.4. There
213     are still problems with 2.5, though.
214    
215     * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
216     of a spacer as a single item.
217    
218     * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
219     from wxControl
220    
221     * Thuban/UI/legend.py (LegendTree): When running with wxPython <
222     2.5, add an implementation of the GetFirstChild method that does
223     not require the second parameter.
224     (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
225     (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
226     (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
227     pass the second parameter to GetFirstChild
228    
229 nhueffme 2559 2005-02-08 Nina Hüffmeyer <[email protected]>
230    
231     * Extensions/ogr/ogrshapes.py: Removed some print commands.
232    
233     * Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an
234     additional menu but appears as a possibility in the menu Map.
235    
236 jonathan 2558 2005-02-07 Jonathan Coles <[email protected]>
237     * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR
238     and PYTHON_ERRF since they were no longer necessary.
239    
240 bernhard 2556 2005-02-07 Bernhard Reiter <[email protected]>
241     * Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows):
242     Enable translation for message string.
243    
244 joey 2555 2005-02-06 Martin Schulze <[email protected]>
245    
246     * Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted
247     the arguments of the contstructor to fit the global scheme
248    
249 nhueffme 2554 2005-01-31 Nina Hüffmeyer <[email protected]>
250    
251     * Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides
252     some dialogs needed to start ogr.
253    
254     * Extensions/ogr/__init__.py: Changed comments to avoid encoding
255     warnings.
256    
257     * Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid
258     encoding warnings.
259    
260 jonathan 2552 2005-01-28 Jonathan Coles <[email protected]>
261    
262 jonathan 2553 * libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the
263     mask is packed into a bit array. It's now slightly faster.
264    
265     2005-01-28 Jonathan Coles <[email protected]>
266    
267 jonathan 2552 * Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask
268     default to true.
269    
270     * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove
271     code that loads the state of the layer's use_mask flag. Its
272     usefulness is still being debated.
273    
274     * Thuban/Model/save.py (SessionSaver.write_layer): Remove
275     code that saves the state of the layer's use_mask flag. Its
276     usefulness is still being debated.
277    
278     * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
279     options to ProjectRasterFile based on the state of layer.UseMask().
280     Catch more exceptions from ProjectRasterFile so that Thuban doesn't
281     quit is there is a problem projecting.
282     (BaseRenderer.draw_raster_data): Change the documentation to
283     describe the new format (XBM) that the mask data will be in.
284    
285     * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask
286     data is in XBM format when format='RAW' which means it doesn't
287     need to be converted to a wxImage before being used as a mask
288     for a wxBitmap. Assume that if format != 'RAW' that the image
289     data and mask data are in the same format.
290    
291     * libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled
292     and a mask is requested, convert the alpha band to a bit array in
293     XBM format. if an alpha channel is requested, simply return the
294     data in the alpha band. Provide better error handling by returning
295     python error messages (also fixes RT #2947).
296     (ProjectRasterFile): Support multiple mask options, rather than simply
297     a flag indicating that a mask should or should not be used. Provide
298     better error handling by returning python error messages.
299    
300     * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
301     Add mask data to test.
302    
303     * test/test_layer.py (TestLayer.test_raster_layer): Test that a layer
304     should use the mask by default.
305     (TestLayerModificaton.test_raster_layer): Test that a layer should use
306     the mask by default.
307    
308     * test/test_load.py (TestRasterLayer.test): Remove testing for
309     use_mask flag in file.
310    
311     * test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing
312     for use_mask in file.
313    
314     * test/test_load_1_0_1.py: Removed. Shouldn't have been checked in.
315    
316 jonathan 2551 2005-01-26 Jonathan Coles <[email protected]>
317    
318     Add a new dialog box for raster layers. The dialog box allows
319     the user to toggle a mask that is generated by ProjectRasterFile
320     and is used to only draw the real parts of the projected image.
321    
322     * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
323     Instruct the warping code to generate a mask if the raster layer
324     requests one.
325     (BaseRenderer.draw_raster_data): Removed obsolete optional mask argument.
326    
327     * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed
328     obsolete optional mask argument.
329    
330     * Thuban/UI/classifier.py (Classifier): Change the parent class
331     to LayerProperties and rework the code to support layout calls
332     from the parent.
333     (Classifier.dialog_layout): New. Layout the dialog box.
334     (Classifier.map_layers_removed): Removed. Moved to parent class.
335     (Classifier.map_replaced): Removed. Moved to parent class.
336     (Classifier._OnTry): Renamed to OnTry to support parent class.
337     (Classifier.OnClose): Removed. Supplied in parent class.
338     (Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn.
339     (Classifier._OnOK): Renamed to OnOK to support parent class.
340     (Classifier._OnRevert): Renamed to OnRevert to support parent class.
341    
342     * Thuban/UI/layerproperties.py: New. Base class for layer properties
343     dialog boxes.
344    
345     * Thuban/UI/rasterlayerproperties.py: New. Class for displaying
346     raster layer properties.
347    
348     * libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code
349     with the non-simple version supplied with gdal. This allows added
350     features such as creating an alpha band.
351     (GetImageData): Generate a mask array from the alpha band that is
352     generated by gdal if the user has selected it. Try to support images
353     that have more than three bands, such as images with RGB plus an
354     alpha band.
355     (ProjectRasterFile): Convert python argument for mask and tell
356     gdal to enable or disable an alpha band.
357    
358     * Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string
359     describing what kind of layer the class is. Defaults to "Unknown",
360     but should be overridden by subclasses.
361     (Layer.Type): New. Override base class method.
362     (RasterLayer.__init__): Create a flag for using a mask. Record extra
363     data from gdal for display in the properties dialog.
364     (RasterLayer.Type): New. Override base class method.
365     (RasterLayer.UseMask): New. Returns True if the mask should be used.
366     (RasterLayer.SetUseMask): New. Set if the mask should be used.
367     (RasterLayer.ImageInfo): New. Return extra information about the image.
368    
369     * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load
370     the mask information.
371    
372     * Thuban/Model/save.py (SessionSaver.write_layer): Save mask information.
373    
374     * Thuban/UI/mainwindow.py: Register the RasterLayerProperties and
375     Classifier classes as dialogs to use with the proper layer types.
376    
377     * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
378     Fix test.
379    
380     * test/test_layer.py (TestLayer.test_raster_layer): Test new methods.
381     (TestLayerModification.build_path): New. Support function.
382     (TestLayerModification.test_raster_layer): New. Test new methods.
383    
384     * test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask.
385    
386     * test/test_load.py (TestRasterLayer): Add tests for mask.
387    
388     * test/test_load_1_0_1.py: New. Copied from test_load.py.
389    
390     * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed
391     obsolete optional mask argument.
392    
393 nhueffme 2549 2005-01-26 Nina Hüffmeyer <[email protected]>
394    
395     * Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore
396     which maps the ids and the ordinals. Fixed RowIdToOrdinal(),
397     RowOrdinalToId() and ReadRowAsDict().
398    
399     * Extensions/ogr/ogrstart.py: Added menu item which opens database
400     layers for existing database connections.
401    
402     * Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string.
403    
404    
405 jan 2548 2005-01-26 Jan-Oliver Wagner <[email protected]>
406    
407     * Doc/manual/thuban-manual-de.xml: More translations.
408    
409 bh 2544 2005-01-24 Bernhard Herzog <[email protected]>
410    
411     Rework the status bar updates a bit to make sure the message about
412     the projections is produced at the right times.
413    
414     * Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages):
415     New class variable with messages that may require a status bar
416     update.
417     (MainWindow.view_position_changed)
418     (MainWindow.update_status_bar): Rename from view_position_changed
419     to update_status_bar. It's meaning has changed now that it may
420     also generate messages about problems with projection settings.
421     (MainWindow.__init__): Use the new update_status_bar_messages
422     class variable to subscribe update_status_bar
423     (MainWindow.set_position_text): Update doc-string. This method
424     has to be renamed at some point. See doc-string and comments.
425     (MainWindow.OnClose): Unsubscribe update_status_bar from all
426     messages in update_status_bar_messages
427    
428     * Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New
429     class attribute. map messages to be forwarded by the viewport.
430     (ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe
431     the messages in forwarded_map_messages
432    
433 bh 2543 2005-01-21 Bernhard Herzog <[email protected]>
434    
435     * test/postgissupport.py (PostGISDatabase.__init__): Tweak
436     doc-string
437     (find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
438     different name for the initialization SQL file.
439    
440 jonathan 2537 2005-01-21 Jonathan Coles <[email protected]>
441 jan 2542
442     * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
443     a projection and returns a formatted string representing the
444     parameters to feed to gdalwarp. This function eliminates
445     redundancy in draw_raster_layer().
446     (BaseRenderer.render_map_incrementally): Removed the optimization which
447     drew the top most raster layer first and then only those vector-
448     based layers that are above it. With the support for transparency
449     this optimization breaks correct behaviour.
450     (BaseRenderer.draw_raster_layer): Reorganize code to support possible
451     future enhancements to raster layer bounding box. The old behaviour has
452     not changed. Also, change calling parameters to draw_raster_data()
453     to specify new RAW data format and mask.
454     (BaseRenderer.draw_raster_data): Change signature to include an optional
455     parameter for mask information. Change documentation to mention
456     support for new parameter and added option for RAW data format.
457     The data argument is now a list of [width, height, data].
458    
459     * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional
460     mask parameter. Add new condition for RAW format, which
461     significantly reduces rendering time. Add condition for
462     mask parameter.
463    
464     * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
465 jonathan 2537 data array of RGB values from the projected image returned from
466     the gdal warping functions. In the case of palette based images, it
467 jan 2542 converts the NO_DATA index to the mask color.
468     (ProjectRasterFile): Removed all custom memory driver references
469     and replaced it with the standard in-memory dataset provided
470     by gdal. The return data is no longer a BMP file, but an array
471     of RGB values, one set triple per pixel.
472 jonathan 2537
473     * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
474     * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
475     * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
476    
477 jan 2542 * setup.py (thuban_build_ext.finalize_options): Removed mention
478     of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
479     files. These are obsolete with the new version of gdalwarp.cpp
480    
481     * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
482     Updated signature.
483     (TestBaseRenderer.test_raster_no_projection): Changed the test
484     data to be data in the uncompressed RAW format returned from
485     ProjectRasterFile.
486    
487 jan 2535 2005-01-21 Jan-Oliver Wagner <[email protected]>
488    
489 jan 2542 * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made
490     string available for i18n.
491 jan 2535
492 russell 2532 2005-01-20 Russell Nelson <[email protected]>
493    
494     * Resources/Projections/defaults.proj: Ruin the speling of the
495 russell 2533 Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
496     It's the wrong thing to do in the long run, but it's necessary for
497     those users until that bug is fixed. Otherwise the projection
498     dialog segfaults. Better to annoy some Lambert-93 users with a
499     spelling mistake than every Fedora Core 3 user of Thuban-CVS.
500 russell 2532
501 bernhard 2531 2005-01-20 Bernhard Reiter <[email protected]>
502    
503 jan 2542 * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added
504     docstring and comment that the warning code here is a hack.
505 bernhard 2531
506 russell 2529 2005-01-20 Russell Nelson <[email protected]>
507    
508 jan 2542 * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn
509     user about misprojected layers when their lat/lon bounding
510 russell 2529 box exceeds rational lat/lon values.
511    
512 bernhard 2525 2005-01-20 Bernhard Reiter <[email protected]>
513    
514 jan 2542 * Thuban/UI/about.py (unicodeToLocale): Improved:
515 bernhard 2528 Use 'ascii' and then 'replace' for other characters
516     when getdefaultlocale returns None. Thanks to Bernhard H. .
517 jan 2542
518 bernhard 2528 2005-01-20 Bernhard Reiter <[email protected]>
519    
520 jan 2542 * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment
521 bernhard 2527 that OnRangeText might be called twice and using None as argument.
522 jan 2542
523 bernhard 2527 2005-01-20 Bernhard Reiter <[email protected]>
524    
525 jan 2542 * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a
526     OnRangeText(0) to work around a different in wx Behaviour noticed
527     on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
528    
529 bernhard 2526 2005-01-20 Bernhard Reiter <[email protected]>
530    
531     * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
532 bernhard 2525 None. (Fixes rt#2910.)
533    
534 frank 2524 2005-01-18 Frank Koormann <[email protected]>
535    
536     New Extension: mouseposition
537     Tool to collect mouse click positions (map coordinates) in a dialog.
538    
539     * Extensions/mouseposition/__init__.py: New, extension registration
540    
541     * Extensions/mouseposition/mouseposition.py: New, implements the
542     dialog and adds a tool to Thuban mainwindow.
543    
544     * Extensions/mouseposition/position.xpm: New, icon for tool.
545    
546 jan 2522 2005-01-14 Jan-Oliver Wagner <[email protected]>
547    
548     * Doc/manual/thuban-manual-de.xml: More translations.
549    
550 frank 2520 2005-01-11 Frank Koormann <[email protected]>
551    
552     * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
553     Fix indention bug.
554    
555 frank 2517 2005-01-09 Frank Koormann <[email protected]>
556    
557     * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
558 frank 2520 BugFix 2901: Explicitly copy layers ClassificationColumn since it
559 frank 2517 is not part of the layers Classification.
560    
561 frank 2515 2005-01-03 Frank Koormann <[email protected]>
562    
563 frank 2517 * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
564     BugFix 2883: Former implementation only worked on classified point
565     layers: KeyError was raised, now use the default size if field is None.
566 frank 2515
567 bernhard 2513 2004-12-27 Bernhard Reiter <[email protected]>
568    
569     svgexport 1.0.0cvs: Fixed label export.
570    
571     * Extensions/svgexport/test/test_svgmapwriter.py:
572     class TestSVGRenderer(): New class; new test test_label_font().
573    
574     * Extensions/svgexport/svgmapwriter.py
575     (SVGRenderer.label_font()): initialised Font size with self.factor now,
576     makes test_label_font happy.
577    
578     * Extensions/svgexport/TODO: crossed out fixed label export item.
579     Added item for options.
580    
581     * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
582    
583 russell 2511 2004-12-27 Russell Nelson <[email protected]>
584    
585 jan 2512 Middle mouse button pans.
586 russell 2511
587 jan 2512 * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
588     OnMiddleDown and OnMiddleUp events.
589     (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
590     previously used tool.
591     (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
592     pressing the middle mouse button.
593    
594 jan 2509 2004-12-27 Jan-Oliver Wagner <[email protected]>
595    
596     * Doc/manual/thuban-manual-de.xml: More translations.
597    
598 jan 2506 2004-12-23 Jan-Oliver Wagner <[email protected]>
599    
600     * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
601     \n to stderr after the warnings. Thanks to Russell Nelson.
602    
603 nhueffme 2493 2004-12-20 Nina Hueffmeyer <[email protected]>
604    
605     * Extensions/ogr/ogrshapes.py: Fixed some issues from
606     Bernhard (coding guidelines etc.). Additionally it is now possible to
607     display shapefiles containing feature collections (e.g.polygons
608     with holes). Works with gdal 1.2.1 now.
609    
610     * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
611     from Bernhard (coding guidelines etc.). If ogr can't be imported,
612     tests are skipped now.
613    
614     * Extensions/ogr/ogrstart.py: Fixed some typings.
615    
616 bernhard 2490 2004-12-20 Bernhard Reiter <[email protected]>
617    
618     * Extensions/svgexport/TODO: updated to add support for
619     raster layers and labels for 1.0.1.
620    
621     * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
622     Issue a warning now.
623    
624 bernhard 2488 2004-12-19 Bernhard Reiter <[email protected]>
625    
626 bernhard 2489 * Extensions/svgexport/TODO: Added idea to support triggering
627     the application down the pipe.
628    
629     2004-12-19 Bernhard Reiter <[email protected]>
630    
631 bernhard 2488 svgexport: Improved code quality, mainly by better naming.
632    
633     * Extensions/svgexport/svgmapwriter.py:
634     DrawPath() renamed to DrawPolygonPath(),
635     added documentation, improved comments and variable names.
636    
637     * Extensions/svgexport/svgmapwriter.py,
638     Extensions/svgexport/test/test_svgmapwriter.py:
639     All using DrawPolygonPath() now, the default parameter closed=True
640     omitted.
641    
642     * Extensions/svgexport/test/test_svgmapwriter.py:
643     renamed test_polygon_opened() to test_polyline()
644     renamed test_transparent_polygon() to test_transparent_polyline()
645    
646 jan 2487 2004-12-18 Jan-Oliver Wagner <[email protected]>
647    
648     Some fixes of gns2shp extension.
649    
650     * Extensions/gns2shp/test/__init__.py: New. Make this directory a
651     package.
652    
653     * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
654     dynamically.
655    
656     * Extensions/gns2shp/test/README: Simplified description how to test.
657    
658     * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
659     fixed some dimensions of fields according to the GNS documentation
660     which seems to change undocumented.
661     Now killing trailing \n and/or \r from MODIFY_DATE.
662     This fixes RT#2453.
663    
664 bernhard 2479 2004-12-18 Bernhard Reiter <[email protected]>
665 bernhard 2480
666 bernhard 2482 svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
667    
668     * Extensions/svgexport/test/test_svgmapwriter.py:
669     Added new tests: test_export_polygon_with_hole()
670     and test_polygon_with_hole().
671    
672     * Extensions/svgexport/svgmapwriter.py
673     (draw_polygon_shape()): Uses DrawPath correctly now.
674    
675     * Doc/manual/thuban-manual.xml: Added documentation for stable
676     extention svgexport.
677     * Doc/manual/thuban-manual-de.xml: Copied English section about
678     svexport over.
679    
680 jan 2509 * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
681 bernhard 2482
682     * Extensions/svgexport/svgsaver.py,maplegend.py:
683     Moved from experimental to stable extension menu.
684    
685     * Extensions/svgexport/TODO: updated.
686    
687    
688     2004-12-18 Bernhard Reiter <[email protected]>
689    
690 bernhard 2481 Added Extensions/svgexport/TODO
691    
692     2004-12-18 Bernhard Reiter <[email protected]>
693    
694 bernhard 2480 Refactored in svgexport:
695     DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
696    
697     * Extensions/svgexport/svgmapwriter.py
698     Added verbosity level 3 to print out polygon points.
699     (class Point): added __repr__
700     (class Brush, __str__()): Added space after ,.
701     (DrawPolygon): Renamed to DrawPath()
702     (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
703     (DrawLines): Using DrawPath now.
704    
705     * Extensions/svgexport/test/test_svgmapwriter.py:
706     Replaced DrawPolygon() calls with DrawPath() and put the first argument
707     inside another list. Adapted test data with a newline before "M".
708    
709     2004-12-18 Bernhard Reiter <[email protected]>
710 bernhard 2479
711     Refactored svgexport tests: 9 double tests runs eliminated;
712     code size reduced by 8 lines.
713    
714     * Extensions/svgexport/test/test_svgmapwriter.py:
715     (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
716     (class BaseWithDCtools): New, subclass from BaseTestWithDC.
717     (class TestDrawSplines): now subclass from BaseTestWithDCtools,
718     this fixed the double running of the nine tests of TestVirtualDC.
719     (class TestVirtualDC): Using self.dc and self.file from setUp().
720    
721 bh 2478 2004-12-17 Bernhard Herzog <[email protected]>
722    
723     Two windows specific fixes ported from thuban-1­0-branch:
724    
725     * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
726     instead of getlocale because getlocale doesn't return a usable
727     encoding name on a german windows 2000
728    
729     * setup.py: windows build: Removed the absolute path names and
730     made all prfixes relative to the directory containing setup.py.
731     Makes it a little easier to adapt to a different system.
732    
733 bh 2470 2004-12-16 Bernhard Herzog <[email protected]>
734    
735 bernhard 2479 Add support for PostGIS tables with LINESTRING geometries.
736 bh 2472 Fixes RT#2299
737    
738     * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
739    
740     * test/postgissupport.py
741     (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
742     table to "roads-multi" because it now uses MULTILINESTRING
743     geometries and introduce a new "roads" table that uses LINESTRING
744     (coords_to_multilinestring): Make the doc string more precise
745     (coords_to_linestring): New. Create a LINESTRING WKT
746     representatin
747     (wkt_converter): Add coords_to_linestring
748     (upload_shapefile): Rephrase the doc-string a bit.
749    
750     * test/test_postgis_db.py (TestPostGISShapestoreArc)
751     (LineStringTests)
752     (TestPostGISShapestoreLineString)
753     (TestPostGISShapestoreMultiLineString): Split
754     TestPostGISShapestoreArc into a base class LineStringTests and two
755     derived classes TestPostGISShapestoreLineString for LINESTRING
756     geometries and TestPostGISShapestoreMultiLineString for
757     MULTILINESTRING geometries. Most test methods are in the base
758     class with the exception of tests that explicitly check the raw
759     format.
760    
761     2004-12-16 Bernhard Herzog <[email protected]>
762    
763 bh 2471 Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
764    
765     * test/postgissupport.py (find_postgis_sql): Different postgis
766     versions put the postgis.sql file into slightly different places
767     so we have to look in both. The updated doc string describes this
768     is more detail.
769    
770     * test/test_postgis_db.py
771     (TestPostGISSpecialCases.test_column_name_quoting): The return
772     value of UniqueValues is unsorted, so it has to be sorted for
773     comparison.
774    
775     2004-12-16 Bernhard Herzog <[email protected]>
776    
777 bh 2470 Fix for RT#2237
778    
779     * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
780     panel to be shown is the UnknownProjPanel disable the OK and Try
781     buttons. Otherwise enable them.
782     (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
783     the parameters. In that case __GetProjection also returns None
784     now.
785    
786 bh 2459 2004-12-15 Bernhard Herzog <[email protected]>
787    
788 bh 2462 * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
789     minimum number of classes to 2. The calculate_quantiles needs at
790     least two and raises an exception otherwise.
791     Fixes RT#2549
792    
793     2004-12-15 Bernhard Herzog <[email protected]>
794    
795 bh 2460 * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
796     so that it returns a result for select statements.
797     (PostgreSQLServer.server_version): New. Return the version of the
798     server software.
799     (PostgreSQLServer.require_authentication): The format of
800     pg_hba.conf has changed between PostgrSQL 7.2 and 7.3. Check the
801     server version and generate the file in the correct format
802    
803     2004-12-15 Bernhard Herzog <[email protected]>
804    
805 bh 2459 * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
806     in the doc string and rephrase it a little.
807    
808 frank 2457 2004-12-15 Frank Koormann <[email protected]>
809    
810     * test/test_load.py (TestAltPath.checkSession): New, extended checks if
811     session has been loaded successfully. The check is called by the relevant
812     tests after executing load_session().
813    
814 bh 2450 2004-12-13 Bernhard Herzog <[email protected]>
815    
816 bh 2454 Make sure the region used to determine which shapes are visible
817     actually matches the region on the printed page. If this isn't
818     done properly some shapes might not be printed.
819     Fixes RT #2692
820    
821     * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
822     renderer has to be at the same position as the mapregion
823    
824     * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
825     has to be moved by (self.shiftx, self.shifty) too.
826    
827     2004-12-13 Bernhard Herzog <[email protected]>
828    
829 bh 2452 * libraries/pyprojection/Projection.i: Work around a bug in the
830     generated python code which leads to exception in the __del__
831     method when the constructor fails. See the comments in the code
832     for more details.
833    
834     * libraries/pyprojection/Projection.py: Updated from Projection.i
835     with SWIG.
836    
837     2004-12-13 Bernhard Herzog <[email protected]>
838    
839 bh 2451 * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
840     (TestAltPath.test_02_path_error_fix_from_list)
841     (TestAltPath.test_05_path_error_fix_from_list_changed)
842     (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
843     is destroyed in tearDown, so there's no need to do it in a test
844     case.
845    
846     * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
847     debug print
848    
849     2004-12-13 Bernhard Herzog <[email protected]>
850    
851 bh 2450 * Extensions/svgexport/test/test_svgmapwriter.py
852     (TestDrawSplines.setUp): Do not use super with the unittest
853     classes because in Python 2.2 they're still old-style classes.
854    
855 frank 2448 2004-12-13 Frank Koormann <[email protected]>
856    
857     Alternative Path feature: When loading a (moved) session where
858     shapefiles cannot be found, ask the user. Use the specified path
859     if further shapefiles are missing. However, ask the usr for confirmation
860     in such cases.
861    
862     * test/test_load.py (TestAltPath): New, tests for alternative path feature
863     in load_session()
864     (Shapefile_CallBack): Helper, implements controllable callback.
865    
866     * Thuban/UI/application.py (ThubanApplication.OnInit):
867     Added "alt_path" to self.path
868     (ThubanApplication.OpenSession): Added shapefile_callback as second
869     callback similar to db_connection_callback.
870     (ThubanApplication.run_alt_path_dialog): New, implementaion of
871     shapefile_callback. In addition to raising the dialog the control of
872     self.path('alt_path') is implemented here.
873    
874     * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
875     (SessionLoader.open_shapefile): Open shapefile, eventually with
876     alternative path. This wrapps the "theSession.OpenShapefile(filename)"
877     formerly used in start_fileshapesource()/start_layer().
878     (SessionLoader.start_fileshapesource): Call open_shapefile().
879     (SessionLoader.start_layer): Call open_shapefile().
880     (load_session): Added shapefile_callback.
881    
882     * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
883     feature (search / check).
884    
885     * Doc/manual/thuban-manual.xml: Added documentation of new feature.
886    
887 bernhard 2443 2004-12-11 Bernhard Reiter <[email protected]>
888    
889 bernhard 2445 svgexport 0.9.2: Point size supports for maps.
890    
891     * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
892     (def draw_point_shape): new parameter size defaults to 2 as before.
893     (draw_shape_layer_incrementally): Moved draw_func log line higher.
894     Added draw_func call with size when dealing with a point layer.
895    
896     * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
897    
898     2004-12-11 Bernhard Reiter <[email protected]>
899    
900 bernhard 2444 Made sure that newlines are inserted in the svg path d attributes
901     to raise the chance that the line length will be below 255 characters,
902     as recommended by REC SVG 1.1 in section 8.3.1.
903    
904     * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
905     Adding \n before L's and changed whitespace handling.
906    
907     * Extensions/svgexport/test/test_svgmapwriter.py:
908     Adapted tests to new whitespace handling of DrawPolygon.
909    
910     2004-12-11 Bernhard Reiter <[email protected]>
911    
912 bernhard 2443 * Doc/technotes/coding_guidelines.txt: easy typo fixed.
913    
914     * Extensions/svgexport/test/test_svgmapwriter.py:
915     Removed test_drawbezier in favour of new test_drawspline3 and
916     test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
917     All only to test DrawSpline.
918    
919     * Extensions/svgexport/svgmapwriter.py(DrawSpline):
920     New implementation now really using the strange algorithm of
921     xfig 3.1's approximated splines and its conversion to postscript
922     with one twist: SVG can do quadratic beziers, so skipped translation
923     to cubic beziers.
924     (TestWithDC): Typo in comment fixed.
925    
926 joey 2442 2004-12-09 Martin Schulze <[email protected]>
927    
928     * Thuban/Model/classgen.py: Added missing character encoding
929    
930     * Extensions/wms/properties.py (OpenWMSProperties): removed
931    
932     * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
933     support for get_srs_discrepancies() since there are no
934     discrepancies anymore (was a thinko)
935    
936     * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
937     format priority now that more formats are supported globally by
938     the render engine.
939    
940 silke 2437 2004-12-08 Silke Reimer <[email protected]>
941     * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
942     because it is not available in all versions of ogr
943    
944 bernhard 2436 2004-12-08 Bernhard Reiter <[email protected]>
945     * Extensions/ogr/__init__.py: Added empty __init__.py to heal
946     global tests until a real one is commited.
947    
948 nhueffme 2435 2004-12-07 Nina Hüffmeyer <[email protected]>
949    
950     * /Extensions/ogr/: Adding a new extension to read shapefiles with
951     ogr. It is planned to add other vector formats.
952    
953     * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
954    
955 jan 2434 2004-12-07 Jan-Oliver Wagner <[email protected]>
956    
957     * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
958     part of a (non-)fix to renable that the tests are always
959     executed.
960    
961 bernhard 2432 2004-12-07 Bernhard Reiter <[email protected]>
962    
963     * Extensions/svgexport/test/test_svgmapwriter.py:
964     Added test_drawbezier() to test DrawSpline().
965    
966     * Extensions/svgexport/svgmapwriter.py(DrawSpline):
967     Really implemented bezier drawing.
968    
969     * Extensions/svgexport/__init__.py: Bumped version of svgexport
970     to 0.9.1 because now the legend examples lines styles
971     will be drawing with beziers.
972    
973 joey 2431 2004-12-05 Martin Schulze <[email protected]>
974    
975     * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
976     GIF as supported bitmap image formats (helpful for the WMS extension)
977    
978 joey 2430 2004-11-30 Martin Schulze <[email protected]>
979    
980     * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
981     Improved the test for the internal compare method
982    
983 jan 2429 2004-11-27 Jan-Oliver Wagner <[email protected]>
984    
985     * Thuban/UI/about.py (About.__init__): Added
986     Norbert Solymosi for hungarian translation and Ole Rahn
987     as contrbutor. Moved Bernhard Reiter from Contributor
988     to Developer.
989    
990 bernhard 2425 2004-11-27 Bernhard Reiter <[email protected]>
991    
992     * Extensions/svgexport/test/test_svgmapwriter.py:
993     Removed Jan from author list as he did not change enough significant
994     lines yet.
995    
996     * Extensions/svgexport/__init__.py: Added Bernhard as author
997     of the Extension.
998    
999 jan 2422 2004-11-27 Jan-Oliver Wagner <[email protected]>
1000    
1001     * po/hu.po: New. Hungarian translation. Contributed
1002     by Norbert Solymosi.
1003    
1004 bh 2419 2004-11-26 Bernhard Herzog <[email protected]>
1005    
1006     * Extensions/svgexport/test/test_svgmapwriter.py
1007     (Testobjectexport.test_transparent_polygon): Commented out some
1008     debug prints
1009    
1010 jan 2418 2004-11-24 Jan-Oliver Wagner <[email protected]>
1011    
1012     Fix broken tests for svg extension and added svg legend
1013     to Experimental menu.
1014    
1015     * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
1016     the test run correctly even if the extension is a package.
1017     Also removed the "import Thuban" which makes no sense.
1018    
1019     * Extensions/svgexport/__init__.py: Fix to have the extensions'
1020     test module also be executed from the global test routine.
1021     This is done by looking for the absense of the DISPLAY variable.
1022    
1023     * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
1024     to Experimental menu since this module has yet not reached a stable
1025     status (ie. 1.0).
1026    
1027 bernhard 2414 2004-11-22 Bernhard Reiter <[email protected]>
1028    
1029     * Extensions/svgexport/svgmapwriter.py:
1030     Added verbose variable and some logging depending on it.
1031     (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
1032     because counting i is not necessary.
1033     (class Pen, class Brush): Added simple __str__ methods.
1034     (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
1035     not exported to svg file) Note: holes still unhandled.
1036    
1037     * Extensions/svgexport/test/test_svgmapwriter.py:
1038     Made a baseclass TestWithDC for test needed a DC.
1039     Added tests for bug #2698 (transparent polygons are not
1040     exported to svg file):
1041     Testobjectexport.test_transparent_polygon()
1042    
1043     * Thuban/Model/base.py (UnsetModified):
1044     Fixed some typos in docstring.
1045    
1046     * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
1047     Added hints on the used algorithm for handling holes.
1048    
1049 jan 2403 2004-11-20 Jan-Oliver Wagner <[email protected]>
1050    
1051 jan 2412 Some face lifting for the examples.
1052    
1053     * Examples/__init__.py: Make this directory a package.
1054    
1055     * Examples/simple_extensions/__init__.py: Make this directory a package.
1056    
1057     * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
1058     menu to Examples menu.
1059    
1060     * Examples/simple_extensions/simple_command.py: Some more comments,
1061     minor changes.
1062    
1063     * Examples/simple_extensions/simple_tool.py: Minor changes.
1064    
1065     2004-11-20 Jan-Oliver Wagner <[email protected]>
1066    
1067 jan 2407 Changed way of extension registry for wms and added extension
1068     registry for umn_mapserver extension.
1069    
1070     * Extensions/wms/__init__.py: Added registry entry and the importing
1071     of the actual wms module. Included a test for the required PyOGCLib.
1072    
1073     * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
1074    
1075     * Extensions/umn_mapserver/__init__.py: Added registry entry and the
1076     importing of the actual umn mapserver management modules.
1077     Included a test for the required Python MapScript.
1078    
1079     2004-11-20 Jan-Oliver Wagner <[email protected]>
1080    
1081 jan 2403 Changed way of extension registry for importAPR, bboxdump
1082     and added extension registry for svgexport.extension registry for
1083     svgexport.
1084    
1085     * Extensions/importAPR/__init__.py: Added registry entry and the importing
1086     of the actual importAPR module.
1087    
1088     * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
1089     __init__.py).
1090    
1091     * Extensions/bboxdump/__init__.py: Added registry entry and the importing
1092     »···of the actual bboxdump module.
1093    
1094     * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
1095     »···__init__.py).
1096    
1097     * Extensions/svgexport/__init__.py: Added registry entry and the importing
1098     of the svgsaver module.
1099    
1100     * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
1101     to Experimental menu since this module has yet not reached a stable
1102     status (ie. 1.0).
1103    
1104 jan 2397 2004-11-18 Jan-Oliver Wagner <[email protected]>
1105    
1106     Now the hit test considers the size of point symbols.
1107    
1108     * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
1109     'size' defaulting to the previously fixed value 5.
1110     Extended doc-string.
1111     (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
1112     for symbols.
1113     Now the size of the largest point symbol is determined to find out
1114     about whether the point has been hit.
1115     This fixes the problem that only clicks inside a fixed distance of
1116     5 where found.
1117    
1118 jan 2395 2004-11-17 Jan-Oliver Wagner <[email protected]>
1119    
1120 jan 2397 Another open issue fixed regarding sizeable symbols: correct rendering of
1121 jan 2395 selected symbols.
1122    
1123     * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
1124     Added consideration of the specific size of point symbols.
1125     The property for each point symbol is retrieved and the size applied
1126     for the rendering method.
1127     Added doc-string.
1128    
1129 jan 2393 2004-11-16 Jan-Oliver Wagner <[email protected]>
1130    
1131     Changed way of Extension Registry for gns2shp and profiling.
1132    
1133     * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
1134     __init__.py).
1135    
1136     * Extensions/gns2shp/__init__.py: Added registry entry and the importing
1137     of the actual gns2shp module.
1138    
1139     * Extensions/profiling/profiling.py: Removed registry entry (moved to
1140     __init__.py).
1141    
1142     * Extensions/profiling/__init__.py: Added registry entry and the importing
1143     of the actual profiling module.
1144    
1145 bernhard 2388 2004-10-28 Bernhard Reiter <[email protected]>
1146    
1147     * Extensions/svgexport/: Minor improvements to doc strings.
1148    
1149 jan 2387 2004-10-07 Jan-Oliver Wagner <[email protected]>
1150    
1151     Further elements for sizable point objects now
1152     making this feature usable though not yet complete.
1153    
1154     * Thuban/Model/save.py (SessionSaver.write_classification): Write
1155     attribute 'size' for cldata when the shape layer is of point type.
1156     This also now make the test_load.py tests happy.
1157    
1158     * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
1159     gradient.
1160    
1161     * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
1162     ID_SELPROP_SPINCTRL_LINEWIDTH.
1163     (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
1164     (ID_SELPROP_SPINCTRL_SIZE): New Id.
1165     (SelectPropertiesDialog.__init__): Added a second spin control
1166     for the size in case the corresponding layer is of point type.
1167     (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
1168     (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
1169     (SelectPropertiesDialog._OnSpinSize): New. Set size of property
1170     and refresh preview.
1171    
1172    
1173    
1174 joey 2381 2004-10-04 Martin Schulze <[email protected]>
1175    
1176     * Extensions/wms/test/test_parser.py
1177     (TestWMSCapabilitiesParser.test_compareLists): Added missing
1178     self-test for compareLists()
1179     (TestWMSCapabilitiesParser.test_compareDicts): Added missing
1180     self-test for compareDicts()
1181 joey 2382 (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
1182     to verify the test routine fails with non-equal arguments
1183     (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
1184     to verify the test routine fails with non-equal arguments
1185 joey 2381
1186 jan 2370 2004-10-03 Jan-Oliver Wagner <[email protected]>
1187    
1188 jan 2380 First elements for sizeable point objects.
1189    
1190     * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
1191    
1192     * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
1193    
1194     * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
1195     of a corresponding argument is given.
1196     (TestSymbolSize): New. Test the size attribute of cldata.
1197    
1198     * Thuban/Model/classification.py: Removed some trailing whitespaces.
1199     (ClassGroupProperties.__init__): Set default size.
1200     (ClassGroupProperties.SetProperties): Set the size.
1201     (ClassGroupProperties.GetSize): New. Return the size.
1202     (ClassGroupProperties.SetSize): New. Set the size.
1203     (ClassGroupProperties__eq__): Compare also size.
1204     (ClassGroupProperties__repr__): Print also size.
1205    
1206     * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
1207     the size attribute.
1208    
1209     * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
1210     Also, now there is a return value that indicates whether the drawing
1211     size exceeded the given rect extent and if so the new extent.
1212     Finally, point objects are drawn depending on the size. If either
1213     the width or height is exceeded, the new extent is returned.
1214     (ClassRenderer.Draw): Now when calling the previewer drawing function,
1215     evaluate the return value and, if not None, adapt the grid widget size
1216     accordingly and redraw again.
1217    
1218     * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
1219     If the draw function is for points, call it with the size as additional
1220     parameter.
1221     (BaseRenderer.draw_point_shape): Added additional, optional parameter for
1222     the size. Compute the radius using the size.
1223    
1224     * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
1225     that Thuban supports size, apply this correctly.
1226    
1227     * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
1228    
1229     2004-10-03 Jan-Oliver Wagner <[email protected]>
1230    
1231 jan 2370 * Doc/manual/thuban-manual-de.xml: Started translation of
1232     Map chapter.
1233    
1234 joey 2368 2004-10-01 Martin Schulze <[email protected]>
1235    
1236     * Extensions/wms/properties.py (wmsProperties.__init__): Extended
1237     argument for general use through properties-dialog selector
1238    
1239     * Thuban/UI/classifier.py: Register properties dialog classes for
1240     both provided layer classes/types.
1241    
1242     * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
1243     map can be retrieved through the parent which is passed to the
1244     constructor anyway and doesn't require an argument of its own,
1245     required for the unification of arguments for general use through
1246     properties-dialog selector.
1247     (MainWindow.OpenOrRaiseDialog): Move the logic for checking
1248     whether a dialog is already opened (and raising it to the users
1249     attention) and creating a new dialog into a function of its own
1250     (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
1251     method
1252     (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
1253     global registration of properties dialog classes (which are indeed
1254     layer-specific).
1255    
1256     * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
1257     for general use through properties-dialog selector, the map can be
1258     retrieved through the parent and doesn't require an argument of
1259     its own.
1260    
1261     * Extensions/wms/wms.py: Register the properties dialog class for
1262     the provided WMS layer
1263    
1264 jan 2358 2004-09-28 Jan-Oliver Wagner <[email protected]>
1265    
1266     New feature: Registry for Extensions.
1267    
1268     * Thuban/UI/extensionregistry.py: This module defines a registry for
1269     Extensions.
1270    
1271     * Thuban/UI/about.py (About.__init__): Added description
1272     of the registered extensions with all of the information.
1273    
1274     * Thuban/Model/extension.py (Extension): Improved doc-string.
1275    
1276     * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
1277     Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
1278     Extensions/wms/wms.py: Added registration of the extension.
1279    
1280 bernhard 2352 2004-09-27 Bernhard Reiter <[email protected]>
1281    
1282     More fixes to svgexport to make used ids unique and
1283     conforming to XML's Name production.
1284    
1285     * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
1286     test_xml_id_constraints(), test_make_ide_nosetbaseid() and
1287     test_make_id_nonintegersetid(). Switched SetID and SetBaseID.
1288     Added Bernhard R. as author.
1289     * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
1290     concatenation char now (makes test_make_ide_nosetbaseid() valid).
1291     Also transform second id part with "%d" and catch the TypeError
1292     to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
1293     Corrected typo inBernhard's author line.
1294     (SetBaseID): Return the transformed base id. Transform characters
1295     which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
1296     import binascii. If to be set string starts with "xml" or so, add "t".
1297     (draw_shape_layer_incrementally): use the returned value of SetBaseID
1298     for used_baseids checks.
1299    
1300 bh 2351 2004-09-25 Bernhard Herzog <[email protected]>
1301    
1302     * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1303     Remove a debug print and some tab characters.
1304    
1305 bernhard 2350 2004-09-25 Bernhard Reiter <[email protected]>
1306    
1307     * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
1308     (SetBaseID, SetID, make_id): Improved docstring comments to explain
1309     the interaction of the three functions and the XML id contrains.
1310    
1311 bernhard 2352
1312 jan 2346 2004-09-23 Jan-Oliver Wagner <[email protected]>
1313    
1314 jan 2349 * Doc/ThubanModel.xmi: New. UML file for Thuban Model
1315     Module.
1316    
1317     * Doc/README: Added info on ThubanModel.xmi.
1318    
1319     2004-09-23 Jan-Oliver Wagner <[email protected]>
1320    
1321 jan 2346 * Doc/README: New. Some info about how to generate technical
1322     documentation from the source code.
1323     This text was send to the Thuban developer mailing list on
1324     September 21st 2004 by Bernhard Reiter.
1325    
1326 bernhard 2344 2004-09-21 Bernhard Reiter <[email protected]>
1327    
1328     Improved the svgexport to only use unique ids. Will issues
1329     an error message dialoge when two layer names are the same.
1330     ShapeIDs are now added with a dash within the svg ids.
1331    
1332     * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
1333     * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
1334     (TestSVGRenderer): New test class with test_make_in() and
1335     test_check_for_layer_name_clash()
1336     * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
1337     and draw_shape_layer_incrementally() to not use a baseid twice,
1338     satisfying test_check_for_layer_name_clash()
1339     (VirtualDC.make_id): Use a dash between baseit and id, satisfies
1340     test_make_in().
1341     * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
1342     and wxICON_HAND.
1343     (write_to_svg): Put dc and rendering in a try statement and on
1344     catching SVGmapWriterError notify the user and delete the target file.
1345    
1346 bernhard 2343 2004-09-20 Bernhard Reiter <[email protected]>
1347    
1348     * Model/base.by, Model/layer.py: Fixed typos in docstrings.
1349    
1350 jschuengel 2342 2004-09-03 Jan Schüngel <[email protected]>
1351    
1352     * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
1353     small bug with the line color. Now the line color will now only set
1354     if it is set in Thuban an not Transparent.
1355    
1356     * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
1357     deleting the layers from mapfile. Now all layers will delete backwards
1358     from the last.
1359    
1360 silke 2339 2004-08-20 Silke Reimer <[email protected]>
1361 silke 2338
1362 silke 2339 * Thuban/Model/layer.py:
1363     Fixes bug in projection handling: Otherwise very large region might not
1364     have valid values in the layer's projection.
1365    
1366     2004-08-20 Silke Reimer <[email protected]>
1367    
1368 silke 2338 * Thuban/UI/about.py:
1369     small changes to be consistent with coding style.
1370    
1371 joey 2337 2004-08-13 Martin Schulze <[email protected]>
1372    
1373     * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
1374     Adjusted a comment
1375    
1376 silke 2335 2004-08-11 Silke Reimer <[email protected]>
1377 silke 2334
1378 silke 2335 * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
1379     too many and too enhanced imports of locale
1380    
1381 silke 2334 2004-08-10 Silke Reimer <[email protected]>
1382    
1383     * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
1384 silke 2339 function unicodeToLocale() to convert special characters to users
1385     locale encoding
1386 silke 2334
1387 jan 2333 2004-08-10 Jan-Oliver Wagner <[email protected]>
1388    
1389     * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
1390     lower case letter'
1391    
1392 jschuengel 2331 2004-08-09 Jan Schüngel <[email protected]>
1393    
1394     * ChangeLog: Rewrite the last ChangeLog entry to follow
1395     the standard way.
1396    
1397     * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
1398     the function where it is needed, because it don't works if it stands
1399     at the beginning.
1400     (MF_Layer.__init__): Removed the extra numclassed variable. Now
1401     numclasses from the mapscript will be used.
1402     (MF_Layer.get_index): New. Return the index of the layer in mapfile.
1403     (MF_Layer.set_classes): New. A Classlist will be set to the layer.
1404     (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
1405     (MF_Layer.remove_allclasses): New. All class of the layer will remove.
1406     (MF_Map.create_new_layer): New. A new Layer is created and associated
1407     with the mapscript object.
1408     (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
1409     the mapscript.
1410     (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
1411     linked to the layer in thuban, else the layerobject linked to the
1412     thubanlayer will be used.
1413     AnnotationLayer will now store the filename of the shapefile.
1414     (MF_Map.remove_layer): If a layer is removed the associated object
1415     must be set new.
1416    
1417     * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
1418     layers which are exists in thuban to the mapobj. All removed Layers
1419     will be removed from the mapobj.
1420     Added comments to all functions.
1421     (thuban_to_map): No layer will be removed here.
1422    
1423     * Extensions/umn_mapserver/mf_handle.py
1424     (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
1425     Layersettings for the mapserver kann be edited.
1426    
1427     * Extensions/umn_mapserver/mf_import.py: Now all layers which are
1428     imported, will be linked with the associated MF_Layer.
1429     (import_mapfile): All layers, which are not selected, will be removed.
1430     Disable the "import layer from mapfile" menu option.
1431    
1432     * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
1433     Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
1434     layer on permanently.
1435    
1436 jschuengel 2323 2004-08-03 Jan Schüngel <[email protected]>
1437    
1438 jschuengel 2331 * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
1439     New. This function removes all metadata
1440     (MF_Layer.set_group): New. Set the group setting.
1441     (MF_Layer.get_group): New. Get the group setting.
1442     (MF_Map): Removed the extra numlayers variable, used the mapscript
1443     parameter instead.
1444     (MF_Map.get_numlayers): New. This get numlayers.
1445     (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
1446 jschuengel 2323 (MF_Map.add_thubanlayer): Replaced the exception handling by a check
1447     if the object is an instance. Also added the annotation layer here to
1448     export, but only the layer is created in the mapfile.
1449    
1450 jschuengel 2331 * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
1451     the check if a mapobj exist, because its not needed anymore. The
1452     export function is only available if a mapobj exist.
1453     Use the new function to remove all layers.
1454 jschuengel 2323
1455 jschuengel 2331 * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
1456     option and the metadata button. The layer dialog is temporary disabled.
1457     (Metadata_CustomDataTable): Added some functions to show the grid
1458 jschuengel 2323 correct.
1459    
1460 jschuengel 2331 * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
1461     the number of layer from import_mapfile to this function.
1462     (AnnotationLayer): New. This Class shows the Annotation layer in
1463     thuban. The layer don't do anything. It's only to show the layer
1464     and to save the layer order.
1465     (add_annotationlayer): New. Import an annotation layer to thuban.
1466     (select_layer2import): New. Import only layers to thuban and not
1467     the other settings like projection or scalebar.
1468     (create_new_mapfile): Moved the _has_umn_mapobj function and the
1469     create_new_mapfile functions from mf_handle.py to mf_import.py.
1470 jschuengel 2323
1471     * Extensions/umn_mapserver/sample/iceland.map: Added the group
1472     parameter to the roads and cultural layers. Also added a new
1473     Annotation Layer for the cultural points.
1474    
1475     * Extensions/umn_mapserver/sample/iceland.html: Added the select
1476     option for the annotation layer.
1477    
1478     * Extensions/umn_mapserver/sample/index.html: Added the start
1479     parameter for the annotation layer.
1480    
1481 jan 2315 2004-08-01 Jan-Oliver Wagner <[email protected]>
1482    
1483     * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
1484     translation completed.
1485    
1486     * Doc/manual/thuban-manual.xml (Chapter Session Management):
1487     Fixed unprecise description for Save Session.
1488    
1489 jan 2312 2004-07-31 Jan-Oliver Wagner <[email protected]>
1490    
1491     Started translation of Users Manual into german.
1492    
1493     * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
1494    
1495     * Doc/manual/Makefile: Added build instructions for german
1496     users manual.
1497    
1498     * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
1499    
1500 jschuengel 2308 2004-07-28 Jan Schüngel <[email protected]>
1501    
1502     * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
1503     functions. Now all metadata will handle by the function and its not
1504     needed to initialize it from outside. Therefor the associated mapobj
1505     will be stored in the Metadata Object. So we can use the special
1506     functions from the associated mapobj to get the Metadata.
1507     Therefor all initialization code for the metadata is removed from the
1508     other classes.
1509     (MF_Layer): Added a function to get the metadata object.
1510     (MF_Map): Added a function to set the mappath, the path where
1511     the mapfile ist stored.
1512    
1513     * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
1514     to set the extent in the mapfile. Now the code is set by the displayed
1515     data in the Thuban-view.
1516     (export_mapfile): The shapepath is now set empty, until relative
1517     pathnames are supported.
1518    
1519     * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
1520     metadata. Yet only mapfile metadata are supported. Layer and class
1521     supported are not implemented.
1522     Added a dialog to handle layer informations. The dialog only shows the
1523     selected layer at the moment.
1524    
1525     * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
1526     code for setting the extent in thuban. Now the extent is set to the
1527     given extent from the mapfile.
1528     Fixed a logical mistake. Now the extent is set when realy a layer is
1529     loaded, and not if one is selected to load.
1530    
1531     * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
1532     move the shown map in the browser.
1533    
1534     * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
1535     line to the mapobj and added metadata to the political layer.
1536    
1537     * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
1538     for Metadata.
1539    
1540 joey 2300 2004-07-26 Martin Schulze <[email protected]>
1541    
1542     * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
1543     ClassMapper
1544    
1545     * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
1546     case for the new ClassMapper
1547    
1548    
1549 bh 2296 2004-07-22 Bernhard Herzog <[email protected]>
1550    
1551 bh 2297 * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New. Return the
1552     visible extent of the map in projected coordinates
1553    
1554     * test/test_viewport.py (SimpleViewPortTest.test_default_size)
1555     (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
1556     tests.
1557     (SimpleViewPortTest.test_visible_extent): New. The real test for
1558     VisibleExtent()
1559    
1560     2004-07-22 Bernhard Herzog <[email protected]>
1561    
1562 bh 2296 * test/test_viewport.py: Use support.run_tests as the main
1563     function when running asa script.
1564    
1565 jschuengel 2295 2004-07-22 Jan Schüngel <[email protected]>
1566    
1567     * Extensions/umn_mapserver/mf_export.py: Added "import os"
1568     Removed the old "import Thuban.UI.mainwindow" code.
1569     (tbextent_to_map): Removed the extra function and at the code direct
1570     to "thuban_to_map" function.
1571     (write_creatorcomment): Added. Now a short comment is added to the
1572     beginning of an generated mapfile.
1573     (export_mapfile): Now the Path and filename are saved in to variables,
1574     and not together in one variable. This is needed for the new
1575     write_creatorcomment function.
1576    
1577     * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
1578     import module "re". Also added Range and the ClassGroupRange import
1579     from Thuban. Both are needed for the new range expression import.
1580     (create_rangeexpression): Added. Creates a Range Expression in Thuban
1581     style from a given mapfile expression.
1582     (added_rasterlayer): Make some small code changes. The shapepath is
1583     now stored in an extra variable and the clazz_name is set empty if no
1584     class name set in the mapfile.
1585     Changed the Error message for Range Expressions, becaus the new
1586     function create a error string which will be shown in the dialog.
1587    
1588     * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
1589     range expression import.
1590 jan 2312
1591 jan 2291 2004-07-21 Jan-Oliver Wagner <[email protected]>
1592    
1593     * Extensions/umn_mapserver/README: Added hint that
1594     installation as root can be avoided. Removed all tabs.
1595    
1596 bh 2289 2004-07-16 Bernhard Herzog <[email protected]>
1597    
1598     * test/test_viewport.py
1599     (ViewPortTest.test_changing_map_projection): Check that changing
1600     the projection of an empty map shown in a viewport doesn't lead to
1601     exceptions in the viewport's handler for the
1602     MAP_PROJECTION_CHANGED messages
1603    
1604     * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
1605     try to keep the same region visible when the map actually contains
1606     something
1607    
1608 jschuengel 2288 2004-07-15 Jan Schüngel <[email protected]>
1609    
1610     * Extensions/umn_mapserver/mapfile.py: Added a function to get the
1611     mappath directly from the mapobj. Is needed because of the changes
1612     in mf_import.py.
1613     (MF_Layer.add_thubanclass): Added a new comment.
1614     (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
1615     mapobj is empty there is no extent get from thuban an so no one can
1616     set to th mapobj.
1617    
1618     * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
1619     the discription.
1620     Split the funktion in to three smaller ones. The new functions are
1621     add_rasterlayer, add_polygonlayer and select_layer2import.
1622     Removed the mapfilepath and filepath initialisation, because its know
1623     include in the new functions.
1624     Now nothing will be imported if cancel is pressed in the
1625     layer choice dialog.
1626    
1627 jschuengel 2285 2004-07-14 Jan Schüngel <[email protected]>
1628    
1629     * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
1630     import.
1631     (MF_Symbolset): Removed the extra variable for numsymbols.
1632     (MF_Class.__init__): Added a comment to the exception clause.
1633     Removed the extent init, because it was not needed anymore.
1634     (MF_Layer.add_thubanclass): Added the code to set the class name to
1635     the expression value from thuban if no label is defined.
1636     Added the code to export Range expressions from thuban to the mapfile.
1637     (MF_Map.set_extent): Removed the exception and replace it by some if
1638     code. If the size of a map is not defined the size will be set to 1,1.
1639     This is necessary because if the extent is set, mapscript checks if
1640     the size is greater than zero.
1641     (MF_Web): Added the get and set function for the template.
1642    
1643     * Extensions/umn_mapserver/mf_export.py: Added the function to check
1644     if a mapobject exists and used it to set the status of the menu items.
1645     If no mapfile exists the settings could not be edditied.
1646     Define after which menuitem the exportitem will include.
1647    
1648     * Extensions/umn_mapserver/mf_handle.py: Removed the import
1649     Thuban.UI.mainwindow clause, because it is not needed.
1650     Added the command Refresh() to all "OnChangeColor()" functions,
1651     because the color preview window was not updated on a color change.
1652     Added the function to check if a mapobject exists and used it to set the
1653     status of the menu items. If no mapobject exists the settings could not
1654     be edditied.
1655     (Map_Dialog): Moved the imagetype selector from the
1656     Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
1657     (Web_Dialog): Removed the name label and added the template textbox.
1658    
1659     * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
1660     the exception handling on loading the layers by an if statement. It
1661     is not necessary to us the exception there.
1662     The Filepath creation now use os.path.join to build the path.
1663    
1664     * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
1665     definition from global to the setUp function. Now the testMap will
1666     initialize new on each test.
1667    
1668     * Extensions/umn_mapserver/sample/iceland.map: Include three new
1669     classes in the Line Layer, to test logical Expressions.
1670     Set the status of the class "Point9" in the Point Layer to off
1671    
1672 bh 2278 2004-07-13 Bernhard Herzog <[email protected]>
1673    
1674     * Thuban/UI/baserenderer.py
1675     (BaseRenderer.render_map_incrementally): Fix a logic bug in the
1676     optimization that tries not to draw layers under a raster layer.
1677     The bug was harmless. All it effectively did was to produce The a
1678     strange messages about not being able to draw Layer instances for
1679     all vector layers below a raster layer which would be invisible
1680     anyway because the raster layer currently always covers the entire
1681     window
1682    
1683 jschuengel 2277 2004-07-08 Jan Schüngel <[email protected]>
1684    
1685     * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
1686     a list of supported outputformats. This formats are not alle supported
1687     because there is no possibility to get the outputformat without the
1688     name known. Make some formal changes to the code.
1689     (MF_Map.set_name()): Fixed a bug if the name is None.
1690    
1691     * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
1692     statement, because its not needed anymore. The Outputformat is now
1693     given as string from the object. Make some formal changes to the code.
1694    
1695     * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
1696     most of the new setting which were added during the last changes.
1697     Removed the MF_Size Test.
1698    
1699     * Extensions/umn_mapserver/test/test.map: Added a new class to the
1700     cultural Layer to test expressions and the the status of that layer
1701     from on to default.
1702     Changed the data path the the correct Thuban Data
1703     Added the Outputformat Object and Symbol Object
1704    
1705 jschuengel 2272 2004-07-07 Jan Schüngel <[email protected]>
1706    
1707     * Extensions/umn_mapserver/mapfile.py: Added some new
1708     settings to edit (outputformat, label, imagetype)
1709    
1710     * Extensions/umn_mapserver/mf_handle.py: Added some setting to
1711     the Label Dialog and add the OutputDialog.
1712     Make some changes to the code order.
1713    
1714 jschuengel 2269 2004-07-06 Jan Schüngel <[email protected]>
1715    
1716     * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
1717     and line Obj and add the scalebar_status_type, scalebar_style_type and
1718     scalebar_position_type.
1719     Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
1720     are only used to create a Symbol like the circle in Thuban.
1721     Added the scalebarObject (MF_Scalebar)
1722     (MF_Class): Added set_status and get_status.
1723     (MF_Layer.add_thubanclass): Added code to set the class status
1724     (MF_Map): Added code to handle the symbols and scalebar
1725     (MF_Label): Added the set_partials and get_partials functions
1726    
1727     * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
1728     from mapfile. Added a function to create a circle object like the one
1729     from thuban if no one exists.
1730    
1731     * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
1732     press ok in the assosiated dialog and not at the end of the
1733     colordialog.
1734     Added the Dialog for the Scalebar.
1735     (Label_Dialog): Added the offset option
1736    
1737     * Extensions/umn_mapserver/mf_import.py: Added code to import the
1738     status of the Classes.
1739     Fixed a bug with the projection. Now the to_meter parameter will be
1740     added to the Projection only if it doesn't exists.
1741    
1742 jschuengel 2264 2004-07-01 Jan Schüngel <[email protected]>
1743    
1744     Added the functionality to handle the content thuban is not
1745     able to handle directly.
1746    
1747     * Extensions/umn_mapserver/mf_handle.py: New. This module extents
1748     Thuban with the possibility to edit the mapfile content.
1749    
1750     * Extensions/umn_mapserver/mf_import.py: Added the possibility
1751     to import mapfiles without any layer selected. So it is possible
1752     to edit the other settings in a mapfile.
1753     (import_mapfile): Added code to use the editing functions.
1754     Added the possibility to import the projection to a layer if one
1755     is defined.
1756     Status settings (On,Off) will now set in thuban (visible, invisible).
1757     fixed a bug with with classnames. If no classname is set in mapfile
1758     the value in Thuban will set to the expression.
1759    
1760     * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
1761     possibility to save a new mapfile or use the old one which is
1762     imported or new created.
1763     Added code to use the editing functions.
1764     Remove some not needed import statements
1765    
1766     * Extensions/umn_mapserver/mapfile.py: Added new types which are
1767     need for the editing functions.
1768     Added needed set-functions for the editing functions.
1769     Added the possibility to export rasterimages.
1770     Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
1771     MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
1772     moment.
1773     (MF_Class.set_thubanstyle): Now point layers will set to a default
1774     symbol to show a circle in mapserver and not only a 1px dot.
1775     (MF_Style.__init__): Fixed a bug with the color. Color was not set
1776     correct before.
1777     (MF_Size): Removed, because it is not needed.
1778    
1779     * Extensions/umn_mapserver/README: Added the hints to use the
1780     export and editing functions, too.
1781    
1782     * Extensions/umn_mapserver/sample/iceland.map: Added the
1783     new parameter "UNITS METERS".
1784     Change the political layer to status OFF.
1785    
1786     * Extensions/umn_mapserver/sample/README: Added some
1787     more details to setup the sample in the MapServer.
1788    
1789 bernhard 2256 2004-06-26 Bernhard Reiter <[email protected]>
1790    
1791     * Extensions/svgexport/test/test_svgmapwriter.py:
1792     Removed class VFile and used standard StringIO instead.
1793    
1794 jschuengel 2255 2004-06-23 Jan Schüngel <[email protected]>
1795    
1796     Add the export function to the umn_mapserver extension.
1797    
1798     * Extension/umn_mapserver/mf_export.py: New. This module extents
1799     Thuban with the possibility to export the Thuban content.
1800    
1801     * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
1802     with the export module. Especially added the possibility to
1803     add thuban objects directly to the map objects.
1804    
1805     * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
1806     because of the hint from Bernhard Herzog.
1807     Corrected the handling of absolute pathnames.
1808     Changed the Text of the Menu-Item, now the beginning is upper case.
1809    
1810     * Extensions/umn_mapserver/README: Added the --with-tiff statement.
1811    
1812 jschuengel 2250 2004-06-16 Jan Schüngel <[email protected]>
1813 jschuengel 2242
1814 jschuengel 2250 Add a sample and make some changes.
1815    
1816     * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
1817     import from * to explicit used statements. Changed the
1818     Thuban.UI.mainwindow import phrase, too.
1819     (import_mapfile):Corrected a clerical mistake.
1820     Added wxCHANGE_DIR in OpenFile Dialog.
1821     Added a MultipleChoiceDialog, to select the layers to load from
1822     mapfile into thuban. Thereby the projection is only set if one layer
1823     is selected.
1824     Added the possibility to handle relative pathnames which uses
1825     up-level references.
1826     Removed some doubled code.
1827     Corrected an error with integer values used as label in thuban
1828     ClassGroup.
1829    
1830     * Extensions/umn_mapserver/sample: New.
1831    
1832     * Extensions/umn_mapserver/sample/README: New. Describes the
1833     usage of the sample files.
1834    
1835     * Extensions/umn_mapserver/sample/iceland.map: New. This is
1836     a suitable .map-file for the iceland data.
1837    
1838     * Extensions/umn_mapserver/sample/index.html: New. The template
1839     for the mapfile.
1840    
1841     * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
1842     file for the Iceland Application on web.
1843    
1844     * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
1845     some details.
1846    
1847     * Extensions/umn_mapserver/test/test_mapserver
1848     (mapserver_import_Test_generalClasses.test_MF_Color):
1849     Corrected the thubancolor test.
1850    
1851     2004-06-15 Jan Schüngel <[email protected]>
1852    
1853 jschuengel 2242 * Extensions/umn_mapserver/README: New. Install instruction.
1854    
1855 bernhard 2240 2004-06-14 Bernhard Reiter <[email protected]>
1856    
1857     * libraries/thuban/cpl_mfile.h: Added copyright header.
1858    
1859     * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
1860     Free Software License so that it is most useful with gdalwarp
1861     and bmpdataset.
1862    
1863 bh 2239 2004-06-14 Bernhard Herzog <[email protected]>
1864    
1865     * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
1866     import of wxPython.wx itself (as opposed to the contents of
1867     wxPython.wx). For some reason wxPython.wx is available as
1868     wxPython.wx.wx in at least some 2.4 releases. Fixes RT#2482
1869     wrt. wxPython 2.4.
1870    
1871 jschuengel 2238 2004-06-10 Jan Schüngel <[email protected]>
1872    
1873     Initial version of new extension "umn_mapserver". This extension aims
1874     to manage configuration for the UMN MapServer application. This
1875     inital version just imports the .map-files and displays all, Thuban is
1876     capable of.
1877    
1878     * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
1879    
1880     * Extensions/umn_mapserver/test/README: New. Describes how to run the
1881     tests.
1882    
1883     * Extensions/umn_mapserver/test/test.map: New. This is a test
1884     .map-file for automated tests of the umn_mapserver extension of
1885     Thuban.
1886    
1887     * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
1888     UMN Mapserver classes.
1889    
1890     * Extensions/umn_mapserver/__init__.py: New. Init to make this
1891     directory a package.
1892    
1893     * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
1894     '.map'-file objects.
1895    
1896     * Extensions/umn_mapserver/mf_import.py: New. This module extends
1897     Thuban with the possibility to handle UMN MapServer mapfiles.
1898    
1899 bh 2230 2004-06-03 Bernhard Herzog <[email protected]>
1900    
1901     * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
1902     to a tuple before using it as arguments to the % operator. This
1903     fixes the formatting issue filed in RT#2239 on 2004-01-13 and
1904     reported today on thuban-list by Jan Schüngel
1905    
1906     * test/test_layer.py (TestLayerModification.setUp): Save the
1907     filename as an instance variable so we can refer to it in tests
1908     (TestLayerModification.test_tree_info): Uncomment this method
1909     again and make it work. This tests for the formatting issue
1910     filed in RT#2239 on 2004-01-13
1911    
1912 bh 2224 2004-05-28 Bernhard Herzog <[email protected]>
1913    
1914     * Thuban/UI/baserenderer.py: Fix some typos.
1915    
1916 jan 2217 2004-05-18 Jan-Oliver Wagner <[email protected]>
1917    
1918     * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
1919     by increasing a field size.
1920    
1921 bh 2213 2004-05-17 Bernhard Herzog <[email protected]>
1922    
1923     Update to newest shapelib and get rid of Thuban specific
1924     extensions, i.e. use the new DBFUpdateHeader instead of our
1925     DBFCommit kludge
1926    
1927     * libraries/shapelib/shpopen.c: Update to version from current
1928     shapelib CVS.
1929    
1930     * libraries/shapelib/shapefil.h: Update to version from current
1931     shapelib CVS.
1932    
1933     * libraries/shapelib/dbfopen.c: Update to version from current
1934     shapelib CVS.
1935     (DBFCommit): Effectively removed since shapelib itself has
1936     DBFUpdateHeader now which is better for what DBFCommit wanted to
1937     achieve.
1938     We're now using an unmodified version of dbfopen.
1939    
1940     * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
1941     value '1' to the Lib.dbflibc extension. This simply reflects the
1942     shapelib and pyshapelib updates
1943    
1944 jan 2211 2004-05-16 Jan-Oliver Wagner <[email protected]>
1945    
1946     Finished introduction of Menu.FindOrInsertMenu.
1947    
1948     * Extensions/drawshape/drawshape.py: Add the command
1949     to the experimental menu additionally to the toolbar.
1950    
1951     * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
1952     finding menu on its own.
1953    
1954     * Doc/manual/thuban-manual.xml: updated sample file
1955     to use FindOrInsertMenu().
1956    
1957     * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
1958     instead of finding menu on its own.
1959    
1960 jan 2206 2004-05-11 Jan-Oliver Wagner <[email protected]>
1961    
1962     * test/test_menu.py (MenuTest.test): Added testing
1963     of method Menu.FindOrInsertMenu.
1964    
1965 jan 2204 2004-05-10 Jan-Oliver Wagner <[email protected]>
1966    
1967     Introduce and use Menu.FindOrInsertMenu.
1968    
1969     * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
1970     given menu or, if not found, insert it.
1971    
1972     * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
1973     /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
1974     /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
1975     menu on its own.
1976    
1977 jan 2201 2004-05-06 Jan-Oliver Wagner <[email protected]>
1978    
1979     Introduce a abstract ColorDialog class and remove
1980     and outdated file.
1981    
1982     * Thuban/UI/proj4dialog.py: Removed. It is has been
1983     replaced by projdialog for quite a while and is not used
1984     anymore.
1985    
1986     * Thuban/UI/colordialog.py: New. Abstraction for color selection
1987     dialog(s).
1988    
1989     * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
1990     Now calls the abstract ColorDialog instead of wxColourDialog.
1991     This also removed the dependency to Color class conversion
1992     from this function.
1993    
1994 frank 2197 2004-05-04 Frank Koormann <[email protected]>
1995    
1996     * Extensions/bboxdump/__init__.py: Fixed string left over from
1997     copying.
1998    
1999     * Extensions/bboxdump/bboxdump.py (bboxdump):
2000     Use layer.ShapeStore().AllShapes() to loop over shapes instead of
2001     xrange(layer.NumShapes()). Compile the bboxmessage from a list
2002     of formatted outputs (string.join) instead of appending to the
2003     message. Two progress bar dialogs to report progress on the sometimes
2004     lenghty processing.
2005    
2006 frank 2196 2004-04-22 Frank Koormann <[email protected]>
2007    
2008     New Extension to dump bounding boxes of all shapes of the selected
2009     layer. An optional column can be specified to group the objects,
2010     in this case the bounding box is a union of the separate boxes.
2011     Dump can be displayed in a ScrolledMessageDialog or written to file.
2012     The Extension is simply a combination of available and well tested
2013     Thuban functionality.
2014    
2015     * Extensions/bboxdump/__init__.py: New: Init to make this
2016     directory a package.
2017    
2018     * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
2019     all shapes of the selected layer.
2020    
2021 jan 2192 2004-04-22 Jan-Oliver Wagner <[email protected]>
2022    
2023     * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
2024     strings to be i18n now.
2025    
2026 jan 2188 2004-04-18 Jan-Oliver Wagner <[email protected]>
2027    
2028     Changing popup menu of legend from direct building
2029     to using the Menu construction as used for the mainwindow.
2030    
2031     * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
2032     layer_to_bottom, layer_visibility
2033     (MainWindow.LayerToTop): New. Put current layer to the top.
2034     (MainWindow.LayerToBottom): New. Put current layer to bottom.
2035     (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
2036     Replace 1,0 by True, False.
2037     (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
2038     current layer.
2039     (MainWindow.LayerShowTable): Removed raising of dialog.
2040     (_has_selected_layer_visible): New. Support function.
2041    
2042     * Thuban/UI/legend.py: ID_POP_xxx: removed.
2043     (LegendPanel.__init__): Removed EVT_MENU bindings.
2044     (LegendTree._OnRightClick): Replace direct creation of
2045     menu via wx Classes by applying the menu definition
2046     as of Menu class of menu.py.
2047    
2048 jan 2185 2004-04-16 Jan-Oliver Wagner <[email protected]>
2049    
2050     * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
2051     button string to stronger clearify that Thuban will be closed when hitting
2052     the button.
2053    
2054     * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
2055     Now for layers without a ShapeStore a corresponding message is given
2056     to the user, that this layer has no table to show.
2057    
2058 joey 2182 2004-04-15 Martin Schulze <[email protected]>
2059    
2060     * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
2061     recalculate the format for the internal render engine as well.
2062    
2063     * Extensions/wms/properties.py (wmsProperties): First start for a
2064     properties dialog. It's functional for a first selection of
2065     layers, but still has some weired wxWidgets/GTK problems but
2066     beautification can be done later.
2067    
2068     * Extensions/wms/layer.py: Added more documentation
2069     (WMSLayer.getFormats): New: Return list of supported image formats
2070     by the WMS server
2071     (WMSLayer.getLayers): New: Return the list of layer names
2072     supported by the WMS server
2073     (WMSLayer.getLayerTitle): New: Return the title of the named layer
2074     (WMSLayer.getWMSFormat): New: Return the image format that is used
2075     for WMS GetMap requests
2076     (WMSLayer.setWMSFormat): New: Set the image format that is used
2077     for WMS GetMap requests
2078     (WMSLayer.__init__): Move away from using only one layer to using
2079     a list of layers (unsorted at the moment, though).
2080     (WMSLayer.getVisibleLayers): New: Return the list of names for all
2081     visible layers
2082     (WMSLayer.setVisibleLayers): New: Set the list of names for all
2083     visible layers
2084    
2085     * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
2086     order to establish a clean structure.
2087    
2088     * Extensions/wms/layer.py: Moved the WMS layer into a file on its
2089     own in order to establish a clean structure.
2090    
2091 joey 2174 2004-04-13 Martin Schulze <[email protected]>
2092    
2093     * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
2094     support for oldstyle (WMS 1.0 apparently) image format
2095     specification.
2096    
2097     * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
2098     supported graphic formats back to JPEG and BMP, PNG and others are
2099     too *cough* experimental... Sorry, I meant to filter this out
2100     before I committed this part. This should make the WMS extension
2101     run from CVS again.
2102     (wms_dialog): Reset an empty URL to None so that the subsequent
2103     program can depend on this, since the dialog will indeed return an
2104     empty URL, causing another declaration of love by Python.
2105    
2106     * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
2107     Whenever a native BoundingBox request cannot be fulfilled, check
2108     whether the requested SRS is EPSG:3426, in which case return the
2109     LatLonBoundingBox values.
2110    
2111     * Extensions/wms/test/test_parser.py
2112     (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
2113     ignoring AUTO:* SRS.
2114     (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
2115     Added another test method to test whether the LatLonBoundingBox
2116     values will be returned if BoundingBox values are requested with
2117     SRS set to EPSG:3426.
2118    
2119     * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
2120     Added rudimentary support for non-EPSG SRS, i.e. ignore them for
2121     the moment by placing them into a variable which is currently
2122     unused. Also test whether the EPSG SRS is numerical as it should
2123     be and add an error message if it is not.
2124    
2125     * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
2126     appear in the real world as well. Since we cannot handle them yet
2127     (OGCLib can't either), we will ignore them for the moment.
2128    
2129     * Extensions/wms/parser.py: Use a variable for denoting the sample
2130     filename
2131     (WMSCapabilitiesParser.peekLayers): Added support for error
2132     messages during grok(). They will be aggregated in an array and
2133     may be displayed later. We may have to add a classification
2134     "Warning" and "Error" to this. That requires more experience,
2135     though, since not every error may be lethal.
2136    
2137     * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
2138     ShowTable() dialog/frame when the user attempts to display it
2139     while it has been opened before already and not closed again.
2140    
2141 joey 2161 2004-04-11 Martin Schulze <[email protected]>
2142    
2143     * Extensions/wms/infodialog.py: Adjusted the class documentation
2144    
2145     * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
2146     Switch to using Thuban{Begin,End}BusyCursor instead of the pure
2147     wxWidgets variants.
2148     (WMSLayer.__init__): The epsg_id variable is named top_srs now.
2149    
2150     * Extensions/wms/infodialog.py: Added an information dialog that
2151     will display various information about the WMS current resource,
2152     so that additional information such as the title, the abstract,
2153     fees and access constraints can be displayed for the user if they
2154     are documented in the WMS XML.
2155    
2156 joey 2156 2004-04-10 Martin Schulze <[email protected]>
2157    
2158     * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
2159     string handling. It's "foo".lower() and not lower(foo) without
2160     lower imported from strings or something.
2161    
2162     * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
2163     from capabilities.py and parser.py. Implement priority list for
2164     supported graphics formats, take care of wbmp != bmp. PNG, TIFF
2165     and GIF are supported here, but not yet by main Thuban. Hence,
2166     support for them may be removed later. Special contribution to
2167     usability: get wxWidgets to change the cursor when we're waiting
2168     for data from the network so the user won't start to worry. This
2169     causes a redrawing error/warning, though.
2170    
2171     * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
2172     the DOM object.
2173    
2174     2004-04-01 Martin Schulze <[email protected]>
2175    
2176     * Extensions/wms/capabilities.py: Adjusted documentation
2177     (WMSCapabilities.__init__): Improved documentation, fixed syntax
2178     (WMSCapabilities.saveCapabilities): Only catch IOError when
2179     handling files
2180     (WMSCapabilities.loadCapabilities): Only catch IOError when
2181     handling files
2182     __main__: corrected variable naming
2183     (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
2184     class a specialisation of WMSCapabilitiesParser as well. Also
2185     execute grok() after loading or fetching capabilities, if that
2186     went well, so that subsequent calls can already access the data.
2187     (WMSCapabilities.getVersion): Export the used version of the
2188     GetCapabilities request, so we can use it for subsequent calls,
2189     i.e. for GetMap requests.
2190     (WMSCapabilities.fetchCapabilities): Added proper error handling
2191     when the GetCapabilities request failed, so that the surrounding
2192     program can act accordingly.
2193    
2194 joey 2146 2004-03-30 Martin Schulze <[email protected]>
2195    
2196     * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
2197     Adjusted the getLayerSRS method to return the list of SRSes
2198     extracted from <SRS> elements instead of <BoundingBox> elements.
2199     Added a bit of documentation as well.
2200     (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
2201     since it was only implemented due to a misunderstanding.
2202    
2203     * Extensions/wms/test/test_parser.py
2204     (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
2205     reflect the corrected interpretation of the standard: i.e. a layer
2206     does not have to define a BoundingBox for all SRSes it supports.
2207     Hence the <SRS></SRS> specification is authoritative, not the list
2208     of BoundingBoxes.
2209     (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
2210     to ensure None is returned for a non-existing SRS.
2211     (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
2212     since it is not applicable anymore. Listing more SRSes in <SRS>
2213     elements is valid according to the specs.
2214    
2215 bernhard 2140 2004-03-26 Bernhard Reiter <[email protected]>
2216 joey 2146
2217 bernhard 2140 * README: Nicer formatting of text. Improved descriptions.
2218     Reflected wxWidgets name change.
2219    
2220     * Thuban/UI/about.py: Extended copyright to 2004 and added
2221     information about the thuban-devel mailinglist.
2222    
2223 joey 2138 2004-03-24 Martin Schulze <[email protected]>
2224 joey 2120
2225 joey 2138 * Extensions/wms/capabilities.py: Renamed the class to contain
2226     'WMS', also added a linebreak where required
2227    
2228     * Extensions/wms/parser.py: Finally added the XML parser for the
2229     GetCapabilities response.
2230    
2231     * Extensions/wms/test/sample.xml: Adjusted the sample file so that
2232     <SRS> elements match the <BoundingBox> elements, except for the
2233     layer 'beschriftung'.
2234    
2235     * Extensions/wms/test/test_parser.py: Encode non-ascii strings
2236     since Python uses unicode strings internally, otherwise
2237     comparisons will fail. Removed tests for getLayerBBoxSRS() since
2238     the SRS will be calculated anyway and this method is obsoleted by
2239     getLayerSRS(). Denote SRS as strings and not as cardinal numbers.
2240     Move loading the sample file into the setUp method. Added a test
2241     for finding the integrity problem in the sample response.
2242     Improved formatting.
2243    
2244     * Extensions/wms/domutils.py: Added convenience routines for
2245     handling of Document Object Model (DOM) nodes.
2246    
2247     * Extensions/wms/test/test_domutils.py: Added a test for the
2248     domutils module
2249    
2250     2004-03-19 Martin Schulze <[email protected]>
2251    
2252 joey 2120 * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
2253     Moved path detection and adding into a module of its own,
2254     adjustpath, which exports thubandir as main Thuban directory.
2255    
2256     * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
2257     detection and adding into a module of its own, adjustpath, which
2258     exports thubandir as main Thuban directory. Reorganised the
2259     module in order to support the SkipTest feature for Thuban test
2260     cases.
2261    
2262     * Extensions/wms/test/adjustpath.py: Moved path detection and
2263     adding into a module of its own.
2264    
2265 joey 2115 2004-03-18 Martin Schulze <[email protected]>
2266    
2267     * Extensions/wms/test/test_parser.py: Added another test for
2268     checking whether the WMS XML parser (to be implemented) returns
2269     the information we expect. This requires a sample WMS WML file
2270     (sample.xml) which has been extracted from the frida server and
2271     "improved" manually.
2272    
2273     * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
2274     main Thuban directory to the path in order to be able to import
2275     random modules. Adjusted the PyOGCLib detection to reuse the
2276     information gathered. Also added a note about the PYTHONPATH
2277     environment variable.
2278    
2279     * Extensions/wms/test/test_ogclib.py: The format specification is
2280     a mime-type, not a graphic format, hence image/jpeg wou ld be the
2281     proper format and not JPEG. We'll also have to take care of the
2282     encoding of / as %2F.
2283    
2284 joey 2111 2004-03-16 Martin Schulze <[email protected]>
2285    
2286     * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
2287     comprehensive test for the getMapURL method, built compare URLs
2288     according to the documentation in OGC 01-068r3
2289    
2290     * Extensions/wms/capabilities.py (WMSCapabilities): Added the
2291     class WMSCapabilities to manage capabilites, will incorporate
2292     parsing the capabilities response and provide details for other
2293     classes.
2294    
2295 bh 2105 2004-03-12 Bernhard Herzog <[email protected]>
2296    
2297 bh 2107 Support views in addition to normal tables in the postgis
2298     shapestore
2299    
2300     * Thuban/Model/postgisdb.py
2301     (PostGISShapeStore._fetch_table_information): Add a fallback for
2302     the case where the table name is not in the geometry_columns
2303     table. This is usually the case for views. Also, set
2304     self.shapestore here.
2305     (PostGISShapeStore.ShapeType): No need to query the database all
2306     the time. The shape type is now determined in
2307     _fetch_table_information
2308    
2309     * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
2310     (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
2311     New parameter to specify views.
2312     (PostGISDatabase.has_data): Also compare the views. New views
2313     parameter
2314     (PostGISDatabase.initdb): Create the views.
2315     (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
2316     view
2317    
2318     * test/test_postgis_db.py
2319     (TestPostGISShapestorePointFromViews): New. Test a
2320     PostGISShapeStore with a view
2321     (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
2322     the geometry_column explicitly to test whether that works
2323    
2324     2004-03-12 Bernhard Herzog <[email protected]>
2325    
2326 bh 2105 Final step for explicit id/geometry columns: Loading and saving
2327    
2328     * Resources/XML/thuban-1.1.dtd: New. Derived from thuban-1.0.dtd
2329     with the following changes:
2330     (dbshapesource): Two new attributes id_column and geometry_column
2331    
2332     * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
2333     (SessionSaver.write_session): Use the new namespace
2334     (SessionSaver.write_data_containers): Write the new dbshapesource
2335     parameters
2336    
2337     * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
2338     the new file format version
2339     (SessionLoader.start_dbshapesource): Handle the new db parameters
2340    
2341     * test/test_save.py: Update to the new dtd and namespace
2342     (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
2343     mock object to provide a working IDColumn method.
2344    
2345     * test/test_load_1_0.py: New. Copy of the test_load.py before
2346     today's changes but with the round-trip tests removed.
2347    
2348     * test/test_load_0_9.py: Update doc-string.
2349    
2350     * test/test_load.py: Update all .thuban files to the new dtd and
2351     namespace.
2352     (TestPostGISLayer.file_contents): Add the new dbshapesource
2353     paramters
2354    
2355 bh 2100 2004-03-11 Bernhard Herzog <[email protected]>
2356    
2357 bh 2103 Next step for explicit id/geometry columns: User interaction
2358    
2359     * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
2360     the dialog is constructed. Add combo boxes to select id and
2361     geometry column. Rename some instance variables.
2362     (ChooseDBTableDialog.GetTable): Return id and geometry column
2363     names
2364     (ChooseDBTableDialog.OnTableSelect): New. Event handler for
2365     selections in the table list
2366    
2367     * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
2368     and geometry_column
2369    
2370     * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
2371     parameters for id_column and geometry column of PostGISShapeStore
2372     here as well.
2373    
2374     * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
2375     (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
2376     (PostGISConnection.GeometryTables): Use a better query to
2377     determine which relations in the database might be usable for
2378     shapestores. Now supports views as well but is more PostgreSQL
2379     specific
2380     (PostGISConnection.table_columns): New. Somewhat experimental
2381     method to let the db dialogs provide lists of columns to users so
2382     that they can select id and geometry columns.
2383     (PostGISTable.__init__): The default value of the id_column
2384     parameter is now None it still means "gid" effectively, though.
2385     (PostGISTable.IDColumn): New introspection method to return a
2386     column object for the id column
2387     (PostGISShapeStore.GeometryColumn): New introspection method to
2388     return a column object for the geometry column
2389    
2390     * test/test_postgis_db.py
2391     (TestPostGISConnection.test_gis_tables_non_empty):
2392     Removed. Subsumed by the new:
2393     (TestPostGISConnection.test_gis_tables_with_views_and_tables):
2394     New. Tes the GeometryTables and table_columns methods with actual
2395     tables and views.
2396     (PointTests.test_id_column, PointTests.test_geometry_column):
2397     New. tests for the new methods.
2398     (TestPostGISShapestorePoint.setUp)
2399     (TestPostGISShapestorePointSRID.setUp)
2400     (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
2401     instance variables needed by the new tests
2402    
2403     2004-03-11 Bernhard Herzog <[email protected]>
2404    
2405 bh 2100 * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
2406     numbers given to ReadValue are ordinals.
2407    
2408     2004-03-11 Bernhard Herzog <[email protected]>
2409    
2410     Elimiate the requirement for PostGIS tables to have a column
2411     called "gid".
2412    
2413     * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
2414     id_column to specify which column to use to identify rows. Also
2415     new instance variables id_column and quoted_id_column
2416     (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
2417     (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
2418     (PostGISTable.SimpleQuery): Use the id column name provided to the
2419     constructor instead of "gid"
2420     (PostGISShapeStore.__init__): New parameter id_column analogously
2421     to PostGISTable.__init__. This parameter is simply passed through
2422     to the base class constructor
2423     (PostGISShapeStore._create_col_from_description): Fix typo in
2424     doc-string
2425     (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
2426     (PostGISShapeStore.ShapesInRegion): Use the id column name
2427     provided to the constructor instead of "gid"
2428    
2429     * test/postgissupport.py
2430     (PostgreSQLServer.get_default_static_data_db): New static table
2431     landmarks_point_id with an id column != "gid. Update the comments
2432     a bit.
2433     (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
2434     doc-
2435     (upload_shapefile): New parameter gid_column to use a name other
2436     than "gid" for the column to store the shape ids
2437    
2438     * test/test_postgis_db.py (TableTests): New. Mixin-class
2439     containing all tests previously in TestPostGISTable. The actual
2440     tests are the same but the code is a bit more configurable to
2441     allow for different id columns etc.
2442     (TestPostGISTable): Derive from TableTests now for the actual
2443     tests.
2444     (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
2445     except that it the landmarks_point_id table to test the id_column
2446     parameter
2447     (PointTests): Extend the doc-string
2448     (TestPostGISShapestorePointExplicitGIDColumn)
2449     (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
2450     from PointTests to test the explicit id_column parameter. One
2451     tests with the name of the column holding the shape ids, the other
2452     uses PostgreSQL's OID column. For the latter a number of methods
2453     have to be overwritten to make them independent of the actual id
2454     values.
2455    
2456 silke 2095 2004-03-08 Silke Reimer <[email protected]>
2457    
2458     Update debian directory:
2459    
2460     * debian/changelog: Added new version.
2461     * deiban/rules: Updated management of patches (with cbds)
2462     * debian/control: Added cbds to dependencies
2463     * debian/patches/*: New. Adds better support for patches of thuban in
2464     debian
2465     * debian/menu: Syntax of menu changed slightly
2466     * debian/setup.py.patch: removed because it has been moved to
2467     debian/patechs/setup.py.patch
2468    
2469    
2470 bh 2094 2004-02-26 Bernhard Herzog <[email protected]>
2471    
2472     Create the Doc/technotes directory for text files with information
2473     for developers
2474    
2475     * Doc/technotes/README: New. README for the technotes
2476    
2477     * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
2478     Thuban
2479    
2480     * Doc/technotes/release_process.txt: New. Used to be
2481     HOWTO-Release. Now slightly adapted to technote formatting style.
2482    
2483     * HOWTO-Release: Removed. It's contents are now in
2484     Doc/technotes/release_process.txt
2485    
2486 bh 2089 2004-02-25 Bernhard Herzog <[email protected]>
2487    
2488     * libraries/thuban/wxproj.cpp (get_wx_version): New. Return the
2489     version of wxWindows the module was compiled with so we can check
2490     that against the wxPython version.
2491    
2492     * Thuban/version.py (thuban_branch, thuban_release): New variables
2493     controlling which and how Thuban versions are shown. See the
2494     comments for details.
2495     (verify_versions): Also check that the wx version that wxproj is
2496     compiled against matches that of the wxPython we use at runtime
2497    
2498 bh 2080 2004-02-20 Bernhard Herzog <[email protected]>
2499    
2500 bh 2087 * Extensions/wms/wms.py (epsg_code_to_projection): Use
2501     get_system_proj_file to read the epsg projections. The old way
2502     depended on the current directory being the top Thuban directory.
2503    
2504     2004-02-20 Bernhard Herzog <[email protected]>
2505    
2506 bh 2085 * Extensions/svgexport/test/test_svgmapwriter.py
2507     (TestVirtualDC.test_clippath): Remove a debug print
2508    
2509     2004-02-20 Bernhard Herzog <[email protected]>
2510    
2511 bh 2083 * Extensions/svgexport/__init__.py: New. Turn
2512     Extensions/svgexport into a package.
2513    
2514     * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
2515     doc-string a bit. The doc-string must come first, otherwise it's
2516     not a doc-string. The __future__ import must be the first thing
2517     after the doc-string. Use only double quotes in doc-strings.
2518     Single quotes trip up emacs syntax highlighting if the text
2519     contains apostrophes.
2520    
2521     2004-02-20 Bernhard Herzog <[email protected]>
2522    
2523 bh 2080 * Extensions/svgexport/test/__init__.py,
2524     Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
2525     suite for svgexport
2526    
2527     * test/runtests.py (find_test_modules): New. Function with the
2528     module finding code from main.
2529     (main): Use find_test_modules to figure out the default test
2530     modules and take modules from Extensions.svgexport.test too.
2531    
2532 bh 2075 2004-02-19 Bernhard Herzog <[email protected]>
2533    
2534 bh 2077 * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
2535     the mainwindow has a reference to the map of the initial session.
2536     This fixes a bug introduced with the fix for RT#2245
2537    
2538     2004-02-19 Bernhard Herzog <[email protected]>
2539    
2540 bh 2075 * Extensions/svgexport/svgsaver.py,
2541     Extensions/svgexport/svgmapwriter.py,
2542     Extensions/svgexport/maplegend.py: Added again. This time in the
2543     correct place.
2544    
2545 bh 2070 2004-02-17 Bernhard Herzog <[email protected]>
2546    
2547 bh 2073 Fix for RT#2245
2548    
2549     * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
2550     instance variables before trying to create any windows. Creating
2551     windows can start an event loop if e.g. message boxes are popped
2552     up for some reason, and event handlers, especially EVT_UPDATE_UI
2553     may want to access things from the application.
2554     (ThubanApplication.maps_changed): The mainwindow may not have been
2555     created yet, so check whether it has been created before calling
2556     its methods
2557    
2558     * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
2559     have a map
2560    
2561     2004-02-17 Bernhard Herzog <[email protected]>
2562    
2563 bh 2070 * test/test_svgmapwriter.py, Extensions/svgsaver.py,
2564     Extensions/svgmapwriter.py, Extensions/maplegend.py,
2565     extensions/svgexport/svgsaver.py,
2566     extensions/svgexport/svgmapwriter.py,
2567     extensions/svgexport/maplegend.py: Removed. These files were in
2568     the wrong places or didn't work at all.
2569    
2570 bh 2067 2004-02-16 Bernhard Herzog <[email protected]>
2571    
2572 bh 2069 * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
2573     line
2574    
2575     2004-02-16 Bernhard Herzog <[email protected]>
2576    
2577 bh 2067 * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
2578    
2579 mrechtie 2064 2004-02-15 Markus Rechtien <[email protected]>
2580    
2581     * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
2582     to write a session to a file in SVG format.
2583     * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
2584     to write a SVG map of a session.
2585     * Extensions/svgexport/maplegend: New. Writes a basic maplegend
2586     in SVG format for the current session.
2587    
2588 bh 2062 2004-02-13 Bernhard Herzog <[email protected]>
2589    
2590     * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
2591     can't be created, return immediately after displaying the error
2592     message.
2593    
2594 bh 2060 2004-02-11 Bernhard Herzog <[email protected]>
2595    
2596     Handle postgis tables with more than one geometry column.
2597    
2598     * Thuban/Model/postgisdb.py
2599     (PostGISTable._fetch_table_information): Delegate the creation of
2600     column objects to a different method so that we can extend that in
2601     derived classes
2602     (PostGISTable._create_col_from_description): New. Column object
2603     creation part of _fetch_table_information
2604     (PostGISShapeStore._create_col_from_description): New. Extend
2605     inherited method to handle geometry columns
2606     (PostGISShapeStore.__init__): New parameter geometry_column to
2607     specify which geometry column to use. Optional but mandatory for
2608     tables with more than one geometry column
2609     (PostGISShapeStore._fetch_table_information): Also use the name of
2610     the geometry column when looking for the srid
2611     (PostGISShapeStore.ShapeType): Also use the name of the geometry
2612     column when looking for the shape type
2613    
2614     * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
2615     NonConnectionStore to changes in the PostGISShapeStore
2616    
2617     * test/test_postgis_db.py
2618     (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
2619     PostGISShapeStore with tables having two geometry columns.
2620    
2621 bh 2058 2004-02-10 Bernhard Herzog <[email protected]>
2622    
2623     Fix some postgis problems. What remains to be done is real
2624     handling of SRIDs as they affect how reprojection is done
2625    
2626     * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
2627     doc-string
2628     (PostGISShapeStore._fetch_table_information): New. Extend
2629     inherited method to retrieve srid
2630     (PostGISShapeStore.BoundingBox): Handle tables without data.
2631     extent yields NULL for those
2632     (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
2633    
2634     * test/test_postgis_db.py
2635     (TestPostGISSpecialCases.test_shapestore_empty_table): New test
2636     for the special case of a table without any data
2637     (TestPostGISShapestorePointSRID): New class with tests for a table
2638     that uses srids
2639     (PolygonTests): Fix a doc-string typo
2640    
2641     * test/postgissupport.py (PostGISDatabase.__init__): New parameter
2642     reference_systems with a specification of spacial reference
2643     systems to create in the new db.
2644     (PostgreSQLServer.new_postgis_db)
2645     (PostgreSQLServer.get_static_data_db): New parameter
2646     reference_systems to be passed through ultimately to
2647     PostGISDatabase. In new_postgis_db also check whether an existing
2648     db already has the right srids
2649     (PostgreSQLServer.get_default_static_data_db): Add srids and a
2650     table that uses srids
2651     (PostGISDatabase.initdb): Create the entries for the reference
2652     systems
2653     (PostGISDatabase.has_data): Add reference_systems parameter to
2654     check for those too
2655     (upload_shapefile): New parameter srid to create tables with a
2656     specific srid
2657    
2658 frank 2055 2004-02-06 Frank Koormann <[email protected]>
2659    
2660     * po/pt_BR.po: Fixed charset
2661    
2662 frank 2054 2004-02-05 Frank Koormann <[email protected]>
2663    
2664     * po/pt_BR.po: Fixed format string for error message, missing %s
2665     added (Thuban/UI/application.py:273)
2666    
2667 frank 2053 2004-02-03 Frank Koormann <[email protected]>
2668    
2669     First version of Portuguese (Brazilian) translation
2670    
2671     * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
2672     Brazilian Portuguese by Eduardo Patto Kanegae.
2673    
2674     * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
2675     translators.
2676    
2677    
2678 frank 2052 2004-01-22 Frank Koormann <[email protected]>
2679    
2680     * Doc/manual/thuban-manual.xml: Added section on installation of
2681     Thuban under Win32 systems. Fixed image path references in the postgis
2682     section. Some minor source formattings.
2683    
2684 frank 2051 2004-01-21 Frank Koormann <[email protected]>
2685    
2686     Make Thuban remember path selections (at least for one application run).
2687    
2688     * Thuban/UI/application.py (Application.OnInit): Initialize path as a
2689     attribute of application object. Path is a dictionary of
2690     strings, currently with the items "data" and "projection".
2691     (Application.SetPath): New, stores path for the specified item.
2692     (Application.Path): New, return path for the specified item.
2693    
2694     * Thuban/UI/mainwindow.py
2695     (MainWindow.OpenSession, MainWindow.SaveSessionAs,
2696     MainWindow.AddLayer, MainWindow.AddRasterLayer,
2697     MainWindow.TableOpen): Access "data" path information of the
2698     application.
2699    
2700     * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
2701     Access "projection" path information of the application.
2702    
2703 bh 2048 2004-01-05 Bernhard Herzog <[email protected]>
2704    
2705 bh 2050 * po/ru.po: Updated translations from Alex Shevlakov
2706    
2707     2004-01-05 Bernhard Herzog <[email protected]>
2708    
2709 bh 2048 * po/Makefile, po/README: Move the description of how to generate
2710     the translation statistics to the README.
2711    
2712 bh 2042 2003-12-23 Bernhard Herzog <[email protected]>
2713    
2714 bh 2045 * NEWS: Update for 1.0.0
2715    
2716     * po/it.po: Another update from Maurizio Napolitano
2717    
2718     2003-12-23 Bernhard Herzog <[email protected]>
2719    
2720 bh 2042 * po/it.po: Updated translation from Maurizio Napolitano
2721    
2722     2003-12-23 Bernhard Herzog <[email protected]>
2723    
2724     * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
2725     for translation
2726    
2727     * Thuban/UI/mainwindow.py (MainWindow.TableRename)
2728     (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
2729     strings for translation
2730    
2731     * po/de.po: Update with the newly marked strings.
2732    
2733 bh 2033 2003-12-22 Bernhard Herzog <[email protected]>
2734    
2735 bh 2039 * HOWTO-Release: Fix the places where version numbers have to be
2736     updated
2737    
2738     2003-12-22 Bernhard Herzog <[email protected]>
2739    
2740 bh 2037 * setup.py (setup call): 1.0.0, yeah!
2741    
2742     * Thuban/version.py (longversion): 1.0.0, yeah!
2743    
2744     * Thuban/Model/load.py (SessionLoader.__init__): Accept the
2745     1.0.0 namespace too
2746    
2747     * Thuban/Model/save.py (SessionSaver.write_session): Save with
2748     1.0.0 namespace
2749    
2750     * test/test_load.py (LoadSessionTest.dtd)
2751     (TestSingleLayer.file_contents)
2752     (TestNonAsciiColumnName.file_contents)
2753     (TestLayerVisibility.file_contents)
2754     (TestClassification.file_contents, TestLabels.file_contents)
2755     (TestLayerProjection.file_contents)
2756     (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2757     (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
2758     (TestPostGISLayerPassword.file_contents)
2759     (TestLoadError.file_contents, TestLoadError.test): Update for
2760     1.0.0 namespace
2761    
2762     * test/test_save.py (SaveSessionTest.dtd)
2763     (SaveSessionTest.testEmptySession)
2764     (SaveSessionTest.testSingleLayer)
2765     (SaveSessionTest.testLayerProjection)
2766     (SaveSessionTest.testRasterLayer)
2767     (SaveSessionTest.testClassifiedLayer)
2768     (SaveSessionTest.test_dbf_table)
2769     (SaveSessionTest.test_joined_table)
2770     (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
2771    
2772     2003-12-22 Bernhard Herzog <[email protected]>
2773    
2774 bh 2035 * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
2775     alignment flags are byte strings not unicode and that they have
2776     valid values
2777    
2778     * test/test_load.py (TestLabelLayer): New. Test loading (and
2779     indirectly saving) of maps with labels.
2780    
2781     2003-12-22 Bernhard Herzog <[email protected]>
2782    
2783 bh 2033 * Thuban/UI/tableview.py (TableGrid.OnDestroy)
2784     (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
2785     unsubscribe all subscribers.
2786     (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
2787     self.grid since it may already have been destroyed.
2788     Fixes RT #2256
2789    
2790 bh 2031 2003-12-19 Bernhard Herzog <[email protected]>
2791    
2792     * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
2793    
2794 bh 2028 2003-12-16 Bernhard Herzog <[email protected]>
2795 silke 2029
2796     * debian/bitmappath.patch, debian/setup.py.patch:
2797     added to ensure compliance with FHS for debian
2798     * debian/rules, debian/changelog:
2799     added patches in rules to ensure compliance with FHS for debian
2800 bh 2028
2801 silke 2029 2003-12-16 Bernhard Herzog <[email protected]>
2802    
2803 bh 2028 * po/Makefile (mo): Make the output a bit nicer so that it prints
2804     statistics about the translations. Add a comment how produce even
2805     nicer statistics with sed.
2806    
2807 frank 2026 2003-12-09 Frank Koormann <[email protected]>
2808    
2809     * Resources/Projections/defaults.proj:
2810     French projection sample with correct accents (UNICODE).
2811    
2812 bh 2025 2003-12-05 Bernhard Herzog <[email protected]>
2813    
2814     * MANIFEST.in: Add the devtools directory
2815    
2816     * setup.py (setup call): Use license instead of licence. This
2817     silences a deprecation warning on Python 2.3
2818    
2819 frank 2022 2003-12-05 Frank Koormann <[email protected]>
2820    
2821 frank 2023 Documentation synced with 1.0rc1
2822    
2823     * Doc/manual/thuban-manual.xml:
2824     Minor formatting changes and references to database layers .
2825     Introduction.Internationalization: New section on i18n.
2826     MapManagement.AddingandRemovingLayers: Added item on database layers.
2827     MapManagement.TheLegend: Added section and screenshot on popup menu.
2828     ProjectionManagement: Updated screenshot and sentence on EPSG.
2829     Appendix.SupportedDataSources: Added PostGIS.
2830     Appendix.WorkingwithPostGIS: New section.
2831    
2832     * Doc/manual/images/6_projection.png: Updated screenshot including
2833     EPSG checkboxes.
2834    
2835     * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
2836    
2837     * Doc/manual/images/app_postgis_add_layer.png,
2838     Doc/manual/images/app_postgis_db_add.png,
2839     Doc/manual/images/app_postgis_db_management.png:
2840     New screenshots focussing on database layers
2841    
2842     2003-12-05 Frank Koormann <[email protected]>
2843    
2844 frank 2022 * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
2845     write warning to stderr instead of rising a warning dialog
2846    
2847 bh 2016 2003-12-03 Bernhard Herzog <[email protected]>
2848    
2849 bh 2021 Fix for RT #2243
2850    
2851 bh 2020 * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
2852     New. Like has_selected_layer but for shape layers only
2853     (_has_selected_shape_layer): New. Like _has_selected_layer but for
2854     shape layers only
2855     (layer_show_table command, layer_jointable command): Use these
2856     commands should only be available for shape layers
2857    
2858     2003-12-03 Bernhard Herzog <[email protected]>
2859    
2860 bh 2018 * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
2861     publishers that are wx objects and may have been destroyed by wx
2862     already. Fixes RT #2242.
2863    
2864     2003-12-03 Bernhard Herzog <[email protected]>
2865    
2866 bh 2016 * po/ru.po: Updates from Alex Shevlakov
2867    
2868 silke 2013 2003-12-03 Silke Reimer <silkeintevation.de>
2869    
2870     * debian/control, debian/changelog: Added gdal-support to
2871     debian package, updated to new thuban version
2872    
2873    
2874 bh 2012 2003-12-03 Bernhard Herzog <[email protected]>
2875    
2876     * Thuban/Lib/version.py: New. Module for version number
2877     manipulations. The version of make_tuple here also deals better
2878     with more unusual version number strings, such as e.g.
2879     "1.2+cvs20031111"
2880    
2881     * Thuban/version.py (make_tuple): Removed. It's now in
2882     Thuban.Lib.version. Use that implementation instead.
2883    
2884     * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
2885    
2886 bh 2005 2003-12-02 Bernhard Herzog <[email protected]>
2887    
2888 bh 2010 * MANIFEST.in: Add debian files
2889    
2890 bh 2008 * setup.py (setup call): Add packages for the Extensions so that
2891     they're installed too
2892     (data_files): Add READMEs and sample data from some Extensions
2893    
2894     * NEWS: Add note about the extensions in binary packages
2895    
2896     2003-12-02 Bernhard Herzog <[email protected]>
2897    
2898 bh 2005 * Thuban/Model/save.py (SessionSaver.write_session): Save files
2899     with the thuban-1.0rc1
2900    
2901     * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
2902     thuban-1.0rc1 namespace too
2903    
2904     * test/test_save.py (SaveSessionTest.dtd)
2905     (SaveSessionTest.testEmptySession)
2906     (SaveSessionTest.testSingleLayer)
2907     (SaveSessionTest.testLayerProjection)
2908     (SaveSessionTest.testRasterLayer)
2909     (SaveSessionTest.testClassifiedLayer)
2910     (SaveSessionTest.test_dbf_table)
2911     (SaveSessionTest.test_joined_table)
2912     (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
2913     namespace
2914    
2915     * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
2916     namespace
2917     (TestSingleLayer.file_contents)
2918     (TestNonAsciiColumnName.file_contents)
2919     (TestLayerVisibility.file_contents)
2920     (TestClassification.file_contents, TestLabels.file_contents)
2921     (TestLayerProjection.file_contents)
2922     (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2923     (TestPostGISLayer.file_contents)
2924     (TestPostGISLayerPassword.file_contents)
2925     (TestLoadError.file_contents, TestLoadError.test): Update to
2926     thuban-1.0rc1 namespace
2927    
2928 bh 1996 2003-12-01 Bernhard Herzog <[email protected]>
2929    
2930 bh 2003 * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
2931     nt to better match Intevation's current w32 setup
2932    
2933 bh 2001 * HOWTO-Release: Add note about updating MANIFEST.in
2934    
2935     * MANIFEST.in: Add the Extensions
2936    
2937 bh 1998 * NEWS: Update for 1.0rc1
2938    
2939     2003-12-01 Bernhard Herzog <[email protected]>
2940    
2941 bh 1996 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
2942     cards for the dialog so that shapefiles ending in all uppercase
2943     SHP are listed too
2944    
2945 bh 1988 2003-11-28 Bernhard Herzog <[email protected]>
2946    
2947 bh 1996 * Thuban/version.py (longversion): Update to 1.0rc1
2948    
2949     * setup.py (setup call): Update version to 1.0rc1. Use the
2950     [email protected] email address as author email instead of my
2951     personal one.
2952    
2953     2003-11-28 Bernhard Herzog <[email protected]>
2954    
2955 bh 1992 * po/de.po: Update german translation.
2956    
2957     2003-11-28 Bernhard Herzog <[email protected]>
2958    
2959 bh 1990 Unify the filenames stored in .thuban files so that the .thuban
2960     files are more platform independend
2961    
2962     * Thuban/Model/save.py (unify_filename): New. Unify filenames so
2963     that they can be used on both windows and unix
2964     (SessionSaver.prepare_filename): New. Handle all filename
2965     transformations for filenames stored in the thuban file
2966     (SessionSaver.write_data_containers, SessionSaver.write_layer):
2967     Use prepare_filename
2968    
2969     * test/test_save.py (SaveSessionTest.testSingleLayer)
2970     (SaveSessionTest.testLayerProjection)
2971     (SaveSessionTest.testRasterLayer)
2972     (SaveSessionTest.testClassifiedLayer)
2973     (SaveSessionTest.test_dbf_table)
2974     (SaveSessionTest.test_joined_table): Filenames are always stored
2975     with slashes on all currently supported platforms so adapt all
2976     tests to this
2977    
2978     * test/test_load.py (LoadSessionTest.filenames): With the new
2979     filename scheme the filenames in the tests should be
2980     understandable on all currently supported platforms so we turn
2981     this into an empty list because we don't have to normalize them
2982     anymore
2983    
2984     2003-11-28 Bernhard Herzog <[email protected]>
2985    
2986 bh 1988 * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
2987     Add the ellipsoid to the projection since some Proj versions
2988     complain if it's missing.
2989    
2990 bh 1984 2003-11-27 Bernhard Herzog <[email protected]>
2991    
2992     Corect some bounding box projection problems
2993    
2994     * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
2995     version of ForwardBBox
2996     (Projection._transform_bbox): New. common implementation of
2997     ForwardBBox and InverseBBox
2998     (Projection.ForwardBBox): Use _transform_bbox.
2999    
3000     * test/test_proj.py (TestProjection.test): Add test for
3001     InverseBBox
3002    
3003     * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
3004     (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
3005     new InverseBBox method to determine the unprojected bounding box
3006     (Layer.ShapesInRegion): Use the ForwardBBox method to project the
3007     bbox.
3008    
3009     * test/test_layer.py (TestLayer.test_point_layer_with_projection):
3010     Removed.
3011     (TestLayer.test_arc_layer_with_projection): New. This test is
3012     better able to test whether bounding boxes are projected correctly
3013     than test_point_layer_with_projection
3014    
3015 bh 1986 * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
3016     InverseBBox to unproject bboxes
3017    
3018 bh 1975 2003-11-25 Bernhard Herzog <[email protected]>
3019    
3020 bh 1981 * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
3021     source code.
3022    
3023     2003-11-25 Bernhard Herzog <[email protected]>
3024    
3025 bh 1979 * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
3026     there for backwards compatibility and all code relying on that
3027     should have been updated by now.
3028    
3029     2003-11-25 Bernhard Herzog <[email protected]>
3030    
3031 bh 1977 * test/test_load.py (TestClassification.test): Add the missing
3032     round trip test.
3033     (TestClassification.file_contents): Update to the newest file
3034     format
3035    
3036     2003-11-25 Bernhard Herzog <[email protected]>
3037    
3038 bh 1975 Add very experimental (and possibly dangerous) extension to draw
3039     polygons:
3040    
3041     * Extensions/drawshape/README: New. Brief installation
3042     instructions
3043    
3044     * Extensions/drawshape/drawshape.py: New. Implementation of the
3045     drawshape extensions
3046    
3047     * Extensions/drawshape/patch.diff: Patch to apply before the
3048     extension can be used.
3049    
3050 bh 1971 2003-11-24 Bernhard Herzog <[email protected]>
3051    
3052 bh 1973 * Thuban/Model/data.py (ShapefileStore._open_shapefile)
3053     (ShapefileStore.__init__): Factor opening the shapefile into a
3054     separate method (the new _open_shapefile). This makes the code a
3055     bit more readable but the real reason is that it makes some evil
3056     hacks easier. :-)
3057    
3058     2003-11-24 Bernhard Herzog <[email protected]>
3059    
3060 bh 1971 * Thuban/Model/load.py (SessionLoader.check_attrs): If no
3061     converter is specified for an attribute assume it's a string
3062     containing only Latin1 characters. Update doc-string accordingly.
3063     This change should fix many places where unicode objects might
3064     accidentally enter Thuban.
3065    
3066     * test/test_load.py (TestNonAsciiColumnName): New test to check
3067     what happens with column names in DBF files that contain non-ascii
3068     characters
3069    
3070 bh 1969 2003-11-21 Bernhard Herzog <[email protected]>
3071    
3072     Enable the experimental attribute editing again and introduce a
3073     command line switch to actually activate it
3074    
3075     * Thuban/UI/main.py (options): New. Container for options set on
3076     the commmand line
3077     (main): Add the --enable-attribute-editing flag.
3078    
3079     * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
3080     editing is enabled use the grid ctrl which allows editing of the
3081     values
3082    
3083     * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
3084     New. Just delegate this to the underlying table.
3085    
3086 bh 1967 2003-11-20 Bernhard Herzog <[email protected]>
3087    
3088     * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
3089     Skip this test if run under non-posix systems since it only works
3090     there
3091    
3092 bh 1960 2003-11-19 Bernhard Herzog <[email protected]>
3093    
3094 bh 1965 * Thuban/Model/resource.py: Rework the way gdal support is
3095     determined so that we can give a reason in the about why gdal is
3096     not supported.
3097     (gdal_support_status): New. Variable holding a string with the
3098     reason for no gdal support
3099    
3100     * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
3101     not supported to the message
3102    
3103     2003-11-19 Bernhard Herzog <[email protected]>
3104    
3105 bh 1963 Remove the old table interface and its test cases
3106    
3107     * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
3108     (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
3109     anymore
3110    
3111     * Thuban/Model/transientdb.py (TransientTableBase)
3112     (AutoTransientTable): Do not derive from OldTableInterfaceMixin
3113     anymore
3114    
3115     * test/test_table.py: Removed since the old interface it tests is
3116     gone.
3117    
3118     * test/runtests.py (main): The old table interface is gone and
3119     with it the deprecation warnings so remove the code that turns
3120     these warnings into errors
3121    
3122     2003-11-19 Bernhard Herzog <[email protected]>
3123    
3124 bh 1960 * test/test_table.py: Revert to revision 1.5 again. Changing the
3125     tests to use the new table interface is completely wrong since the
3126     whole purpose of the tests in this module is to test the old
3127     interface.
3128    
3129 bh 1954 2003-11-18 Bernhard Herzog <[email protected]>
3130    
3131 bh 1958 * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
3132     New. Test whether the connection matches a set of connection
3133     parameters
3134    
3135     * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
3136     (DBFrame.OnAdd): Use the new MatchesParameters method when looking
3137     for existing connections with the same parameters and break out of
3138     the loop correctly.
3139    
3140     * test/test_postgis_db.py (TestBriefDescription)
3141     (TestPostGISSimple.test_brief_description): Rename
3142     TestBriefDescription to TestPostGISSimple and the test method to
3143     test_brief_description so that we can add more test methods.
3144     (TestPostGISSimple.test_matches_parameters): New. Test the new
3145     MatchesParameters method
3146    
3147     2003-11-18 Bernhard Herzog <[email protected]>
3148    
3149 bh 1960 * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
3150 bh 1954 _was_destroyed, to indicate whether an publisher instance has
3151     already been destroyed.
3152     (Publisher.Unsubscribe): Only disconnect if the publisher has not
3153     been destroyed yet.
3154     (Publisher.Destroy): Set the _was_destroyed flag to true.
3155    
3156     * test/test_connector.py
3157     (TestPublisher.test_unsubscribe_after_destroy): New. Test that
3158     calling Unsubscribe after Destroy doesn't raise an exception
3159    
3160 bh 1951 2003-11-14 Bernhard Herzog <[email protected]>
3161    
3162     * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
3163     typo in doc-string
3164    
3165 bh 1949 2003-11-13 Bernhard Herzog <[email protected]>
3166    
3167     Quote table and column names properly for postgis.
3168    
3169     * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
3170     quote an identifier for use in an sql statement
3171     (PostGISColumn.__init__): Add the quoted_name attribute
3172     (PostGISTable.__init__): New instance variable quoted_tablename
3173     (PostGISTable._fetch_table_information): Use the quoted table
3174     name. New isntance variable quoted_geo_col with a quoted version
3175     of geometry_column
3176     (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
3177     (PostGISTable.RowOrdinalToId): Use the quoted table name
3178     (PostGISTable.ReadValue, PostGISTable.ValueRange)
3179     (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
3180     (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
3181     (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
3182     Use quoted table and column names
3183    
3184     * test/test_postgis_db.py (TestPostGISSpecialCases)
3185     (TestPostGISIgnoredColumns): Rename the class to
3186     TestPostGISSpecialCases because that better describes the new
3187     cases
3188     (TestPostGISSpecialCases.test_unsupported_types)
3189     (TestPostGISSpecialCases.test): Rename the method to
3190     test_unsupported_types because we need a more descriptive name now
3191     that there are more methods
3192     (TestPostGISSpecialCases.test_table_name_quoting)
3193     (TestPostGISSpecialCases.test_column_name_quoting)
3194     (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
3195     cases to test quoting of table and column names in PostGISTable
3196     and PostGISShapeStore
3197    
3198     * test/postgissupport.py
3199     (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
3200     AddGeometryColumn desn't support table or column names with sapces
3201     or double quotes
3202    
3203 jan 1945 2003-11-12 Jan-Oliver Wagner <[email protected]>
3204    
3205     * Extensions/wms/__init__.py: New: Init to make this
3206     directory a package.
3207    
3208     * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
3209    
3210 bh 1932 2003-11-11 Bernhard Herzog <[email protected]>
3211    
3212 bh 1942 * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
3213     Constant for the file woth deprecated epsg projections
3214     (get_system_proj_file): Update doc-string
3215    
3216     * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
3217     above the EPS widgets, introduce a check box for the deprecated
3218     eps projections and a label for the epsg widgets
3219     (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
3220     too
3221    
3222     2003-11-11 Bernhard Herzog <[email protected]>
3223    
3224 bh 1939 Avoid warnings when run under Python 2.3
3225    
3226     * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
3227     (BaseRenderer.draw_label_layer): Coordinates must be ints.
3228    
3229     * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
3230     real method so that we can convert to int.
3231     (MapRenderer.label_font): The font size mist be an int.
3232    
3233     * Thuban/UI/common.py (Color2wxColour): The color values must be
3234     ints. Also, remove the unnecessary asserts.
3235    
3236     * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
3237     (TestUnicodeStrings.test): Python source code should not contain
3238     non-ascii characters unless an encoding is specified in the file.
3239     Therefore use \x escapes in the string literals for non-ascii
3240     characters.
3241    
3242     2003-11-11 Bernhard Herzog <[email protected]>
3243    
3244 bh 1934 * Thuban/Model/resource.py (get_system_proj_file): Add a filename
3245     parameter so that this function can be used for all proj files in
3246     Resource/Projections
3247     (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
3248     get_system_proj_file
3249    
3250     * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
3251     ProjFile self.__sysProjFile use a dictionary of system ProjFile
3252     objects self._sys_proj_files
3253     (ProjFrame.build_dialog): Adapt to the new changes in the
3254     ProjectionList constructor. Add a check button to toggle whether
3255     EPSG projections are shown
3256     (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
3257     events.
3258     (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
3259     the busy cursor if the files have not yet been loaded by the
3260     dialog.
3261     (ProjFrame.load_system_proj): Add a parameter for the name of the
3262     proj file. Maintain the dictionary of system projections
3263     self._sys_proj_files
3264    
3265     * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
3266     user_projs parameters into one parameter proj_files which is a
3267     list of proj files.
3268     (ProjectionList._subscribe_proj_files)
3269     (ProjectionList._unsubscribe_proj_files): New. Move
3270     subscription/unsubscription of projfile messages to separate
3271     methods
3272     (ProjectionList.Destroy): The unsubscribe is now done in
3273     _unsubscribe_proj_files
3274     (ProjectionList.update_projections): We now have a list of proj
3275     file objects
3276     (ProjectionList.SetProjFiles): New method to set a new list of
3277     proj file objects
3278    
3279     * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
3280     Specify explicitly which system proj file to load.
3281    
3282     2003-11-11 Bernhard Herzog <[email protected]>
3283    
3284 bh 1932 * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
3285     instance variables to cut cyclic references. The GC would have
3286     collected the loader eventually but it can happen that it doesn't
3287     run at all until thuban is closed (2.3 but not 2.2 tries a bit
3288     harder and forces a collection when the interpreter terminates)
3289     (load_session): Call the handler's Destroy method to make sure
3290     that it gets garbage collected early. Otherwise it will be
3291     collected very late if at all and it holds some references to e.g.
3292     shapestores and the session which can lead to leaks (of e.g. the
3293     temporary files)
3294    
3295     * test/test_load.py (TestSingleLayer.test_leak): New. test for the
3296     resource leak in load_session
3297    
3298 bh 1929 2003-11-10 Bernhard Herzog <[email protected]>
3299    
3300     * Thuban/UI/baserenderer.py: Add a way to specify how layers in
3301     extensions are to be rendered.
3302     (_renderer_extensions): New. List with renderer for layers in
3303     extensions
3304     (add_renderer_extension): New. Add a renderer extension
3305     (init_renderer_extensions): New. Init the renderer extensions
3306     (BaseRenderer.render_map_incrementally): Search
3307     _renderer_extensions for how to draw unknown layer types
3308     (BaseRenderer.draw_raster_data): Add format parameter so that
3309     formats other than BMP can be drawn
3310     (BaseRenderer.draw_raster_layer): Pass an explicit format to
3311     draw_raster_data
3312    
3313     * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
3314     strings of the format parameter of draw_raster_data method to wx
3315     constants
3316     (MapRenderer.draw_raster_data): Add the format parameter and use
3317     raster_format_map to map it to the right wxwindows constant for
3318     wxImageFromStream
3319    
3320     * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
3321     the format parameter and record it
3322     (TestBaseRenderer.test_raster_no_projection): check the format
3323     paramter of the draw_raster_data method
3324     (TestBaseRenderer.test_renderer_extension): New. Test the renderer
3325     extension facility
3326    
3327 bh 1925 2003-11-07 Bernhard Herzog <[email protected]>
3328    
3329     Tweak the usage of the sqlite database to make common use cases
3330     more responsive. In most cases copying the data to the sqlite
3331     database takes so long that using sqlite doesn't have enough
3332     advantages.
3333    
3334     * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
3335     comments about performance and query the min and max in separate
3336     statements because only that way will indexes be used.
3337     (TransientTableBase.UniqueValues): Add some comments about
3338     performance.
3339     (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
3340     Do not copy the data to the transient DB but use the transient
3341     copy if it exists. See the new comments for the performance trade
3342     offs
3343    
3344     * test/test_transientdb.py
3345     (TestTransientTable.test_auto_transient_table): Make sure that the
3346     data is copied to the transient database at some point.
3347    
3348 bh 1913 2003-11-03 Bernhard Herzog <[email protected]>
3349    
3350 bh 1922 * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
3351     globals to locals so that it's a bit faster
3352    
3353     2003-11-03 Bernhard Herzog <[email protected]>
3354    
3355 bh 1920 * Thuban/UI/baserenderer.py
3356     (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
3357     method. ReadValue is faster than ReadRowAsDict since it only reads
3358     one cell especially now that the dbf file objects actually
3359     implement it.
3360    
3361     * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
3362     read_attribute method of the dbf objects
3363    
3364     2003-11-03 Bernhard Herzog <[email protected]>
3365    
3366 bh 1916 * Extensions/profiling/profiling.py (popup_dialog_box): New config
3367     variable to indicate whether the result should be shown in a
3368     dialog box
3369     (profile_screen_renderer, time_screen_renderer): Only show a
3370     dialog box if popup_dialog_box is true.
3371     (profile_screen_renderer): Flush stdout after the printing the
3372     first part of the "profiling..." message
3373    
3374     * Thuban/UI/baserenderer.py
3375     (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
3376     brushes for the groups so that they're not created over and over
3377     again
3378    
3379 bh 1913 * Thuban/Model/classification.py (Classification.__getattr__)
3380     (Classification._compile_classification)
3381     (Classification._clear_compiled_classification): New. Methods to
3382     manage a 'compiled' representation of the classification groups
3383     which is created on demand
3384     (Classification.InsertGroup, Classification.RemoveGroup)
3385     (Classification.ReplaceGroup): reset the compiled representation
3386     (Classification.FindGroup): Use the compiled representation to
3387     find the matching group
3388     (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
3389    
3390 bh 1904 2003-10-31 Bernhard Herzog <[email protected]>
3391    
3392 bh 1911 * Thuban/Model/classification.py (Classification.SetDefaultGroup):
3393     Send a CLASS_CHANGED message
3394     (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
3395     not return the removed group since it wasn't used.
3396    
3397     * test/test_classification.py
3398     (TestClassification.test_set_default_group): New. Test the
3399     SetDefaultGroup method
3400     (TestClassification.test_insert_group): New. Test the InsertGroup
3401     method
3402     (TestClassification.test_remove_group): New. Test the RemoveGroup
3403     method
3404     (TestClassification.test_replace_group): New. Test the
3405     ReplaceGroup method
3406    
3407     2003-10-31 Bernhard Herzog <[email protected]>
3408    
3409 bh 1908 * test/test_classification.py (TestClassification.setUp):
3410     Subscribe to the CLASS_CHANGED messages
3411     (TestClassification.tearDown): New. Destroy the classification
3412     properly
3413     (TestClassification.test_defaults): Add tests for the default line
3414     width and whether no messages were sent yet
3415     (TestClassification.test_set_default_properties): Add tests for
3416     messages and setting the default line width
3417     (TestClassification.test_add_singleton)
3418     (TestClassification.test_add_range)
3419     (TestClassification.test_multiple_groups): Add tests for messages
3420    
3421     2003-10-31 Bernhard Herzog <[email protected]>
3422    
3423 bh 1906 Some more refactoring in preparation for new tests:
3424    
3425     * test/test_classification.py (TestClassification.setUp): New.
3426     Instantiate the classification here. Update the test methods
3427     accordingly.
3428     (TestClassification.test_multiple_groups): Make sure that the two
3429     singletons matching 1 are considered different.
3430    
3431     2003-10-31 Bernhard Herzog <[email protected]>
3432    
3433 bh 1904 * test/test_classification.py (red, green, blue): New. These
3434     constants were used in several cases. Update the relevant methods.
3435     (TestClassification.test_defaults)
3436     (TestClassification.test_set_default_properties)
3437     (TestClassification.test_add_singleton)
3438     (TestClassification.test_add_range)
3439     (TestClassification.test_multiple_groups)
3440     (TestClassification.test_deepcopy): New. These were formerly all
3441     part of the single method test.
3442     (TestClassification.test_deepcopy): Removed.
3443     (TestClassIterator): Removed. The test case is now a method of
3444     TestClassification since it tests part of the public interface of
3445     Classification
3446     (TestClassification.test_iterator): New. Used to be
3447     TestClassIterator effectively
3448    
3449 jan 1902 2003-10-31 Jan-Oliver Wagner <[email protected]>
3450    
3451     GUIfied the functions of the profiling extension.
3452    
3453     * /Extensions/profiling/__init__.py: New: Init to make this
3454     directory a package.
3455    
3456     * Extensions/profiling/profiling.py: Moved menu entries to
3457     the Extensions menu. Applied _() for strings.
3458     (profile_screen_renderer): Catch the detailed printout and present
3459     it in a dialog.
3460 bh 1904 (time_screen_renderer): Raise a dialog to present the result instead
3461 jan 1902 of printing it to stdout.
3462    
3463 bh 1897 2003-10-31 Bernhard Herzog <[email protected]>
3464    
3465 bh 1899 * test/test_classification.py (TestClassGroupProperties)
3466     (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
3467     (TestClassGroupSingleton, TestClassIterator, TestClassification):
3468     Split TestClassification into several classes, one for each class
3469     being tested. TestClassification itself now only tests
3470     Classification. This split makes changes to the tests a bit easier
3471    
3472     2003-10-31 Bernhard Herzog <[email protected]>
3473    
3474 bh 1897 * Extensions/profiling/profiling.py: New. Extension to measure
3475     Thuban performance
3476    
3477 frank 1895 2003-10-31 Frank Koormann <[email protected]>
3478    
3479     Added two items to legend popup menu: Remove Layer and Show Layer Table
3480    
3481     * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
3482     LegendPanel._OnShowTable): New event handlers, call the corresponding
3483     mainwindow methods.
3484     (LegendTree._OnRightClick): Added items to popup menu.
3485    
3486 bh 1894 2003-10-30 Bernhard Herzog <[email protected]>
3487    
3488     * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
3489     EVT_WINDOW_DESTROY
3490     (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
3491     nothing but is convenient for the derived classes.
3492    
3493     * Thuban/UI/tableview.py
3494     (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
3495     Unsubscribe the messages here not in OnClose because that might
3496     get called multiple times. Fixes RT #2196
3497     (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
3498     anymore.
3499    
3500     * README: Update the minimum requirement for wxPython. Since we
3501     now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
3502     the version in which that was introduced for all platforms
3503    
3504 frank 1890 2003-10-30 Frank Koormann <[email protected]>
3505    
3506     * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
3507     the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
3508     frame.
3509    
3510 jan 1889 2003-10-30 Jan-Oliver Wagner <[email protected]>
3511    
3512     Improved APR import extension, added further EPSG definitions
3513     and some cleanup regarding string class.
3514    
3515     * test/test_proj.py (TestProjection.test_get_projection_units_geo):
3516     Added test for alias 'longlat'.
3517    
3518     * Resources/Projections/epsg-deprecated.proj: New. Contains
3519     deprecated EPSG definitions.
3520    
3521     * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
3522     the variable names for objects.
3523    
3524     * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
3525     Copied from importAPR and provided with documentation.
3526    
3527     * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
3528     Moved to apr.py.
3529     (APR_View): Added object ref 'ITheme'.
3530    
3531     * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
3532     split function by corresponding use of the string class method.
3533    
3534     * Thuban/Model/xmlwriter.py: Replaced string replace function by
3535     corresponding string method.
3536    
3537 bh 1880 2003-10-29 Bernhard Herzog <[email protected]>
3538    
3539     * Thuban/UI/baserenderer.py
3540     (BaseRenderer.draw_shape_layer_incrementally): Speed up the
3541     special case of a classification that only has the default group
3542    
3543 bh 1868 2003-10-27 Bernhard Herzog <[email protected]>
3544    
3545 bh 1878 * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
3546    
3547 bh 1876 * po/de.po: Update.
3548    
3549     * Thuban/UI/application.py
3550     (ThubanApplication.ShowExceptionDialog): Handle translation of the
3551     dialog message properly
3552    
3553     2003-10-27 Bernhard Herzog <[email protected]>
3554    
3555 bh 1873 Rework how localization works so that we use wx's translation
3556     functions when running Thuban as a normal application but not when
3557     we don't need any UI, such as in the test suite. See the comment
3558     in Thuban/__init__.py for details
3559    
3560     * Thuban/__init__.py (_): Add one level of indirection to make the
3561     translation handling more flexible and to make it possible to use
3562     either wx's translation services or not.
3563     (gettext_identity, translation_function_installed)
3564     (install_translation_function): New function to help with this
3565    
3566     * Thuban/UI/__init__.py: Install the wx specific translation
3567     function if it's OK to do that
3568    
3569     * test/support.py (initthuban): Install a dummy translation
3570     function so that importing Thuban.UI doesn't install a wx specific
3571     one for which would need to import wxPython
3572    
3573     2003-10-27 Bernhard Herzog <[email protected]>
3574    
3575 bh 1870 * HOWTO-Release: Source archives should be created first and the
3576     binary packages should be created from the source archives.
3577     There's an official debian package now so there's no need to test
3578     the rpm on debian anymore
3579    
3580     2003-10-27 Bernhard Herzog <[email protected]>
3581    
3582 bh 1868 Several rendering changes:
3583    
3584     - Render the selection into a separate bitmap so that only that
3585     bitmap needs to be redrawn when the selection changes
3586    
3587     - Render incrementally showing previews and allowing interaction
3588     before rendering is complete
3589    
3590     - Update the renderer interface a bit. Most parameters of
3591     RenderMap are now parameters of the constructor
3592    
3593     * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
3594     and the update region as parameters. Update the doc-string
3595     (BaseRenderer.render_map_incrementally): New. Generator function
3596     to renders the map incrementally
3597     (BaseRenderer.render_map): Remove the map argument (it's now in
3598     the constructor) and simply iterate over the
3599     render_map_incrementally generator to draw the map.
3600     (BaseRenderer.draw_shape_layer_incrementally)
3601     (BaseRenderer.draw_shape_layer): Renamed to
3602     draw_shape_layer_incrementally and changed into a generator that
3603     yields True every 500 shapes. Used by render_map_incrementally to
3604     render shape layers incrementally
3605    
3606     * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
3607     map and region parameters which are now in the constructor
3608     (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
3609     the inherited render_map_incrementally.
3610     (BaseRenderer.draw_shape_layer): Removed.
3611     (ScreenRenderer.draw_selection_incrementally): New. The selection
3612     drawing part of the removed draw_shape_layer as a generator
3613     (ScreenRenderer.layer_shapes): Update because of the region
3614     parameter change
3615     (ExportRenderer.__init__): New. Extend the inherited constructor
3616     with the destination region for the drawing
3617     (ExportRenderer.RenderMap): Removed the map and region parameters
3618     which are now in the constructor
3619    
3620     * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
3621     bitmap suitable for a preview in a tool
3622     (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
3623     bitmap
3624     (MapPrintout.draw_on_dc): Adapt to new renderer interface
3625     (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
3626     exists
3627     (MapCanvas.OnIdle): Update the logic to deal with incremental
3628     rendering and the selection bitmap
3629     (MapCanvas._do_redraw): Handle the instantiation of the render
3630     iterator and the redraws during rendering
3631     (MapCanvas._render_iterator): New. Generator to incrementally
3632     redraw both bitmaps
3633     (MapCanvas.Export): Adapt to new renderer interface.
3634     (MapCanvas.full_redraw): Reset the selection bitmap and the
3635     renderer iterator too
3636     (MapCanvas.redraw_selection): New. Force a redraw of the selection
3637     bitmap
3638     (MapCanvas.shape_selected): Only redraw the selection bitmap
3639    
3640     * test/test_baserenderer.py
3641     (TestBaseRenderer.test_polygon_no_projection)
3642     (TestBaseRenderer.test_raster_no_projection)
3643     (TestBaseRenderer.test_point_map_projection)
3644     (TestBaseRenderer.test_point_layer_and_map_projection)
3645     (TestBaseRenderer.test_point_layer_projection)
3646     (TestBaseRenderer.test_point_with_classification): Adapt to new
3647     renderer interface
3648    
3649 bh 1865 2003-10-24 Bernhard Herzog <[email protected]>
3650    
3651     * libraries/thuban/wxproj.cpp (draw_polygon_shape)
3652     (point_in_polygon_shape, shape_centroid): Raise an exception if
3653     the shape can't be read. Previously invalid shape ids would lead
3654     to a segfault.
3655    
3656     * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
3657     New. test whether an exception is raised for invalid shape ids
3658    
3659 jan 1857 2003-10-24 Jan-Oliver Wagner <[email protected]>
3660    
3661 jan 1862 * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
3662     as alias for 'latlong'.
3663    
3664     * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
3665     as alias for 'latlong'.
3666    
3667     2003-10-24 Jan-Oliver Wagner <[email protected]>
3668    
3669 jan 1859 * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
3670     the projection even for the UnknownPanel.
3671     (UnknownProjPanel.__init__): Define the text and create the textctrl
3672     widget.
3673     (UnknownProjPanel._DoLayout): Replaced static text widget by the
3674     textctrl created in __init__.
3675     (UnknownProjPanel.SetProjection): Set the text for the text ctrl
3676     including the parameters of the projection.
3677    
3678     2003-10-24 Jan-Oliver Wagner <[email protected]>
3679    
3680 jan 1857 * Resources/Projections/epsg.proj: New. This is a list of
3681     EPSG codes with parameters for proj. The list has been
3682     generated using devtools/create_epsg.py based on the
3683     file nad/epsg of the proj 4.4.7 package. Four projection
3684     definitions have been deleted as they are not accepted by proj:
3685     "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
3686     and "HD72 / EOV".
3687    
3688 bh 1855 2003-10-22 Bernhard Herzog <[email protected]>
3689    
3690     Some more tweaks to the projection dialog which should fix RT
3691     #1886.
3692    
3693     * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
3694     the ProjFile's messages and call the base class methods correctly
3695     (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
3696     flag on the newly selected item too. Otherwise some other item is
3697     focused and the first time the focus is moved with the keyboard
3698     the selection moves in unexpected ways.
3699    
3700     * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
3701     focus on the OK button, only on the projection list. That way the
3702     list really has the focus initially
3703     (ProjFrame.OnClose): Call the projection list's Destroy method to
3704     make it unsubscribe all messages
3705    
3706 bh 1840 2003-10-21 Bernhard Herzog <[email protected]>
3707    
3708 bh 1852 Rework the projection dialog to fix a few bugs, including RT 2166
3709     and most of 2168
3710    
3711     * Thuban/UI/projlist.py: New. The class ProjectionList is a
3712     special wxListCtrl to show a list of projections in a more MVC
3713     fashion
3714    
3715     * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
3716     throughout the class. The main change is to use the ProjectionList
3717     class instead of a normal wxListBox. Also, add an explicit
3718     "Unknown" projection to the projection choice control.
3719     (ProjPanel.__init__): Add an "unknown" ellipsoid
3720     (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
3721     instantiation of the panel's controls to make the tab-order more
3722     natural
3723    
3724     2003-10-21 Bernhard Herzog <[email protected]>
3725    
3726 bh 1849 * test/test_load.py (TestSingleLayer.file_contents)
3727     (TestSingleLayer.test): Add non-ascii characters to the titles of
3728     session, map and layer. This is effectively a port of the
3729     TestUnicodeStrings test in test_load_0_8.py which for some reason
3730     was only added there.
3731    
3732     * test/test_load_0_9.py (TestSingleLayer.file_contents)
3733     (TestSingleLayer.test): Same as in test_load.py: add non-ascii
3734     characters to the titles of session, map and layer,.
3735    
3736     2003-10-21 Bernhard Herzog <[email protected]>
3737    
3738 bh 1847 Add EPSG projection handling to .thuban files
3739    
3740     * test/test_save.py (SaveSessionTest.dtd)
3741     (SaveSessionTest.testEmptySession)
3742     (SaveSessionTest.testLayerProjection)
3743     (SaveSessionTest.testRasterLayer)
3744     (SaveSessionTest.testClassifiedLayer)
3745     (SaveSessionTest.test_dbf_table)
3746     (SaveSessionTest.test_joined_table)
3747     (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
3748     (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
3749     use a and epsg projection to test saving them
3750    
3751     * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
3752     namespace
3753     (TestLayerVisibility.file_contents, TestLabels.file_contents)
3754     (TestLayerProjection.file_contents)
3755     (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
3756     (TestPostGISLayer.file_contents)
3757     (TestPostGISLayerPassword.file_contents)
3758     (TestLoadError.file_contents, TestLoadError.test): Update to use
3759     1.0-dev namespace
3760     (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
3761     use 1.0-dev namespace and use an EPSG projection to test whether
3762     loading it works
3763    
3764     * test/test_load_0_9.py: New. Effectively a copy of test_load.py
3765     as of Thuban 0.9. These are now tests to determine whether Thuban
3766     can still read files generated by Thuban 0.9
3767    
3768     * Thuban/Model/save.py (SessionSaver.write)
3769     (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
3770     namespace
3771     (SessionSaver.write_projection): Write the projection's epsg
3772     attribute
3773    
3774     * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
3775     thuban-1.0-dev.dtd namespace
3776     (SessionLoader.check_attrs): Allow a callable object as conversion
3777     too
3778     (SessionLoader.start_projection, SessionLoader.end_projection)
3779     (SessionLoader.start_parameter): Handle the epsg attribute and
3780     rename a few instance variables to lower case
3781    
3782     * Resources/XML/thuban-1.0.dtd: New. Only difference to
3783     thuban-0.9.dtd is the epsg attribute for projections.
3784    
3785     2003-10-21 Bernhard Herzog <[email protected]>
3786    
3787 bh 1840 * test/runtests.py (main): Let the user specify which tests to run
3788     on the command line
3789    
3790     * test/support.py (ThubanTestResult.getDescription): Override to
3791     give a better short description. The description can be used as a
3792     parameter to run_tests to run that particular test in isolation.
3793    
3794 frank 1837 2003-10-21 Frank Koormann <[email protected]>
3795    
3796     Popup menu for legend. Scheduled for the 1.2 release this was too
3797     simple to implement: The popup menu is bound to the legend tree, while
3798     the events are hanlded by its anchestor, the legend panel. This
3799     allows reuse of all the event handlers already implemented for the
3800     legend toolbar buttons.
3801    
3802     * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
3803     to add handlers for the events issued by the popup menu.
3804     (LegendPanel._OnToggleVisibility): Handler for toggling layer
3805     visibility event
3806     (LegendPanel._OnProjection): Handler for layer projection event.
3807     (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
3808     (LegendTree._OnRightClick): Event handler for right click, select item
3809     and pop up menu.
3810     (LegendTree.ToggleVisibility): Toggle layer visibility
3811     (LegendTree.LayerProjection): Raise layer projection dialog for
3812     current layer.
3813    
3814 bh 1836 2003-10-21 Bernhard Herzog <[email protected]>
3815    
3816     * Resources/Projections/defaults.proj: Use correct DOCTYPE
3817     declaration. The top-level element is projectionlist not projfile
3818    
3819 bh 1834 2003-10-20 Bernhard Herzog <[email protected]>
3820    
3821     * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
3822     method to write a projfile and display a busy cursor and error
3823     dialogs.
3824     (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
3825     (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
3826     (ProjFrame.__FillAvailList): Translate "<None>" too and display a
3827     busy cursor while loading the user and system prj files.
3828    
3829 bh 1832 2003-10-16 Bernhard Herzog <[email protected]>
3830    
3831     * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
3832     ProjFile objects
3833     (clear_proj_file_cache): New function to clear the cache. Mainly
3834     useful for use by the test suite
3835     (read_proj_file): Use the cache.
3836    
3837     * test/test_proj.py (TestProjFile): Clarify the doc-string
3838     (ProjFileReadTests): Update doc-string
3839     (ProjFileReadTests.test_get_system_proj_file): Check whether the
3840     system proj files is cached.
3841     (ProjFileLoadTestCase): New base class for the proj file tests
3842     derived from support.FileLoadTestCase to provide some common
3843     behavior.
3844     (TestLoadingProjFile)
3845     (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
3846     (TestProjFileWithInvalidParameters.file_contents): Derive from
3847     ProjFileLoadTestCase
3848     (TestLoadingProjFile.test_caching): New. Test whether the cache
3849     works
3850    
3851 silke 1829 2003-10-16 Silke Reimer <[email protected]>
3852    
3853     * debian/*: New directory with configuration files for building a thuban
3854     deb-package.
3855    
3856 bh 1822 2003-10-14 Bernhard Herzog <[email protected]>
3857    
3858 bh 1828 * test/test_proj.py: Execute support.run_tests when run as
3859     __main__ so that missing unsubscribes are detected
3860     (TestProjFile.tearDown): Destroy the proj_file properly
3861    
3862     2003-10-14 Bernhard Herzog <[email protected]>
3863    
3864 bh 1826 * Thuban/Model/messages.py (PROJECTION_ADDED)
3865     (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
3866     the ProjFile objects
3867    
3868     * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
3869     easily send messages when the projections change
3870     (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
3871     when the change was successful
3872    
3873     * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
3874     proj file messages
3875     (TestProjFile.test_add_remove)
3876     (TestProjFile.test_remove_non_existing)
3877     (TestProjFile.test_replace)
3878     (TestProjFile.test_replace_non_existing): Test whether the right
3879     messages are sent
3880    
3881     2003-10-14 Bernhard Herzog <[email protected]>
3882    
3883 bh 1822 * test/test_proj.py (TestProjFile.test): Refactor into several
3884     tests
3885     (TestProjFile.test_add_remove)
3886     (TestProjFile.test_remove_non_existing)
3887     (TestProjFile.test_replace)
3888     (TestProjFile.test_replace_non_existing): Some of the new
3889     individual test cases
3890     (TestProjFileSimple): New class for the rest of the test cases
3891     that came out of the refactoring
3892     (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
3893     derived classes don't have to
3894    
3895 bh 1812 2003-10-13 Bernhard Herzog <[email protected]>
3896    
3897 bh 1820 Add an optional EPSG code to the projection objects and extend the
3898     .proj file format accordingly.
3899    
3900     * Resources/XML/projfile.dtd (element projection): Add epsg
3901     attribute
3902    
3903     * Thuban/Model/proj.py (Projection.__init__): New parameter and
3904     instance variable epsg. Update doc-string
3905     (Projection.EPSGCode, Projection.Label): New methods to provide
3906     access to EPSG code and a label for use in dialogs
3907    
3908     * Thuban/Model/resource.py (ProjFileReader.start_projection)
3909     (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
3910     Handle the epsg code attribute when reading or writing proj files
3911    
3912     * Thuban/UI/projdialog.py (ProjFrame._OnSave)
3913     (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
3914     (ProjFrame.__FillAvailList): Use the projection's Label method to
3915     get the string for the list box
3916    
3917     * test/test_proj.py (TestProjection.test_label)
3918     (TestProjection.test_label_epsg)
3919     (TestProjection.test_epsgcode_for_non_epsg_projection)
3920     (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
3921     for the label and EPSGCode methods
3922     (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
3923     (WriteProjFileTests.test_write_empty_file): Create the ProjFile
3924     objects in the test cases and put the expected contents into the
3925     test case methods too. Update doTestWrite accordingly
3926     (TestLoadingProjFile)
3927     (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
3928     read tests from TestProjFile.
3929     (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
3930     tests are now in the new classes.
3931     (sample_projfile, sample_projfile_data)
3932     (sample_projfile2, sample_projfile_data2): Removed. Not used
3933     anymore.
3934     (TestProjFile.test_read_unreadable_file): No need to reset the
3935     permissions at the end anymore since we use a unique filename
3936    
3937     2003-10-13 Bernhard Herzog <[email protected]>
3938    
3939 bh 1814 * test/test_proj.py: Some more refactoring of the test cases
3940     (ProjFileTest): New base class for the proj file tests.
3941     (TestProjFile): Derive from ProjFileTest
3942     (TestProjFile.test_read_unreadable_file)
3943     (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
3944     the new filename method to get a unique filename
3945     (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
3946     (WriteProjFileTests): New class for proj file write tests.
3947     Contains the write test that were in TestProjFile originally.
3948    
3949     2003-10-13 Bernhard Herzog <[email protected]>
3950    
3951 bh 1812 * test/test_proj.py (TestProjFile.testRead)
3952     (TestProjFile.test_read_non_existing_file)
3953     (TestProjFile.test_read_unreadable_file)
3954     (TestProjFile.test_read_empty_file): Split into several methods.
3955    
3956 bh 1805 2003-10-10 Bernhard Herzog <[email protected]>
3957    
3958 bh 1810 * Thuban/UI/sizers.py: New file with custom sizers.
3959    
3960     * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
3961     all projection type specific panels and put them into a
3962     NotebookLikeSizer. This way the dialog doesn't change its size
3963     when a different projection is selected
3964     (ProjFrame.__init__): Rename projection_panels
3965     projection_panel_defs and reuse projection_panels for a list of
3966     the instantiated panels.
3967     (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
3968     (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
3969     the panels
3970     (UnknownProjPanel._DoLayout): Place the newlines in the message
3971     differently to make the panel narrower.
3972     (TMPanel._DoLayout): Layout the parameters in one column.
3973    
3974     2003-10-10 Bernhard Herzog <[email protected]>
3975    
3976 bh 1807 * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
3977     that contains all the setup for the dialog's widgets, layout and
3978     event handling.
3979     (__): Call build_dialog to build the dialog.
3980     (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
3981     Their functionality is now in build_dialog
3982     (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
3983     (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
3984     (ProjFrame.__DoOnProjChoice): Small updates due to slightly
3985     different widget names and hierarchy introduced with build_dialog.
3986    
3987     2003-10-10 Bernhard Herzog <[email protected]>
3988    
3989 bh 1805 * README: Fix typo.
3990    
3991 bh 1803 2003-10-09 Bernhard Herzog <[email protected]>
3992    
3993     * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
3994     projection is already in the list. This is *a lot* faster when
3995     loading files with hundreds of projections since it saves a linear
3996     search. OTOH this will allow adding the same projection to the
3997     user.proj file multiple times in the projection dialog but we'll
3998     deal with that later
3999    
4000 jan 1801 2003-10-09 Jan-Oliver Wagner <[email protected]>
4001    
4002     * devtools: New. Directory for developer tools that are not intended
4003     for the regular user.
4004    
4005     * devtools/create_epsg.py: New. Convert the epsg file of proj into
4006     a python .proj file.
4007    
4008 bh 1799 2003-10-09 Bernhard Herzog <[email protected]>
4009    
4010     * test/test_proj.py
4011     (TestProjection.test_get_parameter_without_equals_sign): New. Test
4012     whether GetParameter handles parameters without "=" sign correctly
4013    
4014     * Thuban/Model/proj.py (Projection.GetParameter): Handle
4015     parameters that do not contain a "=". Update the doc-string
4016    
4017 bh 1794 2003-10-08 Bernhard Herzog <[email protected]>
4018    
4019 bh 1796 * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
4020     length limit on the projname text control
4021    
4022     2003-10-08 Bernhard Herzog <[email protected]>
4023    
4024 bh 1794 * test/test_proj.py (TestProjection.test_get_projection_units_geo)
4025     (TestProjection.test_get_projection_units_normal): New. Tests for
4026     the Projection.GetProjectedUnits method
4027    
4028 jan 1792 2003-10-08 Jan-Oliver Wagner <[email protected]>
4029    
4030     * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
4031     Added missing 'val' parameter.
4032    
4033 bh 1788 2003-10-08 Bernhard Herzog <[email protected]>
4034    
4035 bh 1790 * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
4036     projection type of the currently selected projection is not known,
4037     i.e. there's no panel for it, use the UnknownProjPanel
4038     (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
4039     the actual replacing of the proj panel into the new method
4040     _show_proj_panel.
4041     (UnknownProjPanel): Add doc-string.
4042     (UnknownProjPanel._DoLayout): Insert a newline into the text so
4043     that the panel is not so wide.
4044    
4045     2003-10-08 Bernhard Herzog <[email protected]>
4046    
4047 bh 1788 * Thuban/Model/resource.py (read_proj_file): Return the warnings
4048     too. Update the doc-string
4049     (get_proj_files): Removed. It wasn't used anywhere
4050     (get_system_proj_files, get_system_proj_file): Rename to
4051     get_system_proj_file and return the ProjFile object and not a list
4052     of ProjFile objects. Update the callers.
4053     (get_user_proj_files, get_user_proj_file): Rename to
4054     get_user_proj_file return the ProjFile object and not a list of
4055     ProjFile objects. Update the callers.
4056     (ProjFileReader.__init__): New instance variable for the warnings.
4057     Rename the __pf ivar to projfile. Update the methods referring to
4058     __pf
4059     (ProjFileReader.end_projection): Catch any errors raised when
4060     instantiating the projection and record that as an error. The
4061     projection will not be in the final ProjFile object.
4062     (ProjFileReader.GetWarnings): New method to return the warnings.
4063    
4064     * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
4065     show the warnings from the projfile reader
4066     (ProjFrame._OnImport): Deal with any warnings returned by
4067     read_proj_file
4068     (ProjFrame.__FillAvailList): Deal with any warnings returned by
4069     get_system_proj_file or get_user_proj_file.
4070    
4071     * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
4072     (TestProjFileWithInvalidParameters.file_contents): New test cases
4073     to test whether read_proj_file handles invalid projection
4074     parameters correctly
4075     (TestProjFile.test_get_system_proj_file): New. Simple test for
4076     resource.get_system_proj_file
4077    
4078 bh 1785 2003-10-07 Bernhard Herzog <[email protected]>
4079    
4080     * test/test_derivedshapestore.py
4081     (TestDerivedShapeStoreExceptions.tearDown): Clear the session
4082     properly so that the temporary directories get deleted correctly
4083    
4084 bh 1773 2003-10-06 Bernhard Herzog <[email protected]>
4085    
4086 bh 1783 Handle the title changes in a proper MVC way.
4087    
4088     * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
4089     canvas' TITLE_CHANGED messages
4090     (MainWindow.update_title): New. Update the main window's title
4091     (MainWindow.__SetTitle): Removed. Use update_title instead.
4092     (MainWindow.SetMap): Use update_title instead of __SetTitle
4093     (MainWindow.RenameMap): Do change the window title explicitly
4094     here. That's handled in a proper MVC way now.
4095     (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
4096     messages
4097    
4098     * Thuban/Lib/connector.py (Conduit): New class to help classes
4099     that forward messages
4100    
4101     * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
4102     (ViewPort): Derive from Conduit instead of Publisher
4103     (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
4104     when calling the inherited versions
4105     (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
4106     methods to subscribe and unsubscribe map messages
4107     (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
4108     handle the map subscriptions
4109     (ViewPort.Map, ViewPort.map_projection_changed)
4110     (ViewPort.layer_projection_changed): Add or update doc-strings
4111    
4112     * test/test_connector.py (TestPublisher.test_issue_simple): Fix
4113     typo
4114     (MyConduit): Helper class for the Conduit test.
4115     (TestConduit): Test cases for Conduit
4116    
4117     * test/test_connector.py: Use support.run_tests as main.
4118    
4119     * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
4120     the TITLE_CHANGED messages
4121     (ViewPortTest.test_forwarding_title_changed): New test to check
4122     whether the viewport forwards the map's TITLE_CHANGED messages
4123     (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
4124     after the port's because the latter may require a still functional
4125     map.
4126    
4127     2003-10-06 Bernhard Herzog <[email protected]>
4128    
4129 bh 1777 * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
4130     doc-string
4131    
4132     2003-10-06 Bernhard Herzog <[email protected]>
4133    
4134 bh 1775 * test/test_viewport.py (ViewPortTest.setUp)
4135     (SimpleViewPortTest.test_init_with_size): Move the test for the
4136     initial size as a constructor parameter from ViewPortTest.setUp
4137     method to a new separate test in SimpleViewPortTest.
4138    
4139     2003-10-06 Bernhard Herzog <[email protected]>
4140    
4141 bh 1773 * test/test_viewport.py (MockView): New class derived from
4142     ViewPort with a mock implementation of GetTextExtent to be used in
4143     the test cases
4144     (ViewPortTest.setUp): Use MockView instead of ViewPort
4145    
4146     * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
4147     into what would be a "pure virtual function" in C++: always raise
4148     NotImplementedError. Mock implementations for test cases don't
4149     belong into the real code
4150    
4151 bh 1770 2003-10-02 Bernhard Herzog <[email protected]>
4152    
4153     * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
4154     close the dbf file we create so that it's contents have been
4155     written properly.
4156    
4157     * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
4158     libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
4159     Update to shapelib 1.2.10
4160    
4161 jan 1767 2003-10-01 Jan-Oliver Wagner <[email protected]>
4162    
4163     * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
4164     it annoys lintian which warns about these files not being
4165     executable. The #! isn't necessary here since if you absolutely
4166     must execute them you can always say "python <filename>".
4167    
4168 bh 1757 2003-09-26 Bernhard Herzog <[email protected]>
4169    
4170 bh 1760 * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
4171     only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
4172     is ported to a newer the import will fail, so it should be noticed
4173     immediately that this function is gone.
4174     Fixes RT#1919
4175    
4176     2003-09-26 Bernhard Herzog <[email protected]>
4177    
4178 bh 1757 Add a DTD for the projection files and make thuban write valid
4179     projection files
4180    
4181     * Resources/XML/projfile.dtd: New. DTD for thuban's projection
4182     files
4183    
4184     * Thuban/Model/resource.py (ProjFileSaver.write): Use
4185     'projectionlist' as the name in the document type declaration so
4186     that it matches the element type of the root element.
4187    
4188     * test/test_proj.py (sample_projfile, sample_projfile2): Use
4189     'projectionlist' as the name in the document type declaration just
4190     as it is done now in the files thuban would write
4191     (sample_projfile, sample_projfile_data): Fix spelling of
4192     "Mercator"
4193     (TestProjFile.doTestWrite): Validate the written and the expected
4194     XML data
4195     (TestProjFile): Derive from ValidationTest so that we can run xml
4196     validation tests
4197    
4198 bh 1751 2003-09-24 Bernhard Herzog <[email protected]>
4199    
4200     * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
4201     modify the list returned by map.Layers() in place since it is the
4202     actual list of layers used by the map.
4203    
4204 jan 1745 2003-09-23 Jan-Oliver Wagner <[email protected]>
4205    
4206     * Doc/manual/thuban-manual.xml: Added subsection to chapter
4207     Extensions to describe the extensions coming with the Thuban
4208     standard package (gns2shp and importAPR).
4209    
4210 bh 1743 2003-09-23 Bernhard Herzog <[email protected]>
4211    
4212     * libraries/thuban/wxproj.cpp (project_point): if there's an
4213     inverse but no forward projection, convert to degrees after
4214     applying the inverse projection. Fixes RT#2096
4215    
4216     * test/test_wxproj.py: New. Test cases for wxproj.so. One test
4217     implicitly tests for the fix to RT#2096
4218    
4219     * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
4220     Check that the sequences have the same lengths
4221    
4222     * Resources/Projections/defaults.proj (Geographic projection): Use
4223     a much more precise value for the to_meter attribute.
4224    
4225 bh 1737 2003-09-22 Bernhard Herzog <[email protected]>
4226    
4227     * test/support.py (initthuban): Make sure to unset the LANG env.
4228     var. so that tests that compare translated strings work. Solves RT
4229     #2094
4230    
4231 jan 1730 2003-09-22 Jan-Oliver Wagner <[email protected]>
4232    
4233 jan 1735 Small improvement of APR import.
4234    
4235     * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
4236     Added tests for text-ranges.
4237    
4238     * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
4239     returns a string object if the range is based on text.
4240    
4241     * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
4242     range retrieval.
4243    
4244     2003-09-22 Jan-Oliver Wagner <[email protected]>
4245    
4246 jan 1730 Initial version of the importAPR extension which is in
4247     experimental state.
4248    
4249     * /Extensions/importAPR/, /Extensions/importAPR/samples/,
4250     /Extensions/importAPR/test/: New directories.
4251    
4252     * /Extensions/importAPR/samples/README: New: Howto load the samples.
4253    
4254     * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
4255     file which refers to the Thuban Iceland demo data.
4256    
4257     * /Extensions/importAPR/test/README: New: Howto execute the tests.
4258    
4259     * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
4260    
4261     * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
4262     as in '.apr'-files.
4263    
4264     * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
4265     ODB Objects as in '.apr', '.avl' and other files.
4266    
4267     * /Extensions/importAPR/__init__.py: New: Init to make this
4268     directory a package.
4269    
4270     * /Extensions/importAPR/importAPR.py: New: Import a ArcView
4271     project file (.apr) and convert it to Thuban.
4272    
4273     2003-09-22 Jan-Oliver Wagner <[email protected]>
4274    
4275     * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
4276    
4277 jan 1720 2003-09-19 Jan-Oliver Wagner <[email protected]>
4278    
4279     * Doc/manual/thuban-manual.xml: Extended section 'Installation'
4280     with description on RPM installation and RPM binary package
4281     creation.
4282    
4283 bh 1718 2003-09-18 Bernhard Herzog <[email protected]>
4284    
4285     * setup.py (data_files): Only add the mo files if the Locales
4286     directory actually exists, so that setup.py works with a fresh CVS
4287     checkout
4288    
4289 jan 1716 2003-09-12 Jan-Oliver Wagner <[email protected]>
4290    
4291     * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
4292     in viewport, not anymore in view
4293    
4294 jan 1714 2003-09-04 Jan-Oliver Wagner <[email protected]>
4295    
4296     Introducing first Extension (gns2shp).
4297    
4298     * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
4299    
4300     * Extensions/__init__.py: New. init to make this dir a package.
4301    
4302     * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
4303    
4304     * Extensions/gns2shp/test/README: New. some info on this test directory.
4305    
4306     * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
4307    
4308     * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
4309     of Shapefile from GNS text file format
4310    
4311 jan 1705 2003-09-03 Jan-Oliver Wagner <[email protected]>
4312    
4313 jan 1707 Fix/workaround for bug #2019:
4314     https://intevation.de/rt/webrt?serial_num=2019
4315    
4316     * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
4317     (IdentifyView.__init__): Added another button that allows to
4318     stop the identify mode.
4319     (IdentifyView.OnStop): New. Stops the identify mode.
4320    
4321     2003-09-03 Jan-Oliver Wagner <[email protected]>
4322    
4323 jan 1705 Introducing a new exception dialog that allows to exit the
4324     application immediately.
4325     This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
4326    
4327     * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
4328    
4329     * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
4330     Made strings available to translations. Exchanged the simple
4331     ScrolledMessageDialog by the new ExceptionDialog.
4332    
4333 bh 1694 2003-09-01 Bernhard Herzog <[email protected]>
4334    
4335 bh 1701 * NEWS: New. Summary of changes and release notes.
4336    
4337     * MANIFEST.in: Add NEWS
4338    
4339     2003-09-01 Bernhard Herzog <[email protected]>
4340    
4341 bh 1699 * MANIFEST.in: Correct the include statement for the mo-files and
4342     include the documentation too.
4343    
4344     * setup.py (data_files): Add the .mo files
4345     (setup call): Up to version 0.9.0
4346    
4347     2003-09-01 Bernhard Herzog <[email protected]>
4348    
4349 bh 1696 * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
4350     parameter list to just parent and session
4351     (ChooseDBTableDialog.__set_properties): Removed. Setting the
4352     selection of empty list boxes is not allowed (and produces C++
4353     assertion errors) and the rest of the setup is better done in
4354     __init__ anyway.
4355     (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
4356     (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
4357     builtins True/False for booleans to avoid warnings from wxPython
4358    
4359     * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
4360     ChooseDBTableDialog constructor parameters.
4361    
4362     2003-09-01 Bernhard Herzog <[email protected]>
4363    
4364 bh 1694 * Thuban/Model/postgisdb.py
4365     (PostGISTable): Extend doc-string
4366     (PostGISTable._fetch_table_information): Set the column index
4367     correctly, pretending ignored columns don't exist.
4368    
4369     * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
4370     for postgis tables with data types not yet supported by thuban.
4371    
4372 bh 1692 2003-08-29 Bernhard Herzog <[email protected]>
4373    
4374     * HOWTO-Release: Tweak item about running the tests.
4375    
4376 jan 1690 2003-08-29 Jan-Oliver Wagner <[email protected]>
4377    
4378     * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
4379    
4380 bh 1688 2003-08-29 Bernhard Herzog <[email protected]>
4381    
4382     Add some missing parameters to projections. Proj complains about
4383     them on windows but for some reason not on Linux.
4384    
4385     * test/test_save.py (SaveSessionTest.testLayerProjection): Add
4386     missing required projection parameters
4387    
4388     * test/test_proj.py (TestProjFile.test): Add missing required
4389     projection parameters
4390    
4391     * test/test_load_0_8.py (TestLayerProjection.file_contents)
4392     (TestLayerProjection.test): Add missing required projection
4393     parameters and tests for them
4394    
4395     * test/test_load.py (TestLayerProjection.file_contents)
4396     (TestLayerProjection.test): Add missing required projection
4397     parameters and tests for them
4398    
4399     * test/test_layer.py (TestLayer.test_base_layer): Add missing
4400     required projection parameters
4401    
4402     2003-08-29 Bernhard Herzog <[email protected]>
4403    
4404     * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
4405     access the pj_errno because directly accessing pj_errno doesn't
4406     work on windows if the proj library is in a DLL
4407    
4408     * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
4409    
4410 bh 1672 2003-08-28 Bernhard Herzog <[email protected]>
4411    
4412 bh 1685 * test/test_proj.py: Import things from Thuban after calling
4413     initthuban
4414    
4415     * test/test_load.py (LoadSessionTest.filenames): New class
4416     variable with the filename attributes to normalize
4417     (LoadSessionTest.check_format): Pass self.filenames to
4418     sax_eventlist to normalize the filename attributes
4419    
4420     * test/xmlsupport.py: Add cvs keywords
4421     (SaxEventLister.__init__): New parameter filenames which indicates
4422     attributes that contain filenames
4423     (SaxEventLister.startElementNS): Normalize the filename attributes
4424     with os.path.normpath
4425     (sax_eventlist): New parameter filenames to pass through to
4426     SaxEventLister
4427    
4428     * test/test_derivedshapestore.py: Make this file callable as a
4429     program to execute the tests
4430     (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
4431     the session to self.session so that it gets destroyed properly
4432    
4433     * test/test_layer.py (TestLayer.tearDown): Call the session's
4434     Destroy method
4435    
4436     * test/test_map.py (TestMapBase.tearDown): Destroy self.session
4437     too if it exists
4438     (TestMapAddLayer.test_add_layer): Bind the session to self.session
4439     so that it gets destroyed properly
4440    
4441     * test/postgissupport.py (reason_for_not_running_tests): Add a
4442     test for the existence of popen2.Popen4.
4443    
4444     * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
4445     reliable way to destroy the sessions created in the test cases
4446     (SaveSessionTest.test_dbf_table): Bind the session to self.session
4447     so that it gets destroyed properly
4448     (SaveSessionTest.testLayerProjection): Bind the session to
4449     self.session so that it gets destroyed properly
4450    
4451     * test/test_session.py (UnreferencedTablesTests.tearDown): Make
4452     sure that the session is destroyed properly
4453    
4454     * test/test_shapefilestore.py: Make this callable as a program to
4455     execute the tests
4456    
4457     * test/test_scalebar.py: Remove unnecessary import of _ from
4458     Thuban
4459    
4460     * test/support.py (print_garbage_information): Call initthuban
4461     here because it may be called indirectly from test cases that test
4462     test support modules which do not use anything from thuban itself
4463     (ThubanTestProgram.runTests): Remove unnecessary debug print
4464    
4465     2003-08-28 Bernhard Herzog <[email protected]>
4466    
4467 bh 1672 * Thuban/version.py (longversion): Update to 0.9
4468    
4469     * Thuban/UI/mainwindow.py: Remove some unused imports
4470    
4471     * README: Add section about required additional software. Add date
4472     and revision CVS keywords
4473    
4474     * HOWTO-Release: Add item about the translations. Add date and
4475     revision CVs keywords and change formatting to match README a bit
4476     better
4477    
4478     * po/de.po: Update for 0.9
4479    
4480     * test/README: Tweak the wording a little because many tests are
4481     not really unittest.
4482    
4483 bh 1663 2003-08-27 Bernhard Herzog <[email protected]>
4484    
4485 bh 1665 As preparation for the 0.9 release, switch thuban files to a
4486     non-dev namespace
4487    
4488     * Thuban/Model/save.py (SessionSaver.write_session): Write files
4489     with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
4490     namespace
4491    
4492     * Thuban/Model/load.py (SessionLoader.__init__): Accept the
4493     http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
4494    
4495     * test/test_save.py (SaveSessionTest.dtd)
4496     (SaveSessionTest.testEmptySession)
4497     (SaveSessionTest.testSingleLayer)
4498     (SaveSessionTest.testLayerProjection)
4499     (SaveSessionTest.testRasterLayer)
4500     (SaveSessionTest.testClassifiedLayer)
4501     (SaveSessionTest.test_dbf_table)
4502     (SaveSessionTest.test_joined_table)
4503     (SaveSessionTest.test_save_postgis): Update for new namespace
4504    
4505     * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
4506     (TestLayerVisibility.file_contents, TestLabels.file_contents)
4507     (TestLayerProjection.file_contents)
4508     (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
4509     (TestPostGISLayer.file_contents)
4510     (TestPostGISLayerPassword.file_contents)
4511     (TestLoadError.file_contents, TestLoadError.test): Update for new
4512     namespace
4513    
4514     2003-08-27 Bernhard Herzog <[email protected]>
4515    
4516 bh 1663 Make the table interface distinguish between row ids (an integer
4517     that uniquely identifies a row) and row ordinals (a simple row
4518     count from 0 to NumRows() - 1)
4519    
4520     * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
4521     (PostGISTable.RowOrdinalToId): New methods to conver between row
4522     ids and row ordinals
4523     (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
4524     parameter row_is_ordinal to indicate whether the row parameter is
4525     the row id or the ordinal
4526    
4527     * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
4528     (TransientTableBase.RowOrdinalToId)
4529     (AutoTransientTable.RowIdToOrdinal)
4530     (AutoTransientTable.RowOrdinalToId): Same new methods as in
4531     PostGISTable.
4532     (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
4533     (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
4534     Same new parameter as in PostGISTable.
4535    
4536     * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
4537     (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
4538     (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
4539     (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
4540     (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
4541     parameter as in PostGISTable.
4542    
4543     * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
4544     (DataTable.RowOrdinalToId): New methods to convert between row ids
4545     and row ordinals.
4546     (TableGrid.SelectRowById): New method to select a row based on its
4547     ID as opposed to its ordinal
4548     (DataTable.GetValue, TableGrid.OnRangeSelect)
4549     (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
4550     (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
4551     (LayerTableFrame.__init__): Convert between row ids and row
4552     ordinals as appropriate
4553    
4554     * test/postgissupport.py (PostGISDatabase.__init__): Add
4555     doc-string.
4556     (PostGISDatabase.initdb): The optional third item in a tuple in
4557     tables is now a (key, value) list with additional arguments to
4558     pass to upload_shapefile
4559     (upload_shapefile): New parameter gid_offset to allow gids that
4560     are not the same as the shapeids in the shapefile
4561     (PostgreSQLServer.get_default_static_data_db): Use the new
4562     gid_offset to make the gids in landmarks 1000 higher than the
4563     shapeids in the shapefile
4564    
4565     * test/test_viewport.py
4566     (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
4567     new shapeids in the landmarks table
4568    
4569     * test/test_transientdb.py
4570     (TestTransientTable.run_iceland_political_tests)
4571     (TestTransientTable.test_transient_joined_table): Add tests for
4572     the new table methods and new keywords arguments.
4573    
4574     * test/test_postgis_db.py
4575     (TestPostGISTable.test_read_row_as_dict_row_count_mode)
4576     (TestPostGISTable.test_read_value_row_count_mode)
4577     (TestPostGISTable.test_row_id_to_ordinal)
4578     (TestPostGISTable.test_row_oridnal_to_id): New test for the new
4579     table methods and the new arguments
4580     (TestPostGISShapestorePoint.test_shapes_in_region)
4581     (TestPostGISShapestorePoint.test_shape_raw_data)
4582     (TestPostGISShapestorePoint.test_shape_points)
4583     (TestPostGISShapestorePoint.test_shape_shapeid)
4584     (TestPostGISShapestorePoint.test_all_shapes)
4585     (TestPostGISTable.test_simple_query)
4586     (TestPostGISTable.test_simple_query)
4587     (TestPostGISTable.test_simple_query)
4588     (TestPostGISTable.test_read_value)
4589     (TestPostGISTable.test_read_row_as_dict): Adapt to the new
4590     shapeids in the landmarks table
4591    
4592     * test/test_memory_table.py
4593     (TestMemoryTable.test_read_row_as_dict_row_count_mode)
4594     (TestMemoryTable.test_read_value_row_count_mode)
4595     (TestMemoryTable.test_row_id_to_ordinal)
4596     (TestMemoryTable.test_row_oridnal_to_id): New test for the new
4597     table methods and the new arguments
4598    
4599     * test/test_dbf_table.py
4600     (TestDBFTable.test_read_row_as_dict_row_count_mode)
4601     (TestDBFTable.test_read_value_row_count_mode)
4602     (TestDBFTable.test_row_id_to_ordinal)
4603     (TestDBFTable.test_row_oridnal_to_id): New test for the new table
4604     methods and the new arguments
4605    
4606 bh 1659 2003-08-26 Bernhard Herzog <[email protected]>
4607    
4608 bh 1661 * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
4609     more postgis specific but much faster method to get the bounding
4610     box
4611    
4612     2003-08-26 Bernhard Herzog <[email protected]>
4613    
4614 bh 1659 * Thuban/Model/postgisdb.py (PostGISTable.Title)
4615     (PostGISShapeStore.AllShapes): Add these missing methods.
4616     (PostGISShapeStore.ShapesInRegion): No need to raise
4617     StopIteration. We can simply return
4618    
4619     * test/test_postgis_db.py (TestPostGISTable.test_title)
4620     (TestPostGISShapestorePoint.test_all_shapes): New tests for the
4621     new methods
4622    
4623 bh 1643 2003-08-25 Bernhard Herzog <[email protected]>
4624    
4625 bh 1657 * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
4626    
4627     * test/test_postgis_db.py (PolygonTests): New class containing
4628     those tests from TestPostGISShapestorePolygon that can also be
4629     used to test MUTLIPOLYGON tables
4630     (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
4631     so derive from that
4632     (TestPostGISShapestoreMultiPolygon): New class with tests for
4633     MUTLIPOLYGON tables
4634    
4635     * test/postgissupport.py (PostGISDatabase.initdb): Allow the
4636     tables argument to have tuples with three items to override the
4637     WKT type used.
4638     (PostgreSQLServer.get_default_static_data_db): Use the above to
4639     create a polygon table with MUTLIPOLYGONs
4640     (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
4641     (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
4642     coords_to*
4643     (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
4644     (wkt_converter): New. Map WKT types to converters
4645     (upload_shapefile): New parameter force_wkt_type to use a
4646     different WKT type than the default
4647    
4648     2003-08-25 Bernhard Herzog <[email protected]>
4649    
4650 bh 1655 * Thuban/UI/application.py
4651     (ThubanApplication.run_db_param_dialog): New. Suitable as a
4652     db_connection_callback. Main difference is that the dialog run
4653     from this method doesn't have a parent so it can be used even when
4654     there is no main window
4655     (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
4656     no db_connection_callback was given. This way the dialog pops up
4657     even when the .thuban file was given as a command line parameter.
4658    
4659     2003-08-25 Bernhard Herzog <[email protected]>
4660    
4661 bh 1653 * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
4662     before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
4663     which leads to an effectively frozen X session because the user
4664     can only interact with the dialog but the mouse is still grabbed
4665     by the canvas.
4666     Also, call the tool's Hide method before MouseLeftUp because
4667     MouseLeftUp may change the tool's coordinates.
4668    
4669     2003-08-25 Bernhard Herzog <[email protected]>
4670    
4671 bh 1651 * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
4672     LoadCancelled exceptions and handle them by returning immediately.
4673    
4674     2003-08-25 Bernhard Herzog <[email protected]>
4675    
4676 bh 1649 GUI part of loading sessions with postgis connections which may
4677     require user interaction to get passwords or updated parameters
4678    
4679     * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
4680     bit nucer and be more generic.
4681     (DBFrame.OnAdd): Adapt to new DBDialog interface
4682    
4683     * Thuban/UI/application.py (ThubanApplication.OpenSession): New
4684     optional parameter db_connection_callback which is passed to
4685     load_session.
4686    
4687     * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
4688     Suitable as a db_connection_callback
4689     (MainWindow.OpenSession): Use self.run_db_param_dialog as the
4690     db_connection_callback of the application's OpenSession method
4691    
4692    
4693     2003-08-25 Bernhard Herzog <[email protected]>
4694    
4695 bh 1647 Basic loading of sessions containing postgis connections:
4696    
4697     * Thuban/Model/load.py (LoadError): Add doc-string
4698     (LoadCancelled): New exception class to indicate a cancelled load
4699     (SessionLoader.__init__): Add the db_connection_callback parameter
4700     which will be used by the loader to get updated parameters and a
4701     password for a database connection
4702     (SessionLoader.__init__): Add the new XML elements to the
4703     dispatchers dictionary
4704     (SessionLoader.check_attrs): Two new conversions, ascii to convert
4705     to a byte-string object and idref as a generic id reference
4706     (SessionLoader.start_dbconnection)
4707     (SessionLoader.start_dbshapesource): New. Handlers for the new XML
4708     elements
4709     (load_session): Add the db_connection_callback to pass through the
4710     SessionLoader
4711    
4712     * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
4713     New classes to test loading of sessions with postgis database
4714     connections.
4715    
4716     2003-08-25 Bernhard Herzog <[email protected]>
4717    
4718 bh 1645 * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
4719     replace it and the comment with __BuildDate__ by the Source: and
4720     Id: cvs keywords as used in the other files.
4721    
4722     2003-08-25 Bernhard Herzog <[email protected]>
4723    
4724 bh 1643 * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
4725     LoadError when a required attribute is missing. The code used to
4726     be commented out for some reason, but probably should have been
4727     active.
4728    
4729     * test/test_load.py (TestLoadError.test): Test the message in the
4730     LoadError too to make sure it really is about the missing
4731     attribute
4732    
4733 bh 1632 2003-08-22 Bernhard Herzog <[email protected]>
4734 bh 1641
4735     * test/test_save.py (SaveSessionTest.test_dbf_table)
4736     (SaveSessionTest.test_joined_table): Add XML validation tests.
4737    
4738     2003-08-22 Bernhard Herzog <[email protected]>
4739    
4740 bh 1639 Implement saving a session with a postgis connection
4741 bh 1632
4742 bh 1639 * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
4743     elements for database connections and shapestores using db
4744     connections
4745     (session): Add the dbconnections to the content model
4746    
4747     * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
4748     Write the db connections
4749     (SessionSaver.write_session): Call write_db_connections to write
4750     the connection before the data sources
4751     (SessionSaver.write_data_containers): Handle postgis shapestores
4752    
4753     * test/test_save.py (SaveSessionTest.thubanids)
4754     (SaveSessionTest.thubanidrefs): Update for new DTD
4755     (SaveSessionTest.test_save_postgis): New. Test saving a session
4756     with postgis connections
4757    
4758     * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
4759     (PostGISTable.TableName): New accessor methods for the connection
4760     and table name
4761    
4762     * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
4763     (TestPostGISTable.test_dbname): New methods to test the new
4764     PostGISConnection methods
4765    
4766     2003-08-22 Bernhard Herzog <[email protected]>
4767    
4768 bh 1637 * Thuban/Model/postgisdb.py (ConnectionError): New exception class
4769     for exceptions occurring when establishing a Database connection
4770     (PostGISConnection.connect): Catch psycopg.OperationalError during
4771     connects and raise ConnectionError.
4772    
4773     * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
4774     tests for database exceptions
4775    
4776     2003-08-22 Bernhard Herzog <[email protected]>
4777    
4778 bh 1635 Prepare the test suite for tests with required authentication
4779    
4780     * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
4781     variables with two predefined users/passwords, one for the admin
4782     and one for a non-privileged user.
4783     (PostgreSQLServer.createdb): Pass the admin name to initdb and add
4784     the non-privileged user to the database and set the admin password
4785     (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
4786     Better error reporting
4787     (PostgreSQLServer.connection_params)
4788     (PostgreSQLServer.connection_string): New methods to return
4789     information about how to connect to the server
4790     (PostgreSQLServer.execute_sql): New. Convenience method to execute
4791     SQL statements
4792     (PostgreSQLServer.require_authentication): Toggle whether the
4793     server requires authentication
4794     (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
4795     Add or alter users
4796     (PostGISDatabase.initdb): Pass the admin name one the
4797     subprocesses' command lines. Grant select rights on
4798     geometry_columns to everybody.
4799     (upload_shapefile): Use the admin name and password when
4800     connecting. Grant select rights on the new table to everybody.
4801    
4802     * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
4803     server's new methods to get the connection parameters.
4804    
4805     * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
4806     (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
4807     server's new methods to get the connection parameters.
4808    
4809     * test/test_postgis_db.py
4810     (TestPostGISConnection.test_gis_tables_empty)
4811     (TestPostGISConnection.test_gis_tables_non_empty)
4812     (PostGISStaticTests.setUp): Use the server's new methods to get
4813     the connection parameters.
4814    
4815     2003-08-22 Bernhard Herzog <[email protected]>
4816    
4817 bh 1632 * Thuban/UI/about.py (About.__init__): Add the psycopg version.
4818    
4819     * Thuban/version.py: Add psycopg version
4820    
4821     * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
4822     version of the psycopg module
4823    
4824     2003-08-22 Bernhard Herzog <[email protected]>
4825    
4826     * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
4827     (DBFrame.OnEdit): Removed because it's not used and wouldn't work
4828     at the moment. The functionality should probably be implemented
4829     some time, though.
4830 bh 1633 (DBFrame.OnRemove): Display a message if the connection can't be
4831     removed because it's still in use.
4832 bh 1632
4833 jan 1629 2003-08-22 Jan-Oliver Wagner <[email protected]>
4834    
4835     * Thuban/UI/about.py (About.__init__): split up the huge about
4836     text into elements/lists for easier translation. This fixes bug
4837     https://intevation.de/rt/webrt?serial_num=2058
4838     Also, made some forgotten string available for the i18n.
4839    
4840 bh 1627 2003-08-21 Bernhard Herzog <[email protected]>
4841    
4842     Make postgis support really optional including insensitive menu
4843     items.
4844    
4845     * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
4846     whether the postgis is supported.
4847    
4848     * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
4849     to make postgis support optional
4850    
4851     * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
4852     version of Thuban.Model.postgisdb.has_postgis_support
4853     (database_management command): Make it only sensitive if postgis
4854     is supported.
4855    
4856 jan 1623 2003-08-21 Jan-Oliver Wagner <[email protected]>
4857    
4858 jan 1626 * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
4859     (section Adding and Removing Layers): Added text and described
4860     multi-selection.
4861     (chapter Extensions): New.
4862    
4863     2003-08-21 Jan-Oliver Wagner <[email protected]>
4864    
4865 jan 1623 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
4866     settings to allow multiple files to load into the map.
4867     Also reduced selection to *.shp as a default.
4868    
4869 bh 1621 2003-08-20 Bernhard Herzog <[email protected]>
4870    
4871     Add dialogs and commands to open database connections and add
4872     database layers.
4873    
4874     * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
4875     method to open the database connection management dialog
4876     (MainWindow.AddDBLayer): New method to add a layer from a database
4877     (_has_dbconnections): New helper function to use for sensitivity
4878     (database_management command, layer_add_db command): New commands
4879     that call the above new methods.
4880     (main_menu): Add the new commands to the menu.
4881    
4882     * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
4883     (PostGISConnection.connect): Establish the actual connection in a
4884     separate method and call it in __init__. This makes it easier to
4885     override the behavior in test cases
4886     (PostGISConnection.BriefDescription): New method to return a brief
4887     description for use in dialogs.
4888    
4889     * test/test_postgis_db.py (NonConnection): DB connection that
4890     doesn't actually connect
4891     (TestBriefDescription): New class with tests for the new
4892     BriefDescription method
4893    
4894 jan 1619 2003-08-19 Jan-Oliver Wagner <[email protected]>
4895    
4896     Moved anything from extensions to libraries.
4897    
4898     * libraries: New.
4899    
4900     * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
4901    
4902     * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
4903     Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
4904     been moved here from thuban/extensions/pyprojection/
4905     See there in the Attic for the older history.
4906    
4907     * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
4908     dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
4909     shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
4910     have been moved here from thuban/extensions/pyshapelib/
4911     See there in the Attic for the older history.
4912    
4913     * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
4914     files have been moved here from thuban/extensions/shapelib/
4915     See there in the Attic for the older history.
4916    
4917     * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
4918     gdalwarp.cpp, wxproj.cpp: These files have been moved here from
4919     thuban/extensions/thuban/
4920     See there in the Attic for the older history.
4921    
4922     * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
4923    
4924     * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
4925     gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
4926    
4927     * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
4928     Moved to libraries/shapelib.
4929    
4930     * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
4931     shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
4932     ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
4933     Moved to libraries/pyshapelib.
4934    
4935     * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
4936     LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
4937     Moved to libraries/pyprojection.
4938    
4939     * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
4940    
4941     * extensions: Removed.
4942    
4943 bh 1606 2003-08-19 Bernhard Herzog <[email protected]>
4944    
4945 bh 1609 * test/test_viewport.py (ViewPortTest): We don't use the
4946     facilities of FileTestMixin so don't derive from it.
4947     (TestViewportWithPostGIS): New class with tests for using a
4948     viewport on a map with postgis layers.
4949    
4950     2003-08-19 Bernhard Herzog <[email protected]>
4951    
4952     Add the db connection management to the session.
4953    
4954     * Thuban/Model/session.py (Session.__init__): New instance
4955     variable db_connections
4956     (Session.AddDBConnection, Session.DBConnections)
4957     (Session.HasDBConnections, Session.CanRemoveDBConnection)
4958     (Session.RemoveDBConnection): New methods to manage and query the
4959     db connections managed by the session
4960     (Session.OpenDBShapeStore): New method to open a shapestore from a
4961     db connection
4962    
4963     * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
4964     messages for the db connection handling in the session
4965    
4966     * test/test_postgis_session.py: New. test cases for the session's
4967     db connection handling with postgis connections
4968    
4969     2003-08-19 Bernhard Herzog <[email protected]>
4970    
4971 bh 1606 Add very basic postgis database support and the corresponding test
4972     cases. The test cases require a PostgreSQL + postgis installation
4973     but no existing database. The database will be created
4974     automatically by the test cases
4975    
4976     * test/README: Add note about skipped tests and the requirements
4977     of the postgis tests.
4978    
4979     * Thuban/Model/postgisdb.py: New. Basic postgis database support.
4980    
4981     * test/test_postgis_db.py: New. Test cases for the postgis
4982     support.
4983    
4984     * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
4985     format
4986    
4987     * test/test_wellknowntext.py: New. Test cases for the
4988     wellknowntext parser
4989    
4990     * test/postgissupport.py: New. Support module for tests involving
4991     a postgis database.
4992    
4993     * test/support.py (execute_as_testsuite): Shut down the postmaster
4994     if it's still running after the tests
4995    
4996     * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
4997     well known text format
4998    
4999 jan 1604 2003-08-19 Jan-Oliver Wagner <[email protected]>
5000    
5001     * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
5002     message dialog.
5003    
5004 bh 1600 2003-08-18 Bernhard Herzog <[email protected]>
5005    
5006 bh 1602 * test/support.py (ThubanTestResult.printErrors): Indent the
5007     reason for the skips in the output to make it a bit more readable.
5008     (execute_as_testsuite): New helper function to run a test suite
5009     and print some more information.
5010     (run_tests): Use execute_as_testsuite to run the tests
5011    
5012     * test/runtests.py (main): Use execute_as_testsuite to run the
5013     tests
5014    
5015     2003-08-18 Bernhard Herzog <[email protected]>
5016    
5017 bh 1600 Fix some bugs in Thuban and the test suite that were uncovered by
5018     changes introduced in Python 2.3:
5019    
5020     * Thuban/Model/table.py (DBFTable.__init__): Make sure the
5021     filename is an absolute name
5022    
5023     * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
5024     filename is an absolute name
5025    
5026     * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
5027     unique filename to save to and use the correct relative filename
5028     in the expected output.
5029     (SaveSessionTest.test_dbf_table): Use the correct relative
5030     filename in the expected output.
5031    
5032     * test/test_layer.py (TestLayer.test_raster_layer): Update the
5033     test to check whether the filename is absolute.
5034    
5035 jan 1596 2003-08-18 Jan-Oliver Wagner <[email protected]>
5036    
5037     * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
5038    
5039 bh 1586 2003-08-15 Bernhard Herzog <[email protected]>
5040    
5041 bh 1594 Change the way shapes are returned by a shape store. The
5042     ShapesInRegion method returns an iterator over actual shape
5043     objects instead of a list of shape ids.
5044    
5045     * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
5046     id.
5047     (ShapefileStore.ShapesInRegion): Return an iterator over the
5048     shapes which yields shape objects instead of returning a list of
5049     shape ids
5050     (ShapefileStore.AllShapes): New. Return an iterator over all
5051     shapes in the shape store
5052     (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
5053    
5054     * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
5055     doc-string.
5056    
5057     * Thuban/UI/baserenderer.py
5058     (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
5059     layer_shapes and make it return an iterator containg shapes
5060     instead of a list of ids.
5061     (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
5062     layer_shapes() change
5063    
5064     * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
5065     (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
5066    
5067     * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
5068     changes in the ShapesInRegion return value.
5069     (ViewPort._get_hit_tester): Remove commented out code
5070    
5071     * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
5072     new return value.
5073     (SimpleShapeStore.AllShapes): New. Implement this method too.
5074    
5075     * test/test_layer.py (TestLayer.test_arc_layer)
5076     (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
5077     (TestLayer.test_point_layer_with_projection)
5078     (TestLayer.test_derived_store): Adapt to changes in the
5079     ShapesInRegion return value.
5080    
5081     * test/test_shapefilestore.py
5082     (TestShapefileStoreArc.test_shapes_in_region)
5083     (TestShapefileStorePolygon.test_shapes_in_region)
5084     (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
5085     in the ShapesInRegion return value.
5086     (TestShapefileStorePoint.test_all_shapes)
5087     (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
5088     methods
5089    
5090     * test/test_derivedshapestore.py
5091     (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
5092     the ShapesInRegion return value.
5093     (TestDerivedShapeStore.test_all_shapes)
5094     (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
5095     methods
5096    
5097     2003-08-15 Bernhard Herzog <[email protected]>
5098    
5099 bh 1592 Make the renderers deal correctly with raw vs. python level
5100     representation of shape geometries
5101    
5102     * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
5103     Return a flag useraw in addition to the callable and the parameter
5104     to indicate whether the callable can deal with the raw shape data
5105     or uses the higher level python lists of coordinates. The callable
5106     now should accept either the raw data or the return value of the
5107     shape's Points() method.
5108     (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
5109     change
5110     (BaseRenderer.projected_points): Instead of the shape id use the
5111     points list as parameter.
5112     (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
5113     (BaseRenderer.draw_point_shape): Adapt to projected_points()
5114     change and accept the points list as parameter instead of the
5115     shape id.
5116    
5117     * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
5118     the useraw flag as required by the BaseRenderer
5119     (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
5120     changes.
5121    
5122     * test/test_baserenderer.py
5123     (TestBaseRenderer.test_point_with_classification): New test for
5124     rendering a map with classifications.
5125    
5126     2003-08-15 Bernhard Herzog <[email protected]>
5127    
5128 bh 1590 * Thuban/UI/viewport.py (ViewPort.find_shape_at)
5129     (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
5130     (ViewPort._get_hit_tester, ViewPort.projected_points)
5131     (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
5132     (ViewPort._find_label_at): Split the find_shape_at method into
5133     several new methods and use the functions in the hit-test module.
5134    
5135     * Thuban/UI/hittest.py: New module with Python-level hit-testing
5136     functions
5137    
5138     * test/test_hittest.py: New. Test for the new hittest module
5139    
5140     2003-08-15 Bernhard Herzog <[email protected]>
5141    
5142 bh 1588 * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
5143     projection to all corners of the bounding box to get a better
5144     approximation of the projected bounding box
5145    
5146     * test/test_layer.py (TestLayer.test_point_layer_with_projection):
5147     New. Test coordinate handling of a layer with a projection.
5148     Catches the bug fixed in Layer.ShapesInRegion
5149    
5150     2003-08-15 Bernhard Herzog <[email protected]>
5151    
5152 bh 1586 Move some of the mock objects in test_baserenderer into their own
5153     module so they can easily be used from other tests
5154    
5155     * test/mockgeo.py: New test helper module with some mock objects
5156     for geometry related things like shapes, shapestores and
5157     projections.
5158    
5159     * test/test_mockgeo.py: New. Tests for the new helper module
5160    
5161     * test/test_baserenderer.py: Some of the mock-objects are in
5162     mockgeo now.
5163    
5164 jan 1584 2003-08-12 Jan-Oliver Wagner <[email protected]>
5165    
5166     * Thuban/UI/about.py (About.__init__): Added Björn Broscheit.
5167    
5168 bh 1580 2003-08-12 Bernhard Herzog <[email protected]>
5169    
5170 bh 1582 * po/de.po: New. German translations by Bjoern Broscheit
5171    
5172     2003-08-12 Bernhard Herzog <[email protected]>
5173    
5174 bh 1580 * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
5175     strings have to be one string literal.
5176    
5177 bh 1573 2003-08-11 Bernhard Herzog <[email protected]>
5178    
5179 bh 1578 * test/support.py (FloatComparisonMixin.assertPointListEquals):
5180     New. This method was used in various derived classes, but it's
5181     better to have it here.
5182    
5183     * test/test_shapefilestore.py
5184     (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
5185     FloatComparisonMixin
5186    
5187     * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
5188     It's now in FloatComparisonMixin
5189    
5190     * test/test_derivedshapestore.py
5191     (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
5192     in FloatComparisonMixin
5193    
5194     2003-08-11 Bernhard Herzog <[email protected]>
5195    
5196 bh 1573 * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
5197     error message
5198    
5199 jan 1569 2003-08-08 Jan-Oliver Wagner <[email protected]>
5200    
5201 jan 1571 * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
5202     with version number.
5203     Changed title to reflect version number of Thuban.
5204    
5205     2003-08-08 Jan-Oliver Wagner <[email protected]>
5206    
5207 jan 1569 * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
5208     the list corresponds to the "About" web page.
5209    
5210 bh 1567 2003-08-08 Bernhard Herzog <[email protected]>
5211    
5212     * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
5213     Make sure translated strings are recognized as one string literal.
5214    
5215     * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
5216     Make sure translated strings are recognized as one string literal.
5217    
5218     * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
5219     translated strings are recognized as one string literal.
5220    
5221     * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
5222     sure translated strings are recognized as one string literal.
5223    
5224 bh 1556 2003-08-07 Bernhard Herzog <[email protected]>
5225    
5226 bh 1565 * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
5227     Simply delegates to the original shapestore.
5228    
5229     * test/test_derivedshapestore.py
5230     (TestDerivedShapeStore.test_raw_format): New. Test case for
5231     DerivedShapeStore.RawShapeFormat
5232    
5233     2003-08-07 Bernhard Herzog <[email protected]>
5234    
5235 bh 1561 Add raw data interface to shape objects.
5236    
5237     * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
5238     class to ShapefileShape which now holds shapefile specific
5239     information.
5240     (ShapefileShape.compute_bbox): Simplified to not cache any
5241     information. The way this method is used that shouldn't matter
5242     performance wise.
5243     (ShapefileShape.RawData): New. Return the shapeid which is the raw
5244     data format for shapes from shapefiles.
5245     (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
5246     in the shape objects returned by a shapestore. For a
5247     ShapefileStore this is always RAW_SHAPEFILE.
5248     (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
5249     method.
5250    
5251     * test/test_shapefilestore.py
5252     (TestShapefileStore.test_raw_format): New test to test the raw
5253     format feature of shapes.
5254    
5255 bh 1560 * Thuban/Model/layer.py: Remove the unused import of Shape from
5256     data. It was only there for interface compatibility but it's not
5257 bh 1561 used inside of Thuban and the generic Shape class has gone away.
5258 bh 1560
5259 bh 1563 * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
5260     the raw data format and only use an optimized version of its a
5261     shapefile.
5262    
5263 bh 1561 2003-08-07 Bernhard Herzog <[email protected]>
5264    
5265 bh 1559 * test/test_baserenderer.py (SimpleShape): Shape class for the
5266     tests.
5267     (SimpleShapeStore.Shape): Use SimpleShape instead of
5268     Thuban.Model.data.Shape to make the tests independed of the coming
5269     changes.
5270    
5271     2003-08-07 Bernhard Herzog <[email protected]>
5272    
5273 bh 1556 * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
5274     (ThubanTestProgram): New classes that extend the respective
5275     classes from unittest. These new version support skipping tests
5276     under certain expected conditions. In the Thuban test suite we
5277     uses this for tests that require the optional gdal support.
5278     (run_tests): Use ThubanTestProgram instead of the unittest.main()
5279    
5280     * test/runtests.py (main): Use the new ThubanTestRunner instead of
5281     the normal one from unittest
5282    
5283     * test/test_layer.py (TestLayer.test_raster_layer): If this test
5284     is not run because gdal support isn't available report this to the
5285     runner.
5286    
5287     * test/test_baserenderer.py
5288     (TestBaseRenderer.test_raster_no_projection): Do not run this test
5289     if gdal support isn't available and report this to the runner.
5290    
5291 bh 1553 2003-08-06 Bernhard Herzog <[email protected]>
5292    
5293     Rearrange the renderers a bit, partly in preparation for changes
5294     required for the postgis merge, partly to make it more testable.
5295     Also make the representation of coordinates in Shapes more
5296     consistent.
5297    
5298     * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
5299     this class is now in BaseRenderer. This class is now practically
5300     only a specialization of BaseRenderer for rendering to an actual
5301     wx DC.
5302     (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
5303     to get the shapetype specific rendering functions.
5304    
5305     * Thuban/UI/baserenderer.py: New file with the basic rendering
5306     logic. The code in this file is completely independend of wx.
5307     (BaseRenderer): Class with the basic rendering logic
5308    
5309     * test/test_baserenderer.py: New. Test cases for BaseRenderer
5310    
5311     * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
5312     error_on_redraw to guard agains endless loops and stack overflows
5313     when there's a bug in the rendering code that raises exceptions.
5314     (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
5315     rendering into a separate method _do_redraw so that error handling
5316     is a bit easier. When an exception occurs, set error_on_redraw to
5317     true. When it's true on entry to OnIdle do nothing and return
5318     immediately.
5319    
5320     * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
5321     Shape object will always have the coordinates as a list of list of
5322     coordinate pairs (tuples).
5323     (Shape.compute_bbox): Adapt to new representation.
5324    
5325     * Thuban/UI/viewport.py (ViewPort.find_shape_at)
5326     (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
5327     Shape objects.
5328    
5329     * test/test_shapefilestore.py
5330     (ShapefileStoreTests.assertFloatTuplesEqual)
5331     (ShapefileStoreTests.assertPointListEquals): Rename to
5332     assertPointListEquals and change purpose to checking equality of
5333     the lists returned by Shape.Points().
5334     (TestShapefileStoreArc.test_shape)
5335     (TestShapefileStorePolygon.test_shape)
5336     (TestShapefileStorePoint.test_shape): Use the new
5337     assertPointListEquals instead of assertFloatTuplesEqual
5338    
5339     * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
5340     (TestLayer.assertPointListEquals): Rename to assertPointListEquals
5341     and change purpose to checking equality of the lists returned by
5342     Shape.Points().
5343     (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
5344     (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
5345     (TestLayer.test_derived_store): Use the new assertPointListEquals
5346     instead of assertFloatTuplesEqual
5347    
5348     * test/test_derivedshapestore.py
5349     (TestDerivedShapeStore.assertFloatTuplesEqual)
5350     (TestDerivedShapeStore.assertPointListEquals): Rename to
5351     assertPointListEquals and change purpose to checking equality of
5352     the lists returned by Shape.Points().
5353     (TestDerivedShapeStore.test_shape): Use the new
5354     assertPointListEquals instead of assertFloatTuplesEqual
5355    
5356 jan 1550 2003-08-06 Jan-Oliver Wagner <[email protected]>
5357    
5358     * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
5359     a bounding box. A dialog is raised in case, no bounding box
5360     is found. This fixes bug #2043:
5361     https://intevation.de/rt/webrt?serial_num=2043
5362    
5363 bh 1548 2003-08-05 Bernhard Herzog <[email protected]>
5364    
5365     * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
5366     object look like a Color instantiation. Formerly it looked like a
5367     tuple.
5368    
5369     * test/test_color.py (TestColor.test_repr)
5370     (TestColor.test_equality, TestColor.test_inequality): New. test
5371     some more apects of the Color class
5372     (TestTransparent.test_repr, TestTransparent.test_hex)
5373     (TestTransparent.test_equality): New. Test cases for the
5374     Transparent object.
5375    
5376 jan 1545 2003-08-04 Jan-Oliver Wagner <[email protected]>
5377    
5378     * Doc/manual/thuban-manual.xml: a number of small improvements.
5379     The resulting file is the version submitted for GREAT-ER II.
5380    
5381 bh 1540 2003-08-01 Bernhard Herzog <[email protected]>
5382    
5383 bh 1543 * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
5384     Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
5385     Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
5386    
5387     * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
5388     (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
5389     (ThubanEndBusyCursor): Add doc-strings
5390    
5391     2003-08-01 Bernhard Herzog <[email protected]>
5392    
5393 bh 1540 First step towards PostGIS integration. More abstraction by movin
5394     more code from the layer to the shapestore. More methods of the
5395     layer are now simply delegated to the equivalent method of the
5396     shapestore. The SHAPETYPE_* constants are now in data not in
5397     layer.
5398    
5399     * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
5400     (SHAPETYPE_POINT, Shape): Move these constants and classes from
5401     layer.py to data.py
5402     (ShapefileStore.__init__): More Initialization for the new methods
5403     and functionality.
5404     (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
5405     (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
5406     (ShapefileStore.Shape): New methods that were formerly implemented
5407     in the layer.
5408     (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
5409     (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
5410     (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
5411     equivalents of the new shape methods. These versions are simply
5412     delegated to the original shapstore.
5413    
5414     * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
5415     (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
5416     (Layer.SetShapeStore): Removed the initializatin of instance
5417     variables that were needed for the stuff that's now in
5418     ShapefileStore
5419     (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
5420     (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
5421     shapestore.
5422    
5423     * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
5424     Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
5425     instead of layer.
5426    
5427     * test/test_shapefilestore.py: New. Tests for ShapefileStore.
5428    
5429     * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
5430    
5431     * test/test_layer.py: Import the SHAPETYPE_* constants from data
5432     instead of layer.
5433     (TestLayer.test_derived_store): Remove the test for the exception
5434     when instantiating the DerivedShapeStore with an incompatible
5435     table which is now in test_derivedshapestore.py. Add some more
5436     tests of the layer methods to determine whether they work for a
5437     DerivedShapeStore as well.
5438    
5439 jonathan 1534 2003-07-31 Jonathan Coles <[email protected]>
5440    
5441     * Doc/manual/thuban-manual.xml: Fix the list of required packages
5442     by just listing the name and where they can be found.
5443    
5444 frank 1532 2003-07-31 Frank Koormann <[email protected]>
5445    
5446     * Doc/manual/thuban-manual.xml:
5447     Changed the screenshot elements to figure.
5448     Changed some variablelist elements to itemizedlist.
5449     Added section on GDAL formats.
5450    
5451 jonathan 1531 2003-07-31 Jonathan Coles <[email protected]>
5452    
5453     * Doc/manual/thuban-manual.xml: Added a few sentences about
5454     the Fix Border Color option when generating classes.
5455    
5456 jonathan 1529 2003-07-30 Jonathan Coles <[email protected]>
5457    
5458     * Thuban/Model/classgen.py: Add docstrings. Rename specific
5459     Ramp instances to use lower_case_style.
5460    
5461     * Thuban/UI/classgen.py: Use renamed Ramp instances.
5462    
5463     * Thuban/UI/classifier.py: Add docstrings.
5464    
5465     * Thuban/UI/dock.py: Add docstrings.
5466    
5467     * test/test_classgen.py: Use renamed Ramp instances.
5468    
5469 bh 1522 2003-07-30 Bernhard Herzog <[email protected]>
5470    
5471 bh 1524 * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
5472     was never used in Thuban.
5473    
5474     2003-07-30 Bernhard Herzog <[email protected]>
5475    
5476 bh 1522 * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
5477     method directly instead of going through the transient_table
5478     method. This faster because transient_table may force the copy of
5479     a DBF file into the transient database and setting a table's title
5480     doesnm't affect the title of the associated transient table, so
5481     this fixes RT #2042
5482    
5483     * Thuban/UI/main.py (__version__): Don't import the already
5484     removed show_exception_dialog.
5485    
5486 jonathan 1517 2003-07-29 Jonathan Coles <[email protected]>
5487    
5488 jonathan 1519 * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
5489     Put back this method and remove the equivalent function since we
5490     are setting the exception hook from within this class (OnInit).
5491    
5492     2003-07-29 Jonathan Coles <[email protected]>
5493    
5494 jonathan 1517 * Doc/manual/images/5_2_custom_ramp.png,
5495     Doc/manual/images/5_2_quantiles.png,
5496     Doc/manual/images/5_2_uniform_dist.png,
5497     Doc/manual/images/5_2_unique_values.png,
5498     Doc/manual/images/8_int_error.png: New screen shots.
5499    
5500     * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
5501     some points, and added more screen shots.
5502    
5503 bh 1512 2003-07-29 Bernhard Herzog <[email protected]>
5504    
5505 bh 1516 * Thuban/Model/data.py: Remove the now unused import of warnings
5506    
5507     2003-07-29 Bernhard Herzog <[email protected]>
5508    
5509 bh 1514 * Thuban/Model/data.py (SimpleStore): Removed. This class has been
5510     deprecated since before the 0.8 release and isn't used in Thuban
5511     itself anymore.
5512    
5513 bh 1512 * Thuban/Model/transientdb.py: Remove some unnecessary imports
5514    
5515 jonathan 1503 2003-07-29 Jonathan Coles <[email protected]>
5516 jonathan 1506
5517     * Thuban/UI/application.py (ThubanApplication.OnInit): set the
5518     python exception hook here so that we are sure to catch any
5519     Thuban exception that happen during initialization.
5520    
5521     * Thuban/UI/main.py (main): Don't set the exception hook here,
5522     it will get set in ThubanApplication.OnInit.
5523    
5524     2003-07-29 Jonathan Coles <[email protected]>
5525 jonathan 1503
5526     * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
5527     Removed and called it show_exception_dialog() so that the exception
5528     handler can be set before the class is created.
5529    
5530     * Thuban/UI/main.py (main): Install the exception handler before
5531     a ThubanApplication is created.
5532    
5533 bh 1500 2003-07-29 Bernhard Herzog <[email protected]>
5534    
5535     * po/it.po: New. Italian translation by Maurizio Napolitano
5536    
5537     * po/ru.po: New. Russian translation by Alex Shevlakov
5538    
5539 frank 1497 2003-07-29 Frank Koormann <[email protected]>
5540    
5541 frank 1508 * Doc/manual/thuban-manual.xml: Extended section on supported
5542     projections.
5543    
5544     2003-07-29 Frank Koormann <[email protected]>
5545    
5546 frank 1497 * Doc/manual/thuban-manual.xml: gaspell-checked.
5547    
5548 jonathan 1493 2003-07-29 Jonathan Coles <[email protected]>
5549    
5550 jonathan 1495 * Doc/manual/images/3_5_legend.png: Added border to improve look
5551     on white background.
5552    
5553     2003-07-29 Jonathan Coles <[email protected]>
5554    
5555 jonathan 1493 * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
5556     descriptions for the legend toolbar.
5557    
5558     * Doc/manual/images/4_2_raster_layer_properties.png: Removed
5559     cursor from dialog box.
5560    
5561     2003-07-28 Jonathan Coles <[email protected]>
5562    
5563     * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
5564    
5565     * Doc/manual/images/2_4_session_tree.png,
5566     Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
5567     Doc/manual/images/4_2_layer_properties.png,
5568     Doc/manual/images/4_2_raster_layer_properties.png,
5569     Doc/manual/images/5_3_genclass.png,
5570     Doc/manual/images/5_classification.png,
5571     Doc/manual/images/6_projection.png,
5572     Doc/manual/images/7_1_table_view.png,
5573     Doc/manual/images/7_2_5_join.png: New screenshots.
5574    
5575     2003-07-24 Jonathan Coles <[email protected]>
5576    
5577     * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
5578    
5579     2003-07-24 Jonathan Coles <[email protected]>
5580    
5581     * Doc/manual/thuban-manual.xml: Added EPS images and wrote
5582     chapter on Layer Management.
5583    
5584     * Doc/manual/Makefile: New. Makefile to generate all formats for the
5585     manual and images.
5586    
5587 bh 1483 2003-07-24 Bernhard Herzog <[email protected]>
5588    
5589     * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
5590     it annoys lintian which warns about these files not being
5591 jan 1767 executable. The #! isn't necessary here since if you absolutely
5592 bh 1483 must execute them you can always say "python <filename>".
5593    
5594     * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
5595     superfluous code to set brush and pen for point shapes
5596    
5597     * Thuban/UI/viewport.py: Remove commented out code that wouldn't
5598     belong in viewport anyway
5599    
5600 frank 1479 2003-07-24 Frank Koormann <[email protected]>
5601    
5602     * Doc/manual/thuban-manual.xml: Added section on table management.
5603    
5604 bh 1477 2003-07-24 Bernhard Herzog <[email protected]>
5605    
5606     * test/runtests.py (main): Recognize the long "verbose" option
5607     correctly.
5608    
5609 jonathan 1470 2003-07-22 Jonathan Coles <[email protected]>
5610    
5611     * Doc/manual/thuban-manual.xml: Continue to write first revision
5612     of the manual.
5613    
5614     * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
5615     with Begin/EndDrawing() calls to ensure we aren't doing to
5616     many updates to the dc during rendering.
5617     (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
5618     a pen and brush argument so they need to be passed to the function.
5619    
5620     * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
5621     Calculates the minimum and maximum scale values. Factored out
5622     of set_view_transform so that it could be used to zoom all the
5623     way into a single point.
5624     (ViewPort.set_view_transform): Call calc_min_max_scales().
5625     (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
5626     if only a single point is selected.
5627    
5628     * Doc/manual/images/1_2_legend_close.png,
5629     Doc/manual/images/1_2_legend_dock.png,
5630     Doc/manual/images/1_2_mainwindow.png,
5631     Doc/manual/images/1_2_mainwindow.ps,
5632     Doc/manual/images/1_2_mainwindow.sk,
5633     Doc/manual/images/3_2_fullextent.png,
5634     Doc/manual/images/3_2_fulllayerextent.png,
5635     Doc/manual/images/3_2_fullshapeextent.png,
5636     Doc/manual/images/3_2_pan.png,
5637     Doc/manual/images/3_2_zoomin.png,
5638     Doc/manual/images/3_2_zoomout.png,
5639     Doc/manual/images/3_3_identify.png,
5640     Doc/manual/images/3_3_label.png,
5641     Doc/manual/images/3_5_invisible.png,
5642     Doc/manual/images/3_5_movedown.png,
5643     Doc/manual/images/3_5_moveup.png,
5644     Doc/manual/images/3_5_props.png,
5645     Doc/manual/images/3_5_tobottom.png,
5646     Doc/manual/images/3_5_totop.png,
5647     Doc/manual/images/3_5_visible.png: New. Images for the documentation.
5648    
5649 bh 1451 2003-07-18 Bernhard Herzog <[email protected]>
5650    
5651 bh 1465 * Thuban/UI/messages.py (MAP_REPLACED): New message.
5652    
5653     * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
5654     after the new map has been assigned
5655    
5656     * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
5657     Delegate MAP_REPLACED to the canvas too
5658     (MainWindow.prepare_new_session): Removed. Thanks to the new
5659     MAP_REPLACED message it's no longer needed
5660     (MainWindow.OpenSession, MainWindow.NewSession):
5661     prepare_new_session has been removed.
5662    
5663     * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
5664     MAP_REPLACED so that we can close the dialog if a new map is set.
5665     (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
5666     (Classifier.map_replaced): Handle MAP_REPLACED by closing the
5667     dialog
5668    
5669     * test/test_viewport.py (SimpleViewPortTest)
5670     (SimpleViewPortTest.test_default_size): Add doc-strings
5671     (ViewPortTest.setUp): Bind map to self.map so we can use it in
5672     tests. Subscribe to MAP_REPLACED messages too.
5673     (ViewPortTest.tearDown): No need to explicitly unsubscribe
5674     (ViewPortTest.test_set_map): New test for the SetMap method.
5675    
5676     2003-07-18 Bernhard Herzog <[email protected]>
5677    
5678 bh 1463 * test/test_viewport.py (SimpleViewPortTest.test_default_size):
5679     Move this test from ViewPortTest.setUp to this new separate test
5680     case. setUp is not the place for the actual tests.
5681     (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
5682     more of the test from setUp to the new test test_inital_settings.
5683     (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
5684     (ViewPortTest.test_proj_conv): Split test_proj_conv into
5685     test_win_to_proj and test_proj_to_win and make the tests easier to
5686     understand
5687     (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
5688     (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
5689     (ViewPortTest.test_unprojected_rect_around_point)
5690     (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
5691     Reformat to increase readability.
5692    
5693     2003-07-18 Bernhard Herzog <[email protected]>
5694    
5695 bh 1461 * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
5696    
5697     2003-07-18 Bernhard Herzog <[email protected]>
5698    
5699 bh 1459 * test/runtests.py: The test suite can now be run without an X
5700     connection. To make sure this remains true, remove the DISPLAY
5701     environment variable so that an error occurs if the wxGTK is
5702     imported accidentally
5703    
5704     2003-07-18 Bernhard Herzog <[email protected]>
5705    
5706 bh 1457 * Thuban/UI/viewport.py: Remove unused imports
5707    
5708     * Thuban/UI/view.py: Remove unused imports
5709    
5710     2003-07-18 Bernhard Herzog <[email protected]>
5711    
5712 bh 1455 * test/test_export.py Remove unused imports. The OutputTransform
5713     function is now in viewport.py and is called output_transform
5714     (TestScalebar.test_output_transform)
5715     (TestScalebar.test_OutputTransform): Renamed to
5716     test_output_transform and updated to use output_transform instead
5717     of OutputTransform
5718    
5719     * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
5720     renamed.
5721     (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
5722     renamed to output_transform
5723    
5724     * Thuban/UI/viewport.py (OutputTransform, output_transform):
5725     Rename to output_transform
5726    
5727     2003-07-18 Bernhard Herzog <[email protected]>
5728    
5729 bh 1453 * Thuban/Model/layer.py (Layer.__init__): Rename
5730     classificationField to classificatin_column and init it here so
5731     that it can be used in SetClassificationColumn
5732     (Layer.GetClassificationColumn, Layer.GetClassificationField):
5733     Rename to GetClassificationColumn.
5734     (Layer.SetClassificationColumn, Layer.SetClassificationField):
5735     Rename to SetClassificationColumn and issue a LAYER_CHANGED
5736     message if the column changes.
5737     (Layer._classification_changed, Layer.ClassChanged): Rename to
5738     _classification_changed. Update the callers.
5739     (Layer.SetShapeStore): Further field->column renames.
5740    
5741     * Thuban/Model/load.py (SessionLoader.start_classification)
5742     (SessionLoader.start_clpoint): Updates because of
5743     field->column method name changes in the Layer class
5744    
5745     * Thuban/Model/save.py (SessionSaver.write_classification): Updates
5746     because of field->column method name changes in the Layer class
5747    
5748     * Thuban/UI/classifier.py (Classifier.__init__)
5749     (Classifier._OnTry, Classifier._OnRevert): Updates because of
5750     field->column method name changes in the Layer class
5751    
5752     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
5753     because of field->column method name changes in the Layer class
5754    
5755     * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
5756     of field->column method name changes in the Layer class
5757    
5758     * test/test_save.py (SaveSessionTest.testClassifiedLayer)
5759     (SaveSessionTest.testClassifiedLayer): Update because of
5760     field->column method name changes in the Layer class
5761    
5762     * test/test_layer.py (SetShapeStoreTests.setUp)
5763     (SetShapeStoreTests.test_sanity): Update because of field->column
5764     method name changes in the Layer class
5765     (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
5766     (TestLayerModification.test_sanity)
5767     (TestLayerModification.test_initial_settings): remove unsued code
5768     and rename to test_sanity.
5769     (TestLayerModification.test_set_classification): New test for
5770     SetClassification and SetClassificationField.
5771    
5772     2003-07-18 Bernhard Herzog <[email protected]>
5773    
5774 bh 1451 * test/test_classgen.py (TestFixedRamp.test): Extend test to check
5775     the non-fixed values as well. The old test would have accepted a
5776     fixed ramp that only returnes the fixed properties
5777    
5778 jonathan 1449 2003-07-17 Jonathan Coles <[email protected]>
5779    
5780     * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
5781     shots for the manual. The XCF file is the source image and
5782     has additional layers to support changes.
5783    
5784     * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
5785    
5786     * Thuban/UI/classifier.py (Classifier.__BuildClassification):
5787     Return both the new class and the field name.
5788    
5789     * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
5790     fit the map to the window as this changes any zoom level that
5791     the user may have set.
5792    
5793 jonathan 1442 2003-07-16 Jonathan Coles <[email protected]>
5794    
5795     * Thuban/Model/classgen.py (generate_singletons,
5796     generate_uniform_distribution, generate_quantiles): Remove
5797     fixes parameter, but maintain the same functionality by having
5798     the calling function pass a FixedRamp object for the ramp.
5799     (FixedRamp): New. Adapts a ramp to have fixed property values.
5800    
5801     * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
5802     (Classification): Inherit from Publisher.
5803     (Classification.__init__): Remove the layer parameter.
5804     Classifications no longer need to have a parent layer.
5805     (Classification.GetField, Classification.GetFieldType,
5806     Classification.SetFieldInfo): Removed. The field name is stored
5807     in the layer, and the type can be retreived by calling
5808     Layer.GetFieldType().
5809     (Classification._set_layer, Classification.GetLayer): Removed.
5810     Classifications no longer have a parent layer.
5811    
5812     * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
5813     classification.
5814     (Layer.SetShapeStore): Reset the classification first while
5815     we still have the old shape store to work with.
5816     (Layer.GetClassificationField, Layer.SetClassificationField):
5817     New. Method for getting/setting the field to classify on.
5818     (Layer.SetClassification): Simplified now that the layer
5819     simply has to hold a reference to the classification and not
5820     tell the classification who owns it.
5821     Fixes RTbug #2023.
5822    
5823     * Thuban/Model/load.py (SessionLoader.start_classification):
5824     Set the field name on the layer, not the classification.
5825    
5826     * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
5827     classification is modified.
5828    
5829     * Thuban/Model/save.py (SessionSaver.write_classification):
5830     Get the field name and type from the layer.
5831    
5832     * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
5833     parameter records to rows and add docstring. Fixes RTbug #1997.
5834    
5835     * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
5836     ramp when we need to fix certain values of a ramp rather than
5837     using the old fixes parameter. Fixes RTbug #2024.
5838    
5839     * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
5840     parameter.
5841     (ClassTable.Reset): Add fieldType parameter and use it, rather
5842     than asking the classification.
5843     (Classifier.__init__): Remember the original class's field
5844     and ask the layer for the field type, rather than the classification.
5845     (Classifier.__SetGridTable): Retrieve the field and field type
5846     for the table because they are not in the classification.
5847     (Classifier._OnTry, Classifier._OnRevert): Set the classification
5848     field on the layer in addition to the classification itself.
5849    
5850     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
5851     classification field from layer.
5852    
5853     * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
5854     classification field from layer. Split up tests and remove
5855     *-imports. Fixes RTbug #1992.
5856    
5857     * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
5858    
5859     * test/test_classification.py
5860     (TestClassification.test_classification): Remove tests for methods
5861     that no longer exist.
5862    
5863     * test/test_layer.py (SetShapeStoreTests.setUp): Classification
5864     __init__ no longer has a field parameter, use SetClassificationField.
5865     (SetShapeStoreTests.test_sanity): Use layer object to get class
5866     field info.
5867    
5868     * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
5869     SetClassificationField on layer to set class field info.
5870    
5871     * test/test_viewport.py: Renamed from test/test_view.py.
5872    
5873 jan 1424 2003-07-16 Jan-Oliver Wagner <[email protected]>
5874    
5875     * Doc/manual/thuban-manual.xml: Added authors and an initial
5876     coarse structure.
5877    
5878 bh 1418 2003-07-15 Bernhard Herzog <[email protected]>
5879    
5880 bh 1422 * test/support.py (FloatComparisonMixin): This is a mix-in class
5881     and therefore should not be derived from any other class.
5882    
5883     * test/test_range.py (RangeTest): FloatComparisonMixin is a
5884     mix-in, so derive from TestCase as well.
5885    
5886     2003-07-15 Bernhard Herzog <[email protected]>
5887    
5888 bh 1420 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
5889     draw_func handling a bit to remove one layer of indirection. This
5890     makes the renderer about 10% faster in the non-classifying case
5891     and the code a bit cleaner
5892     (MapRenderer.draw_point_shape): Add the pen and brush parameters
5893     and set them in the dc. Now the draw_point_shape method and
5894     wxproj's draw_polygon_shape function have basically the same
5895     signature so that both can be directly used as draw_func
5896    
5897     2003-07-15 Bernhard Herzog <[email protected]>
5898    
5899 bh 1418 * Thuban/Model/save.py (SessionSaver.write_classification): Encode
5900     string values (in addition to the labels) as UTF 8
5901    
5902     * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
5903     values if the field type is string
5904    
5905     * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
5906     saving a session with non-ascii string classification values.
5907    
5908     * test/test_load.py (TestClassification.file_contents)
5909     (TestClassification.test): Check for non-ascii values in string
5910     classifications
5911    
5912 jonathan 1416 2003-07-14 Jonathan Coles <[email protected]>
5913    
5914     * test/test_view.py: New. Tests for ViewPort.
5915    
5916 frank 1409 2003-07-14 Frank Koormann <[email protected]>
5917    
5918     * Thuban/Model/load.py (SessionLoader.start_map): Encode map
5919     title to latin1. Fixes https://intevation.de/rt/webrt?serial_num=2013
5920    
5921 frank 1411 * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
5922     unicode strings from session file: session title, map title and
5923     projection name.
5924    
5925 jonathan 1403 2003-07-10 Jonathan Coles <[email protected]>
5926    
5927 jonathan 1406 * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
5928     drag_stop, not drag_move when the mouse is released.
5929    
5930     2003-07-10 Jonathan Coles <[email protected]>
5931    
5932 jonathan 1403 The most important part of this is the seperation of view.py into
5933     two pieces. viewport.py now has a class called ViewPort which
5934     contains all the non-wx parts of view.py and can therefore be
5935     tested. view.py contains only the wx-specific parts and is fairly
5936     simple.
5937    
5938     * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
5939     RTTbug #1992.
5940     * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
5941     RTTbug #1992.
5942    
5943     * Thuban/Model/classgen.py (generate_singletons,
5944     generate_uniform_distribution, generate_quantiles):
5945     Added 'fixes' parameter so that property attributes can
5946     be held constant over the generated classification groups.
5947     (CustomRamp.GetProperties): Remove unused variables.
5948    
5949     * Thuban/Model/map.py (Map.SetProjection): Send the old
5950     projection as an argument to listeners of the MAP_PROJECTION_CHANGED
5951     event.
5952    
5953     * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
5954     parameter which is a list of records that restricts which
5955     records are saved. Fixes RTbug #1997.
5956    
5957     * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
5958     Port exception dialog from GREAT-ER. Fixes RTbug #1993.
5959    
5960     * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
5961     to allow the user to fix line color/width on generated groups.
5962     (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
5963     functions to optionally fix group properties.
5964    
5965     * Thuban/UI/main.py (main): Set exception hook to the
5966     ShowExceptionDialog. Fixes RTbug #1993.
5967    
5968     * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
5969     the table window when it is selectd to be shown.
5970    
5971     * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
5972     Export Selection button and move the export buttons underneath
5973     the table.
5974     (QueryTableFrame.UpdateStatusText): Added event argument so
5975     that it can respond to grid selection events. The status text
5976     is now updated even when the table is not associated with a
5977     layer as was previously assumed.
5978     (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
5979     UpdateStatusText responds to these events.
5980     (QueryTableFrame.OnSaveAs): Renamed to doExport.
5981     (QueryTableFrame.doExport): Helper function that saves the
5982     entire table, or selected rows, to a file.
5983     (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
5984     Respond to export button events and call doExport.
5985    
5986     * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
5987     the function doesn't return NULL without first setting a Python
5988     Error.
5989    
5990     * test/runtests.py (main): Only print "Unknown option" for
5991     unsupported options.
5992    
5993     * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
5994     optional epsilon argument to specify floating point accuracy.
5995     (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
5996     for each item test.
5997    
5998     * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
5999     tests for saving selected records.
6000    
6001     * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
6002     tests for saving selected records.
6003    
6004     * test/test_map.py (TestMapWithContents.test_set_projection):
6005     MAP_PROJECTION_CHANGED events send the old projection.
6006    
6007     * test/test_session.py
6008     (TestSessionWithContent.test_forward_map_projection):
6009     MAP_PROJECTION_CHANGED events send the old projection.
6010    
6011     * test/test_table.py (TableTest): Update tests to use non-deprecated
6012     functions.
6013    
6014 bh 1376 2003-07-08 Bernhard Herzog <[email protected]>
6015    
6016 bh 1382 * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
6017     constants in the column objects are the standard ones defined in
6018     the table module.
6019    
6020     * test/test_transientdb.py
6021     (TestTransientTable.test_transienttable_to_dbf): New. Test whether
6022     exporting transient tables as DBF works. This should catch the bug
6023     just fixed in TransientTableBase.Width.
6024    
6025     2003-07-08 Bernhard Herzog <[email protected]>
6026    
6027 bh 1380 * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
6028     interpolated colors correctly.
6029    
6030     * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
6031     New. Test case for the fix in classgen.py
6032    
6033     2003-07-08 Bernhard Herzog <[email protected]>
6034    
6035 bh 1378 * test/runtests.py (main): Make the default output less verbose
6036     and add a verbosity option (-v) to get the old output
6037    
6038     2003-07-08 Bernhard Herzog <[email protected]>
6039    
6040 bh 1376 * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
6041     0.9.
6042    
6043     * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
6044     New. Return the join type
6045    
6046     * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
6047     DTD
6048     (SessionSaver.write_data_containers): Save the join type for
6049     joined tables
6050    
6051     * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
6052     namespace
6053     (SessionLoader.start_jointable): Handle the jointype attribute
6054    
6055     * test/test_load_0_8.py: New. Effectively a copy of test_load.py
6056     as of Thuban 0.8. These are now tests to determine whether Thuban
6057     can still read files generated by Thuban 0.8
6058    
6059     * test/test_load.py (LoadSessionTest.dtd)
6060     (TestSingleLayer.file_contents)
6061     (TestLayerVisibility.file_contents, TestLabels.file_contents)
6062     (TestLayerProjection.file_contents)
6063     (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
6064     (TestJoinedTable.file_contents)
6065     (TestLoadError.file_contents): Update for new DTD
6066     (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
6067     for new join type attribute
6068    
6069     * test/test_save.py (SaveSessionTest.dtd)
6070     (SaveSessionTest.testEmptySession)
6071     (SaveSessionTest.testSingleLayer)
6072     (SaveSessionTest.testLayerProjection)
6073     (SaveSessionTest.testRasterLayer)
6074     (SaveSessionTest.testClassifiedLayer)
6075     (SaveSessionTest.test_dbf_table)
6076     (SaveSessionTest.test_joined_table): Update for new DTD
6077     (SaveSessionTest.test_joined_table): Add test for new join type
6078     attribute
6079    
6080 bh 1372 2003-07-04 Bernhard Herzog <[email protected]>
6081    
6082     * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
6083     function for table_to_dbf
6084     (table_to_dbf): Deal with names longer than the 10 character limit
6085    
6086     * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
6087     doc-string
6088     (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
6089     long column names
6090    
6091 bh 1365 2003-07-03 Bernhard Herzog <[email protected]>
6092    
6093 bh 1370 * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
6094    
6095     2003-07-03 Bernhard Herzog <[email protected]>
6096    
6097 bh 1368 * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
6098     for the Thuban manual and README with some basic information about
6099     the manual
6100    
6101     2003-07-03 Bernhard Herzog <[email protected]>
6102    
6103 bh 1365 * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
6104     Update doc-string
6105     (TransientJoinedTable.create): Do not modify the column objects of
6106     the input tables in place and copy all columns of the input tables
6107     into the joined table after all.
6108    
6109     * test/test_transientdb.py
6110     (TestTransientTable.test_transient_joined_table_same_column_name):
6111     Update to reflect the new behavior
6112     (TestTransientTable.test_transient_joined_table_with_equal_column_names):
6113     Update to reflect the new behavior
6114     (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
6115     New test case for a bug which modified the column objects in place
6116    
6117 jonathan 1360 2003-07-02 Jonathan Coles <[email protected]>
6118 jonathan 1349
6119 jonathan 1360 * Thuban/Model/classgen.py (generate_singletons,
6120     generate_uniform_distribution, generate_quantiles,
6121 jonathan 1363 GenQuantiles0): Make sure maxValue isn't less than
6122     one, otherwise we could divide by zero.
6123    
6124     * test/test_classgen.py (ClassGenTest.doClassRangeTest,
6125     ClassGenTest.doClassSingleTest): Call doBoundsTest to
6126     check the end classification groups against the
6127     proper property values.
6128     (ClassGenTest.doBoundsTest): New. Checks the first and
6129     last classification groups to make sure their properties
6130     are the correct upper and lower bounds for a color ramp.
6131    
6132     2003-07-02 Jonathan Coles <[email protected]>
6133    
6134     * Thuban/Model/classgen.py (generate_singletons,
6135     generate_uniform_distribution, generate_quantiles,
6136 jonathan 1360 GenQuantiles0): The denominator was one to high when
6137     calculating the index for the ramp causing the index
6138     to never to reach one.
6139    
6140     2003-07-02 Jonathan Coles <[email protected]>
6141    
6142 jonathan 1358 Changed the singature of ClassGroupRange.__init__ and
6143     ClassGroupRange.SetRange() so that the min/max values are
6144     passed as a tuple. This makes a better calling scheme for
6145     when a Range object is passed instead.
6146    
6147     * Thuban/Model/classgen.py: Fixed parameters to
6148     ClassGroupRange constructor.
6149    
6150     * Thuban/Model/classification.py (ClassGroupRange.__init__):
6151     Consolidate the min/max parameters into a single _range which
6152     can either be a tuple or a Range object.
6153     (ClassGroupRange.SetRange): Consolidate the min/max parameters
6154     into a single _range which can either be a tuple or a Range object.
6155    
6156     * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
6157     call to ClassGroupRange constructor to use a tuple.
6158    
6159     * Thuban/Model/layer.py (Layer.SetClassification): Switch
6160     the classification instance variable to the new class
6161     before calling _set_layer otherwise subscribers to a
6162     LAYER_CHANGED event will not see any difference.
6163    
6164     * test/test_classification.py: Fix tests of ClassGroupRange
6165     so that they use the new signature.
6166    
6167     * test/test_load.py: Fix use of ClassGroupRange so that it
6168     uses the new signature.
6169    
6170     * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
6171     uses the new signature.
6172    
6173     * test/test_save.py: Fix use of ClassGroupRange so that it
6174     uses the new signature.
6175    
6176    
6177     2003-07-01 Jonathan Coles <[email protected]>
6178    
6179 jonathan 1349 * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
6180     Import used objects/class from color.
6181     (generate_singletons): We don't
6182     need the numGroups parameter anymore because we are using
6183     the new ramps with GetProperties().
6184     (generate_uniform_distribution): Use new ramp method
6185     GetProperties().
6186     (generate_quantiles, GenQuantiles0): Use new ramp method
6187     GetProperties().
6188     (CustomRamp.SetNumGroups): Removed. The ramps now map
6189     a value from 0 to 1 to class properties so the number
6190     of groups is not needed ahead of time.
6191     (CustomRamp.next): Removed. CustomRamp does not support
6192     interation anymore.
6193     (CustomRamp.GetProperties): Returns a ClassGroupProperties
6194     object based on the index value from 0 to 1 that is
6195     passed to it.
6196     (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
6197     Made into instances of Monochromatic class instread of
6198     deriving from it.
6199     (HotToCold.SetNumGroups): Removed. See CustomRamp.
6200     (HotToCold.next): Removed. See CustomRamp.
6201    
6202     * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
6203     (Classification.SetField, Classification.SetFieldType):
6204     Replaced with SetFieldInfo.
6205     (Classification.SetFieldInfo): New. Does a better job of
6206     what SetField and SetFieldType used to do by combining
6207     their function since they should really always be done
6208     at the same time.
6209     (Classification.SetLayer): Renamed to _set_layer.
6210     (Classification._set_layer): Should only be called from
6211     Layer's SetClassification. This does not cause a recursive
6212     call as SetLayer did because we know that Layer knows about
6213     the classification.
6214    
6215     * Thuban/Model/color.py: Fixes RTbug #1971.
6216     (_Transparent): Renamed from Transparent so it doesn't
6217     conflict with the module variable.
6218     (Transparent, Black): Renamed from Color.Transparent,
6219     Color.Black so they are not class variables.
6220    
6221     * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
6222     (Layer.Destroy): We don't need to call SetClassification
6223     anymore to clear out the back reference in the classifcation
6224     to the layer. It's better to set it to None using _set_layer,
6225     and we won't be creating another clas object too.
6226     (Layer.SetClassification): Classification._set_layer is not
6227     recursive so remove all the locking variables. Also clean
6228     up the code so that it remains unchanged if something fails.
6229    
6230     * Thuban/Model/load.py: Fixes RTbug #1971.
6231     (SessionLoader.start_classification): Call
6232     Classification.SetFieldInfo().
6233    
6234     * Thuban/Model/save.py: Removed import of Color which wasn't
6235     being used.
6236    
6237     * Thuban/UI/classgen.py: Fixes RTbug #1972.
6238     (ClassGenDialog.__init__): Color ramps are now instances
6239     already so we don't need to create any new objects.
6240     (ClassGenDialog.OnOK): Check for numGroups is no longer
6241     necessary because we never use it.
6242    
6243     * Thuban/UI/classifier.py: Fixes RTbug #1971.
6244     (Classifier.__BuildClassification, Classifier.__SetGridTable):
6245     Call Classification.SetFieldInfo() instead of SetFieldType.
6246    
6247     * Thuban/UI/renderer.py: Fixes RTbug #1971.
6248    
6249     * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
6250     (MapCanvas.__init__): Subscribe to the idle time event. Set
6251     background color to white.
6252     (MapCanvas.OnPaint): Set a flag indicating that we should
6253     render the map during idle time. If we already have a bitmap
6254     just draw it now.
6255     (MapCanvas.OnIdle): New. Render the map only during idle time.
6256     This also fixes a problem with the busy cursor under gtk.
6257    
6258     * test/test_classgen.py (ClassGenTest.test_generate_singletons):
6259     Fix calls to generate_singletons because the signature changed.
6260    
6261     * test/test_classification.py: Fix color references and
6262     change calls to Classification.[SetField|SetFieldType] to
6263     SetFieldInfo.
6264    
6265     * test/test_load.py: Fix color references.
6266    
6267     * test/test_load_0_2.py: Fix color references.
6268    
6269     * test/test_save.py (SaveSessionTest.testClassifiedLayer):
6270     Change calls to Classification.[SetField|SetFieldType] to
6271     SetFieldInfo.
6272    
6273 frank 1334 2003-07-01 Frank Koormann <[email protected]>
6274    
6275     MERGE from the greater-ms3 branch.
6276    
6277     * test/test_transientdb.py
6278     (TestTransientTable.test_transient_joined_table_with_equal_column_names):
6279     New. Test join of two tables with partly equal column names.
6280    
6281     * Thuban/Model/transientdb.py (TransientJoinedTable.create):
6282     If duplicates in left and right tables column names are found,
6283     append '_' (underscores) to the name until it is unique.
6284     Create always new internal names for the resulting table and reference
6285     columns in the join statement with <table>.<column>
6286    
6287 bh 1329 2003-07-01 Bernhard Herzog <[email protected]>
6288    
6289     * test/test_transientdb.py
6290     (TestTransientTable.test_transient_joined_table_same_column_name):
6291     New. Test whether joining on columns with the same names in both
6292     tables works.
6293 frank 1334
6294 bh 1329 * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
6295     sure to use the right internal names even when joining on field
6296     with the same names in both tables. Also, detect duplicate names
6297     in the joined table correctly.
6298    
6299 frank 1325 2003-07-01 Frank Koormann <[email protected]>
6300    
6301     * Thuban/UI/renderer.py (ExportRenderer.render_legend):
6302     Reverse List of layers to render in same order as in desktop legend.
6303    
6304 jonathan 1318 2003-06-30 Jonathan Coles <[email protected]>
6305    
6306 jonathan 1349 * Thuban/version.py (make_tuple): Takes a version string
6307     and splits it into a tuple of at most three integers.
6308     Used make_tuple() to make tuple versions of the version
6309     numbers.
6310    
6311     * Thuban/UI/about.py: Add Thuban email addresses.
6312    
6313     2003-06-30 Jonathan Coles <[email protected]>
6314    
6315 jonathan 1320 * Thuban/version.py: SQLite/PySQLite version dependencies
6316     were too high.
6317    
6318     2003-06-30 Jonathan Coles <[email protected]>
6319    
6320 jonathan 1318 * Thuban/version.py: Update version to 0.8.1
6321    
6322     * MANIFEST.in: Added Projections so that default.proj is
6323     included.
6324    
6325 jonathan 1312 2003-06-26 Jonathan Coles <[email protected]>
6326    
6327     New About box with lots more information including library
6328     versions and credits. More/better version checking before
6329     Thuban starts.
6330    
6331     * Thuban/UI/about.py: New. New About box that displays
6332     library version information and credits.
6333    
6334     * Thuban/version.py: Added new 'versions' dictionary which
6335     contains the verions of various libraries which are checked
6336     when the module loads.
6337     (verify_versions): Check all version numbers and returns
6338     a list of errors.
6339    
6340     * Thuban/UI/classifier.py (Classifier.__EnableButtons):
6341     Reset the status of the buttons as the situation warrants,
6342     but in a better more reliable way by not relying on the
6343     current status to determine what needs to change.
6344    
6345     * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
6346     (verify_versions): Remove most of the code since it is
6347     now in Thuban.version.verify_versions.o
6348    
6349     * Thuban/UI/mainwindow.py (MainWindow.About): Call new
6350     About box in Thuban.UI.about.
6351    
6352     * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
6353     Returns the version of gdal library being used as a string.
6354    
6355     * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
6356     Removed.
6357     (get_proj_version): Return the version of PROJ that the file
6358     was compiled with.
6359     (get_gtk_version): Return th version of GTK that the file
6360     was compiled with.
6361    
6362 jonathan 1304 2003-06-25 Jonathan Coles <[email protected]>
6363    
6364     * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
6365     of the SelectPropertiesDialog should be self so the window
6366     appears on top.
6367     (ClassGroupPropertiesCtrl.DoEdit): The parent
6368     of the SelectPropertiesDialog should be self so the window
6369     appears on top.
6370    
6371     * Thuban/UI/resource.py: Cleaned up how we determine file
6372     extensions.
6373     (GetImageResource): Return an wxImage from our Resources.
6374    
6375 jonathan 1299 2003-06-24 Jonathan Coles <[email protected]>
6376    
6377     * Thuban/UI/renderer.py (ExportRenderer.render_legend):
6378     Check that a layer has a classification before trying
6379     to get it. Raster layers don't have classifications.
6380    
6381 jonathan 1286 2003-06-23 Jonathan Coles <[email protected]>
6382 jonathan 1297
6383     * setup.py: Add Resources/XML to resource list.
6384    
6385     2003-06-23 Jonathan Coles <[email protected]>
6386 jonathan 1286
6387 jonathan 1297 * setup.cfg: Fix copyright dates
6388    
6389     2003-06-23 Jonathan Coles <[email protected]>
6390    
6391 jonathan 1294 * MANIFEST.in: Update with Resources/XML
6392    
6393     * setup.py: Don't include Locale resources yet as we don't
6394     have any and it causes problems building the distribution
6395     for Windows. Update version to 0.8.0.
6396    
6397     * Doc/thuban.dtd: Removed since it is now in Resources/XML.
6398    
6399     * Thuban/UI/mainwindow.py: Add blank line at the end because
6400     file was not being read correctly building the Windows
6401     distribution.
6402    
6403     2003-06-23 Jonathan Coles <[email protected]>
6404    
6405 jonathan 1289 * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
6406    
6407     * Thuban/version.py: Temporarily update longversion for
6408     the 0.8 release so that it doesn't have the cvs revision.
6409    
6410     2003-06-23 Jonathan Coles <[email protected]>
6411    
6412 jonathan 1286 * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
6413     to make sure that we don't create reentrant possibilities with
6414     wxYield.
6415    
6416     * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
6417     directly to avoid the wxSafeYield() call which generates an
6418     OnPaint event causing infinite recursion. Don't try to catch
6419     exception anymore. This was for before there were limits on map
6420     scaling.
6421    
6422 bh 1283 2003-06-23 Bernhard Herzog <[email protected]>
6423    
6424     Bug fix for RT #1961:
6425    
6426     * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
6427     Register DerivedShapestores with the session
6428    
6429     * Thuban/Model/session.py (Session.Tables): Make sure each table
6430     is only listed once.
6431    
6432     * test/test_load.py (TestJoinedTable.test): Add check_format call.
6433     Update file contents to match the one written out.
6434    
6435 bh 1281 2003-06-20 Bernhard Herzog <[email protected]>
6436    
6437     * test/xmlsupport.py (SaxEventLister.startElementNS)
6438     (SaxEventLister.endElementNS): Do not include the qname. Python
6439     2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
6440     is (presumably incorrectly) None, whereas it's a string with the
6441     element name in the later versions.
6442    
6443     * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
6444     (TestEventList.test_even_list_namespace): Update tests to reflect
6445     the new behaviour
6446     (TestEventList.test_even_list_id_normalization): Fix doc-string
6447    
6448 jonathan 1272 2003-06-20 Jonathan Coles <[email protected]>
6449    
6450 jonathan 1279 * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
6451     by deriving classes to determine if that layer supports shapes.
6452     (Layer): Override HasShapes and return true.
6453    
6454     * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
6455     instead of a direct call to wx[Begin|End]CusyCursor().
6456     (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
6457     table data.
6458    
6459     * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
6460     New. Wrappers around the wxWindows functions that allow us to
6461     make additional calls such as wxYield which gives the native
6462     system a chance to update the cursor correctly.
6463    
6464     * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
6465     instead of a direct call to wx[Begin|End]CusyCursor().
6466    
6467     * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
6468     instead of a direct call to wx[Begin|End]CusyCursor().
6469     (MapCanvas.find_shape_at): Check if the current search layer
6470     support shapes, otherwise go on to the next layer.
6471    
6472     * test/test_layer.py: Add tests in each type of layer for
6473     HasClassification() and HasShapes()
6474    
6475     2003-06-20 Jonathan Coles <[email protected]>
6476    
6477 jonathan 1272 * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
6478     turning on the busy cursor to allow the system to change the
6479     cursor before we begin painting. This fixes a problem that
6480     was occuring only under GTK. Fixes RTbug #1840.
6481    
6482 bh 1270 2003-06-20 Bernhard Herzog <[email protected]>
6483    
6484     * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
6485     version.
6486    
6487     * Thuban/Model/save.py (sort_data_stores): New. Make topological
6488     sort of the data sources so they can be written with sources that
6489     data sources that depend on other data sources come after the
6490     sources they depend on.
6491     (SessionSaver.__init__): Add idmap instance variable to map from
6492     objects to the ids used in the file.
6493     (SessionSaver.get_id, SessionSaver.define_id)
6494     (SessionSaver.has_id): New. Methods to manage the idmap
6495     (SessionSaver.write): Use thuban-0.8.dtd
6496     (SessionSaver.write_session): Add a namespace on the session and
6497     write out the data sources before the maps.
6498     (SessionSaver.write_data_containers): New. Write the data
6499     containers.
6500     (SessionSaver.write_layer): Layer elements now refer to a
6501     shapestore and don't contain filenames anymore.
6502    
6503     * Thuban/Model/load.py (LoadError): Exception class to raise when
6504     errors in the files are discovered
6505     (SessionLoader.__init__): Define dispatchers for elements with a
6506     thuban-0.8 namespace too.
6507     (SessionLoader.check_attrs): New helper method to check and
6508     convert attributes
6509     (AttrDesc): New. Helper class for SessionLoader.check_attrs
6510     (SessionLoader.start_fileshapesource)
6511     (SessionLoader.start_derivedshapesource)
6512     (SessionLoader.start_filetable, SessionLoader.start_jointable):
6513     Handlers for the new elements in the new fileformat
6514     (SessionLoader.start_layer): Handle the shapestore attribute in
6515     addition to filename.
6516     (SessionLoader.start_table, SessionLoader.end_table): Removed.
6517     They were never used in the old formats and aren't needed for the
6518     new.
6519    
6520     * Thuban/Model/session.py (Session.DataContainers): New method to
6521     return all "data containers", i.e. shapestores and tables
6522    
6523     * test/xmlsupport.py (SaxEventLister.__init__)
6524     (SaxEventLister.startElementNS, sax_eventlist): Add support to
6525     normalize IDs.
6526    
6527     * test/test_xmlsupport.py
6528     (TestEventList.test_even_list_id_normalization): New test case for
6529     id normalization
6530    
6531     * test/test_load.py (LoadSessionTest.check_format): Use ID
6532     normalization
6533     (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
6534     class atrributes used for ID normalization
6535     (TestSingleLayer, TestLayerVisibility, TestLabels.test)
6536     (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
6537     file format
6538     (TestJoinedTable): New test for loading sessions with joined
6539     tables.
6540     (TestLoadError): New. Test whether missing required attributes
6541     cause a LoadError.
6542    
6543     * test/test_save.py (SaveSessionTest.thubanids)
6544     (SaveSessionTest.thubanidrefs): New class attributes for ID
6545     normalization in .thuban files.
6546     (SaveSessionTest.compare_xml): Use id-normalization.
6547     (SaveSessionTest.testEmptySession)
6548     (SaveSessionTest.testLayerProjection)
6549     (SaveSessionTest.testRasterLayer)
6550     (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
6551     (SaveSessionTest.testLayerProjection): The filename used was the
6552     same as for testSingleLayer. Use a different one.
6553     (SaveSessionTest.test_dbf_table)
6554     (SaveSessionTest.test_joined_table): New test cases for saving the
6555     new data sources structures.
6556     (TestStoreSort, MockDataStore): Classes to test the sorting of the
6557     data stores for writing.
6558    
6559     * test/runtests.py: Add CVS keywords
6560    
6561 jonathan 1265 2003-06-20 Jonathan Coles <[email protected]>
6562    
6563 jonathan 1267 * test/test_session.py
6564     (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
6565     Use the cultural_landmark-point.dbf file for the store so that
6566     the table rows and shape count match.
6567    
6568     2003-06-20 Jonathan Coles <[email protected]>
6569    
6570 jonathan 1265 * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
6571     an exception if the number of shapes is different from the
6572     number of rows in the table. Address RTbug #1933.
6573    
6574     * test/test_layer.py (TestLayer.test_derived_store): Add
6575     a test for the new exception in DerivedShapeStore.__init__.
6576    
6577     * test/support.py (FloatTestCase): Removed since there is
6578     already FloatComparisonMixin. Fixes RTbug #1954.
6579     (FloatComparisonMixin.assertFloatEqual): Include test for
6580     infinity that was part of FloatTestCase.
6581    
6582     * test/test_range.py (RangeTest): Inherit from
6583     support.FloatComparisonMixin now that we don't have
6584     support.FloatTestCase.
6585    
6586 bh 1256 2003-06-20 Bernhard Herzog <[email protected]>
6587    
6588 bh 1260 * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
6589     the implementation in xmlsupport instead.
6590     (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
6591    
6592     * test/test_proj.py: Import sax_eventlist from xmlsupport instead
6593     of test_save
6594    
6595     2003-06-20 Bernhard Herzog <[email protected]>
6596    
6597 bh 1258 * test/test_load.py (LoadSessionTest.check_format): New helper
6598     method to make sure the test files we load might have been written
6599     by the current thuban version.
6600     (ClassificationTest.TestLayers, TestSingleLayer.test)
6601     (TestLayerVisibility.test, TestClassification.test)
6602     (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
6603     Add check_format() calls and fix the thuban data to match the data
6604     that would be written by saving the session loaded from it.
6605    
6606     * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
6607     the same class and function in test_save.
6608    
6609     * test/test_xmlsupport.py (TestEventList): New. test cases for
6610     sax_eventlist
6611    
6612     2003-06-20 Bernhard Herzog <[email protected]>
6613    
6614 bh 1256 * Resources/XML/thuban.dtd: Add comment about which versions of
6615     Thuban are covered by this DTD
6616     (map): Fix content model for layers and raster layers. There can
6617     be any number or layers and raster layers in any order.
6618    
6619 jonathan 1254 2003-06-20 Jonathan Coles <[email protected]>
6620    
6621 jonathan 1265 This is mainly about fixing RTbug #1949.
6622    
6623 jonathan 1254 * Thuban/Model/classification.py: Remove "from __future__"
6624     import statement since python 2.2 is the earliest supported
6625     version.
6626    
6627     * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
6628     Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
6629     depending on the units this projection *forwards* into.
6630    
6631     * Thuban/Model/save.py (SessionSaver.write_classification):
6632     Remove unnecessary use of lambdas and nested functions.
6633    
6634     * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
6635     adjustment here if the map projection uses degrees.
6636    
6637     * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
6638     scale adjust code since it is now done before calling
6639     this method. Don't do anything if the map projection
6640     is None.
6641    
6642 bh 1244 2003-06-19 Bernhard Herzog <[email protected]>
6643    
6644 bh 1248 Move version specific load tests to their own file.
6645    
6646     * test/test_load.py: Expand the doc-string to explain a bit how to
6647     handle file format changes.
6648     (TestClassification.test): Update the docstring as this test is
6649     not about Thuban 0.2 anymore.
6650    
6651     * test/test_load_0_2.py: New file with the load tests for thuban
6652     files created with Thuban 0.2 and earlier.
6653    
6654     2003-06-19 Bernhard Herzog <[email protected]>
6655    
6656 bh 1246 Add XML validation to some of the tests. Validation will only be
6657     done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
6658     To make the DTD available to the test cases it's moved into
6659     Resources/XML
6660    
6661     * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
6662     for versions up to and including 0.2. Two slight changes: added an
6663     encoding specification and fixed the comment which refered to
6664     GRASS, not Thuban
6665    
6666     * test/xmlsupport.py: New support module for tests involving XML.
6667     Currently there's a mix-in class for XML validation.
6668    
6669     * test/test_xmlsupport.py: New. Tests for the xmlsupport module
6670    
6671     * test/test_save.py (SaveSessionTest): Derive from ValidationTest
6672     so that we can validate the
6673     (SaveSessionTest.testEmptySession)
6674     (SaveSessionTest.testSingleLayer)
6675     (SaveSessionTest.testSingleLayer)
6676     (SaveSessionTest.testLayerProjection)
6677     (SaveSessionTest.testRasterLayer)
6678     (SaveSessionTest.testClassifiedLayer): Validate the generated XML
6679    
6680     * test/runtests.py (main): Call print_additional_summary instead
6681     of print_garbage_information
6682    
6683     * test/support.py (resource_dir): New function to return the
6684     "Resource" subdirectory
6685     (print_additional_summary): New function to combine several
6686     summary functions
6687     (run_tests): Use print_additional_summary instead of calling
6688     print_garbage_information directly
6689    
6690     2003-06-19 Bernhard Herzog <[email protected]>
6691    
6692 bh 1244 * Doc/thuban.dtd (classification): Correct the content model of
6693     the classification element.
6694     (projection): Add the "name" attribute
6695    
6696 frank 1242 2003-06-19 Frank Koormann <[email protected]>
6697    
6698     MERGE from the greater-ms3 branch.
6699    
6700     * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
6701     scale if projection is latlong to get better estimate.
6702    
6703     Fix problem of hidden properties dialog under windows after double
6704     click on layer tree:
6705     The tree control always gets an Expanded / Collapsed event after
6706 joey 2162 the ItemActivated on double click, which raises the main window again.
6707     We add a second ItemActivated event to the queue, which simply
6708 frank 1242 raises the already displayed window.
6709    
6710     * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
6711     raiseProperties initialized to prevent endless loops
6712     (LegendTree._OnItemActivated): Depending on self.raiseProperties
6713     simply raise the properties or open the dialog and issue a second
6714     event.
6715    
6716 jonathan 1235 2003-06-18 Jonathan Coles <[email protected]>
6717    
6718 jonathan 1239 * setup.py: Fix a few problems that occured under Windows.
6719    
6720     2003-06-18 Jonathan Coles <[email protected]>
6721    
6722 jonathan 1235 When Thuban loaded the map was redrawn twice because the
6723     legend was being opened after the mainwindow was created
6724     and not during its creation. This meant the map was drawn
6725     initially and then had to be redrawn when the legend
6726     caused the display to change. Now the legend is opened
6727     in the mainwindow constructor which resolves this issue.
6728    
6729     Also, although we were checking for the existence of
6730     gdal and gdalwarp modules, the gdalwarp extension was
6731     still being compiled (which may fail if the system doesn't
6732     have gdal installed). the build_ext command to setup.py
6733     now accepts the flags --with-gdal and --without-gdal.
6734     If --without-gdal is specified setup.py will try to
6735     use the gdal parameters specified by gdal-config. Under
6736     windows, those parameters have to be set in setup.py
6737     as with proj4 an wxWindows.
6738    
6739     * setup.py: Use a list instead of seperate variables for
6740     extension parameters so we can create a generic function
6741     that runs an appropriate *-config script.
6742     (run_cs_script): Renamed from run_wx_script and modified
6743     to accept a second argument which is a list of lists to
6744     be filled in by the values returned from running the command.
6745     (thuban_build_ext): New. Extends the build_ext command and
6746     provides the options --with-gdal/--without-gdal which then
6747     optionally includes the gdalwarp extension.
6748    
6749     * Thuban/Model/resource.py: First check if we can import
6750     the gdalwarp Thuban extension before checking for gdal.
6751     Also added some comments.
6752    
6753     * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
6754     the map is None which may be the case if none has been loaded
6755     yet.
6756    
6757     * Thuban/UI/main.py (main): Remove call to ShowLegend.
6758    
6759     * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
6760    
6761     * Thuban/UI/renderer.py: Check for gdal support before importing
6762     gdalwarp.
6763     (MapRenderer.render_map): Only try to optimize if we have gdal
6764     support otherwise nothing will get drawn.
6765    
6766 jonathan 1237 * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
6767     during startup before a map has been created. Check if map is None
6768     before using it and do nothing if it is.
6769    
6770 jonathan 1224 2003-06-17 Jonathan Coles <[email protected]>
6771    
6772     Fix the problem with raster layers under Windows that caused
6773     Thuban to crash. The view should respond to layer projection
6774     changed events to update the display. Changes to a projection
6775     should not cause the map to be set to full extent.
6776    
6777     * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
6778     current_map_proj to remember the current map projection so that
6779     when the projection changes we know what the previous projection
6780     was.
6781     (MapCanvas.SetMap): Unsubscribe and subscribe to
6782     LAYER_PROJECTION_CHANGED events.
6783     (MapCanvas.projection_changed): Split into two methods that respond
6784     to map and layer projection changes.
6785     (MapCanvas.map_projection_changed): New. Takes the current view and
6786     projects it using the new projection. This does not cause the
6787     map to be redrawn at full extent.
6788     (MapCanvas.layer_projection_changed): New. Cause a redraw which
6789     will draw each layer in its new projection.
6790    
6791     * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
6792     VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
6793     under Windows.
6794    
6795     * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
6796     to twice sizeof(void*) because there are two digits for each
6797     hex byte.
6798    
6799 bh 1220 2003-06-16 Bernhard Herzog <[email protected]>
6800    
6801     Update to the layer interface: Direct access to the table,
6802     shapetable, shapefile and filename attributes is now actively
6803     deprecated by issuing deprecation warnings for all places where
6804     this happens.
6805    
6806     * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
6807     to the instance variables table, shapetable, shapefile and
6808     filename via __getattr__ so that we can issue a deprecation
6809     warning.
6810     (Layer.SetShapeStore): Don't set the deprecated instance variables
6811     any more
6812     (Layer.SetShapeStore): Don't use deprecated layer instance
6813     variables
6814     (Layer.Destroy): No need to explicitly remove the instance
6815     variables any more
6816     (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
6817     instance variables
6818    
6819     * Thuban/UI/classgen.py (ClassGenDialog.__init__)
6820     (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
6821     (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
6822     use deprecated layer instance variables
6823    
6824     * Thuban/UI/classifier.py (Classifier.__init__): Don't use
6825     deprecated layer instance variables
6826    
6827     * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
6828     (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
6829     instance variables
6830    
6831     * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
6832     deprecated layer instance variables
6833    
6834     * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
6835     deprecated layer instance variables
6836    
6837     * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
6838     deprecated layer instance variables
6839    
6840     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
6841     (MapRenderer.polygon_render_param): Don't use deprecated layer instance
6842     variables
6843    
6844     * test/runtests.py (main): Turn Thuban's deprecation warnings into
6845     errors so that they're cought by the tests
6846    
6847     * test/test_load.py (TestSingleLayer.test): Don't use deprecated
6848     layer instance variables
6849    
6850 jonathan 1212 2003-06-16 Jonathan Coles <[email protected]>
6851    
6852     Fix a problem under Windows whereby if the user double-clicks on a
6853     layer in the legend that tree item will expand or collapse as well
6854     as open the layer properties dialog. The state of the tree item
6855     should not be affected.
6856    
6857     * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
6858     preventExpandCollapse and subscribe to expanding and collapsing
6859     events.
6860     (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
6861     collapsing events and will veto the event if it has been triggered
6862     by the user double clicking on a layer.
6863     (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
6864     that an expanding/collapsing event should be vetoed.
6865    
6866 bh 1208 2003-06-13 Bernhard Herzog <[email protected]>
6867    
6868     * Thuban/UI/classifier.py (Classifier.OnClose)
6869     (Classifier.map_layers_removed)
6870     (Classifier.layer_shapestore_replaced): Unsubscribe the messages
6871     in OnClose and not in map_layers_removed or
6872     layer_shapestore_replaced to make sure it always happens when the
6873     dialog is closed
6874    
6875 jonathan 1201 2003-06-13 Jonathan Coles <[email protected]>
6876    
6877 jonathan 1203 This puts back a fix for Windows where a panel is needed so that
6878     the background of the table view appears correctly.
6879    
6880     * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
6881     object that can be used by derived classes to place any
6882     controls (including the grid) onto.
6883     (QueryTableFrame.__init__): Use the panel as the parent window
6884     for all the controls. Reparent the grid so that the panel is
6885     the parent. Call UpdateStatusText() to correctly initialize
6886     the status bar.
6887    
6888     2003-06-13 Jonathan Coles <[email protected]>
6889    
6890 jonathan 1201 * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
6891     from wxFrame (as opposed to wxDialog like the other classes)
6892     but otherwise behaves like the other classes. This is needed
6893     for the TableView which isn't really a dialog and needs to
6894     have a status bar and control buttons.
6895    
6896     * Thuban/UI/tableview.py (TableGrid.__init__): Create an
6897     instance variable to keep track of how many rows are selected.
6898     Subscribe once to the the events we are interested in.
6899     (ThubanGrid.OnRangeSelect): Only handle event if event handling
6900     hasn't been turned off.
6901     (ThubanGrid.OnSelectCell): Only handle event if event handling
6902     hasn't been turned off.
6903     (ThubanGrid.ToggleEventListeners): Rather than subscribe None
6904     as an event listener (which changes the event handler stack)
6905     simply set an instance variable to False. This is checked in
6906     the event handlers.
6907     (ThubanGrid.GetNumberSelected): Return the number of currently
6908     selected rows.
6909     (TableFrame): Inherit from ThubanFrame so we can have a
6910     status bar and control buttons.
6911     (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
6912     Explicitly set which items are selected in the operator choice and
6913     action choice so there is always a valid selection. Fixes RTbug #1941.
6914     Subscribe to grid cell selection events so we can update the
6915     status bar.
6916     (QueryTableFrame.UpdateStatusText): Update the status bar with
6917     how many rows are in the grid, how many columns, and how many
6918     rows are selected.
6919     (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
6920     Call UpdateStatusText when cells are (de)selected.
6921     (QueryTableFrame.OnQuery): Use the string value in the value
6922     combo if either the selected item index is 0 or if the string
6923     cannot be found in the predefined list (this happens if the
6924     user changes the text). Fixes RTbug #1940.
6925     Only turn off the grid event listeners if there a query comes
6926     back with a none empty list of ids. in the case that the list
6927     is empty this causes a grid.ClearSelection() call to actually
6928     clear the grid selection which causes the selected items in
6929     the map to be deselected. Fixes RTbug #1939.
6930    
6931     * test/test_save.py (XMLWriterTest.Encode): Check return values.
6932     Fixes RTbug #1851.
6933    
6934 bh 1195 2003-06-13 Bernhard Herzog <[email protected]>
6935    
6936     * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
6937     self.selected_shape with the current selection to make sure the
6938     contents of the dialog are up to date when it's shown for the
6939     first time.
6940     The dialog used to work without this by luck. The recent fix to
6941     the connector module 'broke' a 'feature' the identify view was
6942     relying on, i.e that subscribing to a message in response to
6943     receiving a message of that type would mean that the new
6944     subscriber would also be called for the same message.
6945    
6946 jonathan 1169 2003-06-12 Jonathan Coles <[email protected]>
6947 jonathan 1175
6948 jonathan 1193 * extensions/thuban/gdalwarp.cpp: Removed debug printing as
6949     the image is rendered. Fixes RTbug #1937.
6950    
6951     2003-06-12 Jonathan Coles <[email protected]>
6952    
6953 jonathan 1191 * Thuban/Lib/fileutil.py: As is done under Windows, create the
6954 jonathan 1193 user directory if it doesn't exist on a posix system.
6955     Fixes RTbug #1815.
6956 jonathan 1191
6957     * Thuban/Model/resource.py (get_user_proj_files): Moved the
6958     called to get_application_dir here, so that the directory
6959     will only be called if this method is invoked.
6960    
6961     * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
6962     the projfilepath if no projection is selected.
6963    
6964     2003-06-12 Jonathan Coles <[email protected]>
6965    
6966 jonathan 1182 * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
6967     the scalebar if the current map has no projection set.
6968    
6969     * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
6970     projfilepath label to just the basename of the projection file
6971     rather than include the entire path.
6972    
6973     * Thuban/Model/resource.py: Fix missed proj functions that
6974     needed to be renamed.
6975    
6976     2003-06-12 Jonathan Coles <[email protected]>
6977    
6978 jonathan 1178 * Thuban/Model/classification.py: Removed assert statements that
6979     tested if the variable was an instance of Color.
6980    
6981     * Thuban/Model/color.py (Color): Remove commented code that isn't
6982     used.
6983     (Transparent): Renamed from NoColor. Doesn't inherit from Color.
6984     Fixes RTbug #1835.
6985     (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
6986     Needed now that the class doesn't inherit from Color.
6987    
6988     2003-06-12 Jonathan Coles <[email protected]>
6989    
6990 jonathan 1175 * test/test_save.py (XMLWriterTest.testEncode): Explicitly
6991     check unicode strings.
6992    
6993     * test/test_layer.py: Check for existence of gdal.
6994    
6995     2003-06-12 Jonathan Coles <[email protected]>
6996 jonathan 1172
6997     * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
6998     that was in load.py
6999 jonathan 1169
7000 jonathan 1172 * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
7001     that was in save.py
7002    
7003     2003-06-12 Jonathan Coles <[email protected]>
7004    
7005 jonathan 1169 This is largely a collection of bug fixes. We also handle the
7006     case where gdal is not on the system. The XMLReader and XMLWriter
7007     classes were moved into there own files to resolve some circular
7008     import references and because they shouldn't really be in the
7009     file that is dediciated to reading/writing session files since
7010     they are also used elsewhere.
7011    
7012     * Thuban/Model/classgen.py: Renamed functions to follow the
7013     function_names_with_underscores style. Fixes RTbug #1903.
7014     (calculate_quantiles): Raise ValueError if 'percents' is invalid.
7015    
7016     * Thuban/Model/layer.py: Import gdal only if it available.
7017     (RasterLayer): Handle the case where the gdal library is unavailable.
7018     Addresses RTbug #1877.
7019    
7020     * Thuban/Model/load.py (XMLReader): Moved into seperate file
7021     xmlreader.py.
7022    
7023 jonathan 1172 2003-06-12 Jonathan Coles <[email protected]>
7024    
7025     This is largely a collection of bug fixes. We also handle the
7026     case where gdal is not on the system. The XMLReader and XMLWriter
7027     classes were moved into there own files to resolve some circular
7028     import references and because they shouldn't really be in the
7029     file that is dediciated to reading/writing session files since
7030     they are also used elsewhere.
7031    
7032     * Thuban/Model/classgen.py: Renamed functions to follow the
7033     function_names_with_underscores style. Fixes RTbug #1903.
7034     (calculate_quantiles): Raise ValueError if 'percents' is invalid.
7035    
7036     * Thuban/Model/layer.py: Import gdal only if it available.
7037     (RasterLayer): Handle the case where the gdal library is unavailable.
7038     Addresses RTbug #1877.
7039    
7040     * Thuban/Model/load.py (XMLReader): Moved into seperate file
7041     xmlreader.py.
7042    
7043 jonathan 1169 * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
7044     file xmlwriter.py.
7045    
7046     * Thuban/Model/resource.py: Renamed functions to following the
7047     function_names_with_underscores style.
7048     (has_gdal_support): New function that returns true if the gdal
7049     library is available. Addresses RTbug #1877.
7050    
7051     * Thuban/UI/application.py (ThubanApplication.OpenSession):
7052     Display a message box if the gdal library is not available, but
7053     only if there are any layers that would use it. Addresses RTbug #1877.
7054    
7055     * Thuban/UI/classgen.py: Use renamed projection resource functions.
7056     (GenUniformPanel.__CalcStepping): Fix a slight discrepency
7057     when using integers versus floats.
7058    
7059     * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
7060     determine if the "Add Image Layer" menu option should be
7061     greyed out or not. Addresses RTbug #1877.
7062    
7063     * Thuban/UI/projdialog.py: Use renamed projection resource functions.
7064    
7065     * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
7066     optimize if a raster layer is visible. Fixes RTbug #1931.
7067     Only draw the raster layer if the gdal library is available.
7068     Addresses RTbug #1877.
7069    
7070     * test/test_classgen.py: Add tests for generate_singletons,
7071     generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
7072     (test_calculate_quantiles): Fix some tests to catch the new
7073     ValueError that is raised.
7074    
7075     * test/test_proj.py: Use renamed projection resource functions.
7076    
7077     * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
7078     test for saving classified layers. Fixes RTbug #1902.
7079     (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
7080    
7081 jan 1156 2003-06-12 Jan-Oliver Wagner <[email protected]>
7082    
7083     Fix for http://intevation.de/rt/webrt?serial_num=1900.
7084    
7085     * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
7086    
7087     * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
7088     multiplechoicedialog.py rather than from the wxPython library.
7089    
7090 frank 1151 2003-06-11 Frank Koormann <[email protected]>
7091    
7092 frank 1152 * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
7093     update.
7094    
7095     2003-06-11 Frank Koormann <[email protected]>
7096    
7097 frank 1151 * Thuban/Lib/fileutil.py (get_application_dir): New function to
7098     determine the absolute .thuban/thuban directory under
7099     "posix" (os.expanduser) and "nt" (read AppData registry key).
7100    
7101     * Thuban/Model/resource.py: Use get_application_dir
7102    
7103     * Thuban/UI/application.py (ThubanApplication.read_startup_files):
7104     Use get_application_dir.
7105    
7106 bh 1143 2003-06-10 Bernhard Herzog <[email protected]>
7107    
7108 bh 1147 * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
7109     the messages MAP_LAYERS_REMOVED messages
7110     (LayerTableFrame.OnClose): Unsubscribe from it.
7111     (LayerTableFrame.map_layers_removed): New. Receiver for
7112     MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
7113     dialog is showing is removed.
7114    
7115     2003-06-10 Bernhard Herzog <[email protected]>
7116    
7117 bh 1145 * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
7118     of the receivers list so that unsubscribing in a receiver doesn't
7119     modify it while iterating over it.
7120    
7121     * test/test_connector.py
7122     (ConnectorTest.test_disconnect_in_receiver): New. Test whether
7123     unsubscribing in a receiver works correctly. See docstring for
7124     details
7125    
7126     2003-06-10 Bernhard Herzog <[email protected]>
7127    
7128 bh 1143 * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
7129     message.
7130    
7131     * Thuban/Model/layer.py (Layer.SetShapeStore): Send
7132     LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
7133     LAYER_CHANGED will still be sent if the classification changes.
7134    
7135     * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
7136     parameter so we can subscribe to some of its messages
7137     (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
7138     and the layer's LAYER_SHAPESTORE_REPLACED
7139     (Classifier.unsubscribe_messages): New. Unsubscribe from message
7140     subscribed to in __init__
7141     (Classifier.map_layers_removed)
7142     (Classifier.layer_shapestore_replaced): receivers for the messages
7143     subscribed to in __init__. Unsubscribe and close the dialog
7144    
7145     * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
7146     the map to the Classifier dialog
7147    
7148     * test/test_layer.py (SetShapeStoreTests): Derive from
7149     SubscriberMixin as well so we can test messages
7150     (SetShapeStoreTests.setUp): Subscribe to some of the layer's
7151     messages
7152     (SetShapeStoreTests.tearDown): Clear the messages again
7153     (SetShapeStoreTests.test_sanity): Expand the doc-string and check
7154     for the modified flag too
7155     (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
7156     to check whether SetShapeStore sets the modified flag
7157     (SetShapeStoreTests.test_set_shape_store_different_field_name)
7158     (SetShapeStoreTests.test_set_shape_store_same_field)
7159     (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
7160     Add tests for the messages. This checks both the new
7161     LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
7162    
7163 jan 1141 2003-06-06 Jan-Oliver Wagner <[email protected]>
7164    
7165     * Thuban/UI/mainwindow.py: Improved and partly added help texts for
7166     the menu items.
7167    
7168 frank 1134 2003-06-05 Frank Koormann <[email protected]>
7169    
7170 frank 1139 * Thuban/UI/identifyview.py (IdentifyView.__init__):
7171     Layout reimplemented without panel. Make life easier to fit the list
7172     in the dialog.
7173    
7174     2003-06-05 Frank Koormann <[email protected]>
7175    
7176 frank 1137 * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
7177     once on initialisation (Former implementation resulted in multiple
7178     entries for each projection).
7179     (ProjFrame.__FillAvailList): selectProj as second optional parameter,
7180     if set, select the projection found under the specified name. This
7181     overwrites any other selection estimate.
7182     Removed projchoice filling from this method.
7183     (ProjFrame._OnSave, ProjFrame._OnAddToList):
7184     Updated call of ProjFrame.__FillAvailList
7185     (LCCPanel._DoLayout): Moved parameter controls in more common order.
7186    
7187     * Resources/Projections/defaults.proj: Extended defaults representing
7188     various common European projections.
7189    
7190     2003-06-05 Frank Koormann <[email protected]>
7191    
7192 frank 1134 * Thuban/UI/identifyview.py (IdentifyView.__init__):
7193     Use ListCtrl instead of GridCtrl
7194    
7195     * Thuban/Model/resource.py:
7196     Guess location of .thuban directory from tempdir parent directory.
7197    
7198     * Thuban/UI/application.py (ThubanApplication.read_startup_files):
7199     Guess location of .thuban directory from tempdir parent directory.
7200    
7201 bh 1130 2003-06-04 Bernhard Herzog <[email protected]>
7202    
7203     Do not cache the values returned by the tree widget's
7204     GetFirstChild and GetNextChild methods because it led to lots of
7205     segfaults. The new way requires more brute force but is more
7206     reliable.
7207    
7208     * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
7209     variable layer2id
7210     (LegendTree.find_layer): New method to do with brute force what
7211     layer2id tried to accomplish
7212     (LegendTree._OnMsgLayerChanged)
7213     (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
7214     Use find_layer instead of layer2id
7215     (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
7216     update layer2id anymore
7217     (LegendTree._OnMsgMapLayersRemoved)
7218     (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
7219    
7220 tkoester 1128 2003-06-03 Thomas Koester <[email protected]>
7221    
7222     * Thuban/Model/classgen.py (GenQuantiles0): New function.
7223    
7224 bh 1120 2003-06-02 Bernhard Herzog <[email protected]>
7225    
7226 bh 1127 * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
7227     New commands.
7228     (main_menu): Add the new commands.
7229     (MainWindow.TableRename): New. Implementation of the table_rename
7230     command.
7231     (MainWindow.RenameLayer): New. Implementation of the layer_rename
7232     command.
7233    
7234     * Thuban/Model/session.py (Session.AddTable): call self.changed to
7235     set the modified flag
7236    
7237     * test/test_session.py (TestSessionSimple.test_add_table): Test
7238     whether the modified flag is set properly
7239    
7240     * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
7241     instead of issue so that the modified flags get updated.
7242    
7243     * test/test_base.py (SomeTitledObject): Derive from Modifiable
7244     instead of Publisher to reflect reality better and to accomodate
7245     the fact that SetTitle now calls changed instead of issue
7246    
7247     2003-06-02 Bernhard Herzog <[email protected]>
7248    
7249     * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
7250     acquisition has to happen before the try in a try-finally.
7251    
7252     2003-06-02 Bernhard Herzog <[email protected]>
7253    
7254 bh 1120 * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
7255     possible that a layer is removed that is not currently selected in
7256     the legend so don't check for this.
7257    
7258 bh 1112 2003-05-30 Bernhard Herzog <[email protected]>
7259    
7260 bh 1118 * Thuban/Model/layer.py (Layer.Destroy): Set all instance
7261     variables to None that have direct or indirect references to
7262     shapefiles or dbf files to make sure that they do go away and the
7263     files are closed.
7264    
7265     2003-05-30 Bernhard Herzog <[email protected]>
7266    
7267 bh 1116 * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
7268     availImgListIndices when a new image list is created
7269    
7270     2003-05-30 Bernhard Herzog <[email protected]>
7271    
7272 bh 1114 * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
7273     changing_selection to indicate whether the LegendTree code itself
7274     is currently changing the selection
7275     (LegendTree.normalize_selection): New method to normalize the
7276     selection by selecting the layer item even if the user clicked on
7277     the classification.
7278     (LegendTree._OnSelChanged): normalize the selection. This works
7279     around a bug in wx which doesn't keep track of the selection
7280     properly when subtrees are deleted.
7281    
7282     2003-05-30 Bernhard Herzog <[email protected]>
7283    
7284 bh 1112 * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
7285     maximum and minimum scale factors.
7286    
7287     * test/test_classgen.py (ClassGenTest.test): Update to reflect the
7288     changes in classgen.py
7289    
7290 jonathan 1109 2003-05-30 Jonathan Coles <[email protected]>
7291    
7292     * Thuban/Model/classgen.py: Remove ClassGenerator class but make
7293     all the methods functions. Fixes RTBug #1903.
7294    
7295     * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
7296     to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
7297     RTBug #1907.
7298    
7299     * Thuban/UI/classgen.py: Use classgen functions that were part
7300     of the ClassGenerator class. Put try/finally blocks around
7301     code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
7302     RTBug #1904.
7303    
7304     * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
7305    
7306     * Thuban/UI/legend.py: The legend was cleared and repopulated any
7307     time something changed which caused some state to be lost such
7308     as which children were expanded or collapsed. Fixes RTBug #1901.
7309     (LegendTree._OnMsgMapLayersAdded): Add only new layers.
7310     (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
7311     the legend but not in the map.
7312     (LegendTree.__FillTree): Move main functionality out into smaller
7313     methods that can be used by other methods.
7314     (LegendTree.__FillTreeLayer): Reuse old slots in the image list
7315     if they are available.
7316     (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
7317     that we override the wxTreeCtrl method. Iterate over children
7318     and call __RemoveLayer.
7319     (LegendTree.__AddLayer): New. Add a new layer to the legend.
7320     (LegendTree.__RemoveLayer): Remove a layer from the legend.
7321     (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
7322     Should only be called with the id of a layer branch.
7323     (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
7324     Returns the root item or creates one if necessary.
7325    
7326     * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
7327     ProjectRasterFile with tuple arguments instead of strings.
7328    
7329     * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
7330     with try/finally. Fixes RTBug #1904.
7331    
7332     * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
7333     with try/finally. Fixes RTBug #1904.
7334     (MapCanvas.FitSelectedToWindow): If a single point is selected
7335     simply center it on the display. Fixes RTBug #1849.
7336    
7337     * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
7338     to be compiled as a standalone app. Now the code can only be
7339     called from Python which simplifies the parameter passing.
7340     (ProjectRasterFile): Handle Python arguments. Remove code that
7341     checks for a destination dataset. Add more clean up code.
7342    
7343     * test/test_map.py (TestMapWithContents.test_raise_layer_top,
7344     TestMapWithContents.test_lower_layer_bottom):
7345     Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
7346     Fixes RTBug #1907.
7347    
7348     * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
7349     extent to the map when the legend is toggled. Fixes RTBug #1881.
7350    
7351 jan 1097 2003-05-29 Jan-Oliver Wagner <[email protected]>
7352    
7353     * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
7354     unsubscribes all that is subcribed in __init__.
7355    
7356 bh 1089 2003-05-28 Bernhard Herzog <[email protected]>
7357    
7358 bh 1095 * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
7359     (MainWindow.CanDuplicateLayer): New methods to implement the
7360     Layer/Duplicate command.
7361     (layer_duplicate command): New.
7362     (main_menu): Add layer_duplicate to the Layer menu.
7363    
7364     2003-05-28 Bernhard Herzog <[email protected]>
7365    
7366 bh 1093 * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
7367     renderer so that NULL/None values get displayed differently (by a
7368     gray rectangle).
7369     (TableGrid.__init__): Override the default renderers
7370    
7371     2003-05-28 Bernhard Herzog <[email protected]>
7372    
7373 bh 1089 * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
7374     classification to "None" if the type of the field has changed.
7375    
7376     * test/test_layer.py (SetShapeStoreTests): New. Class with a few
7377     test for the Layer.SetShapeStore method
7378    
7379 jan 1087 2003-05-28 Jan-Oliver Wagner <[email protected]>
7380 jan 1085
7381 jan 1087 * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
7382     does not necessarily have a filename).
7383    
7384     2003-05-28 Jan-Oliver Wagner <[email protected]>
7385    
7386 jan 1085 * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
7387     sort the selection list for the dialog.
7388    
7389 frank 1083 2003-05-28 Frank Koormann <[email protected]>
7390    
7391     * extensions/thuban/wxproj.cpp
7392     (project_point): Removed cast to int for projected point coordinates.
7393     (shape_centroid): Return last point if all polygon vertices fall
7394     to one point.
7395    
7396 bh 1079 2003-05-28 Bernhard Herzog <[email protected]>
7397    
7398 bh 1081 * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
7399     with layers that don't have shapestores, i.e. raster layers.
7400    
7401     2003-05-28 Bernhard Herzog <[email protected]>
7402    
7403 bh 1079 * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
7404     when determining the title from the filename.
7405    
7406     * test/test_dbf_table.py (TestDBFTable.test_title): Update to
7407     reflect changes in the way the title is derived from the filename
7408    
7409 frank 1077 2003-05-28 Frank Koormann <[email protected]>
7410    
7411     * Thuban/UI/mainwindow.py (MainWindow.TableShow):
7412     Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
7413    
7414 bh 1069 2003-05-27 Bernhard Herzog <[email protected]>
7415    
7416 bh 1075 * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
7417     delegate SelectedLayer.
7418     (MainWindow.LayerUnjoinTable): Implement.
7419     (_can_unjoin): New. Helper function for the sensitivity of the
7420     layer/unjoin command.
7421    
7422     * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
7423     (DerivedShapeStore.OrigShapeStore): New. Return the original
7424     shapestore. Used to figure out how to unjoin.
7425     (DerivedShapeStore.Shapefile): Fix a typo.
7426    
7427     2003-05-27 Bernhard Herzog <[email protected]>
7428    
7429 bh 1073 * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
7430     well
7431     (JoinDialog.__init__): Use the layer parameter and only build the
7432     left choice when a layer is given
7433     (JoinDialog.OnJoin): Handle layer joins as well
7434     (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
7435     that the user selects the "Select..." item. The sensitivitly
7436     updating is now in update_sensitivity
7437     (JoinDialog.y): New method to refactor the sensitivity update of
7438     the join button into its own method.
7439    
7440     * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
7441    
7442     2003-05-27 Bernhard Herzog <[email protected]>
7443    
7444 bh 1071 * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
7445     iff there are unreferenced tables in the session
7446    
7447     2003-05-27 Bernhard Herzog <[email protected]>
7448    
7449 bh 1069 * Thuban/Model/messages.py (TABLE_REMOVED): New message.
7450    
7451     * Thuban/Model/session.py (Session.UnreferencedTables): New method
7452     to return tables that are not referenced by other tables or shape
7453     stores and can be removed.
7454     (Session.RemoveTable): Issue a TABLE_REMOVED message after
7455     removing the table
7456    
7457     * Thuban/UI/mainwindow.py: Remove unused imports
7458     (MainWindow.TableClose): Implement.
7459    
7460     * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
7461     messages so that the frame will be automatically closed when a new
7462     session is opened or the table is removed.
7463     (TableFrame.OnClose): Unsubscribe the Subscriptions made in
7464     __init__
7465     (TableFrame.close_on_session_replaced)
7466     (TableFrame.close_on_table_removed): New. Subscribers that close
7467     the window
7468    
7469     * test/test_session.py (TestSessionMessages.test_remove_table)
7470     (TestSessionSimple.test_remove_table): Move the test to
7471     TestSessionSimple and add test for the TABLE_REMOVED message
7472     (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
7473     (TestSessionSimple.test_unreferenced_tables) New. Test for the
7474     UnreferencedTables method.
7475     (UnreferencedTablesTests): New. Class with some more sophisticated
7476     tests for UnreferencedTables.
7477    
7478 frank 1065 2003-05-27 Frank Koormann <[email protected]>
7479    
7480 frank 1067 * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
7481     display has some unwanted side effects. Removed again.
7482    
7483     2003-05-27 Frank Koormann <[email protected]>
7484    
7485 frank 1065 * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
7486    
7487     * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
7488    
7489 jan 1062 2003-05-27 Jan-Oliver Wagner <[email protected]>
7490    
7491 bh 1069 * test/test_menu.py (MenuTest.test): Added test for
7492     Menu.RemoveItem().
7493 jan 1062
7494 bh 1069 * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
7495     the menu.
7496 jan 1062
7497 frank 1059 2003-05-27 Frank Koormann <[email protected]>
7498    
7499     Nonmodal dialogs without parent (i.e. they can fall behind the main
7500     window)
7501    
7502     * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
7503     all dialogs in the dialogs dictionary and the canvas.
7504    
7505     * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
7506     parent, i.e. can fall behind other windows.
7507     (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
7508     dictionary before removing it.
7509    
7510     * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
7511    
7512     * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
7513     * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
7514     * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
7515    
7516 bh 1053 2003-05-27 Bernhard Herzog <[email protected]>
7517    
7518 bh 1055 * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
7519     tableview dialog
7520     (MainWindow.TableShow): Use ShowTableView to open the dialogs.
7521     Also, don't use the table's titles as the dialog names. The titles
7522     aren't guaranteed to be unique.
7523     (MainWindow.TableOpen): Open a table view dialog after opening the
7524     table
7525    
7526     2003-05-27 Bernhard Herzog <[email protected]>
7527    
7528 bh 1053 * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
7529     effect can be achieved by simply closing the window showing the
7530     table.
7531     (MainWindow.TableHide): Removed.
7532     (main_menu): Removed "table_hide"
7533    
7534 frank 1051 2003-05-27 Frank Koormann <[email protected]>
7535    
7536     Fix legend tree display problems under Win32
7537    
7538     * Thuban/UI/legend.py: BMP_SIZE_W = 15
7539     (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
7540     (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
7541    
7542     * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
7543    
7544 jan 1048 2003-05-27 Jan-Oliver Wagner <[email protected]>
7545    
7546     * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
7547     'after' now allows to insert separators almost anywhere in the menu.
7548    
7549 frank 1046 2003-05-27 Frank Koormann <[email protected]>
7550    
7551     * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
7552     "S" of selection box label to hint on hot key (Alt-S). Works under
7553     Win32 but is ignored under GTK.
7554    
7555     2003-05-26 Frank Koormann <[email protected]>
7556    
7557     * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
7558     Center Choices.
7559    
7560 bh 1038 2003-05-26 Bernhard Herzog <[email protected]>
7561    
7562 bh 1044 Remove the Precision methods again. They're too DBF specific to be
7563     part of the table interface and they're only used in table_to_dbf
7564     anyway.
7565    
7566     * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
7567     fixed precision of 12 for doubles.
7568     (TransientTableBase.Precision): Removed
7569     (AutoTransientTable.Width): Delegate to self.table.
7570    
7571     * Thuban/Model/table.py (DBFTable.Precision)
7572     (MemoryTable.Precision): Removed.
7573     (MemoryTable.Width): Use a fixed precision of 12 for doubles.
7574     (table_to_dbf): Use a fixed precision of 12 for floats unless the
7575     column object specifies something else.
7576    
7577     * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
7578     test for table_to_dbf
7579    
7580     2003-05-26 Bernhard Herzog <[email protected]>
7581    
7582     * test/test_transientdb.py
7583     (TestTransientTable.run_iceland_political_tests): Fix a comment.
7584    
7585     2003-05-26 Bernhard Herzog <[email protected]>
7586    
7587 bh 1038 * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
7588     implementation. Mark parts of the file format strings for
7589     localization.
7590    
7591     * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
7592     file and add the table to the tables managed by the session
7593    
7594 bh 1040 * test/test_session.py (TestSessionSimple.test_open_table_file):
7595     New. test case for OpenTableFile
7596    
7597 jan 1033 2003-05-26 Jan-Oliver Wagner <[email protected]>
7598    
7599 jan 1035 * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
7600     Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
7601     Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
7602     Replace the true/false of wxWindows by True/False of Python 2.2.1.
7603    
7604     2003-05-26 Jan-Oliver Wagner <[email protected]>
7605    
7606 bh 1038 * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
7607     already a selection present, update the grid accordingly.
7608 jan 1033
7609     * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
7610     resizeable and increase its initial size.
7611    
7612 frank 1030 2003-05-26 Frank Koormann <[email protected]>
7613    
7614     Table export functionality
7615    
7616     * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
7617     Return width (in characters) for a column.
7618     (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
7619     (table_to_dbf): Write table to dbf file.
7620     (table_to_csv): Write table to csv file.
7621    
7622     * Thuban/Model/transientdb.py (TransientTableBase.Width,
7623     TransientTableBase.Precision): Return column width and precision.
7624    
7625     * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
7626     or table_to_csv depending on file selection.
7627    
7628     * test/test_dbf_table.py:
7629     Test table_to_dbf (extension of former part of test).
7630    
7631     * test/test_csv_table.py:
7632     Test table_to_csv.
7633    
7634 jan 1021 2003-05-23 Jan-Oliver Wagner <[email protected]>
7635    
7636 jan 1024 * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
7637     Use QueryTableFrame instead of TableFrame.
7638 jan 1021
7639 jan 1024 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
7640     table window with 'Layer Table:' instead of 'Table:'.
7641    
7642     2003-05-23 Jan-Oliver Wagner <[email protected]>
7643    
7644     Give all tables a title via mix-in TitledObject.LayerShowTable
7645    
7646 jan 1021 * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
7647     only if it exists.
7648    
7649     * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
7650     and call its init-method with a default title. Remove Title() method.
7651    
7652     * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
7653     AutoTransientTable): mix-in TitledObject and call its init-method with
7654     a default title. Remove Title() method.
7655    
7656 bh 1017 2003-05-23 Bernhard Herzog <[email protected]>
7657    
7658     * Thuban/Model/session.py (Session.AddShapeStore): Define
7659     AddShapeStore analogously to AddTable.
7660    
7661     * test/test_session.py (TestSessionSimple.test_add_shapestore):
7662     New. Test for AddShapeStore
7663    
7664 jan 1015 2003-05-23 Jan-Oliver Wagner <[email protected]>
7665    
7666     Introducing QueryTableFrame and a very coarse ShowTable implementation.
7667    
7668     * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
7669     class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
7670     The latter implements the selection GUI without dependency on a layer.
7671     LayerTableFrame now is derived from QueryTableFrame and connects
7672     to a layer.
7673    
7674     * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
7675     implementation that still needs work.
7676    
7677     * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
7678    
7679 frank 1011 2003-05-22 Frank Koormann <[email protected]>
7680    
7681     * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
7682     Added "outer_join = False" as optional parameter.
7683     (TransientJoinedTable.create): If outer join is true, perform a
7684     "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
7685     the left table. Records not matching are filled with 0 / None.
7686    
7687     * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
7688     (JoinDialog.OnJoin): Consider outer join check box.
7689    
7690 bh 1006 2003-05-22 Bernhard Herzog <[email protected]>
7691    
7692 bh 1008 * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
7693     somewhat safer way. Storing the traceback in a local variable can
7694     lead to memory leaks
7695    
7696     2003-05-22 Bernhard Herzog <[email protected]>
7697    
7698 bh 1006 * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
7699     the wxMessageDialog's Destroy() method.
7700    
7701 frank 1004 2003-05-22 Frank Koormann <[email protected]>
7702    
7703     * Thuban/UI/join.py (JoinDialog.__init__): Make use of
7704     TransientTable.Title()
7705    
7706     2003-05-22 Frank Koormann <[email protected]>
7707    
7708     Join Dialog, initial version.
7709    
7710     * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
7711    
7712     * Thuban/UI/join.py (JoinDialog): Functional implementation of
7713     former framework. Renamed Table1/Table2 to LeftTable/RightTable
7714     in all occurences.
7715    
7716     * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
7717     Typo fixed.
7718    
7719 bh 995 2003-05-22 Bernhard Herzog <[email protected]>
7720    
7721 bh 999 Give the tables titles so that the GUI can display more meaningful
7722     names. For now the titles are fixed but depend on e.g. filenames
7723     or the titles of the joined tables.
7724    
7725     * Thuban/Model/transientdb.py (TransientTable.Title)
7726     (TransientJoinedTable.Title, AutoTransientTable.Title): New.
7727    
7728     * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
7729    
7730     * test/test_transientdb.py
7731     (TestTransientTable.test_auto_transient_table_title): New. Test
7732     for the Title method
7733     (TestTransientTable.test_transient_joined_table)
7734     (TestTransientTable.test_transient_table): Add test for the Title
7735     methods
7736    
7737     * test/test_memory_table.py (TestMemoryTable.test_title): New.
7738     Test for the Title method
7739    
7740     * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
7741     the Title method
7742    
7743     2003-05-22 Bernhard Herzog <[email protected]>
7744    
7745 bh 997 * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
7746     Provide a better way to destroy the layers
7747     (TestLayer.test_base_layer, TestLayer.test_arc_layer)
7748     (TestLayer.test_point_layer, TestLayer.test_empty_layer)
7749     (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
7750     the new way to destroy the layers.
7751     (TestLayer.test_derived_store): New. Test for using a layer with a
7752     DerivedShapeStore
7753    
7754     * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
7755     filename if the shape store actually has one.
7756    
7757     2003-05-22 Bernhard Herzog <[email protected]>
7758    
7759 bh 995 * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
7760     for the filename
7761    
7762     * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
7763     for the FileName method
7764     (TestDBFTableWriting.test_write): Fix spelling of filename
7765    
7766 tkoester 993 2003-05-22 Thomas Koester <[email protected]>
7767    
7768     * Thuban/Model/range.py, test/test_range.py: Brought over new Range
7769     from SciParam that now really is immutable.
7770    
7771 frank 992 2003-05-22 Frank Koormann <[email protected]>
7772    
7773     Layer Top/Bottom placement added to legend.
7774    
7775     * Thuban/UI/legend.py
7776     (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
7777     bound to tool events.
7778     (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
7779     New, methods binding the event methods with the map methods.
7780    
7781     * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
7782     layer at top/bottom of layer stack.
7783    
7784     * Resources/Bitmaps/top_layer.xpm: New button icon.
7785    
7786     * Resources/Bitmaps/bottom_layer.xpm: New button icon.
7787    
7788 bh 988 2003-05-22 Bernhard Herzog <[email protected]>
7789    
7790     * Thuban/Model/session.py (Session.RemoveTable): New method to
7791     remove tables
7792    
7793     * test/test_session.py (TestSessionSimple.test_remove_table): New.
7794     Test for RemoveTable
7795    
7796 tkoester 986 2003-05-22 Thomas Koester <[email protected]>
7797    
7798     * Thuban/Model/classgen.py: Added short module doc string and CVS id.
7799     (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
7800    
7801 bh 983 2003-05-22 Bernhard Herzog <[email protected]>
7802    
7803 bh 985 Implement a way to discover dependencies between tables and
7804     shapestores.
7805    
7806     * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
7807     (TransientJoinedTable.Dependencies)
7808     (AutoTransientTable.SimpleQuery): New. Implement the dependencies
7809     interface
7810     (TransientJoinedTable.__init__): Keep tack of the original table
7811     objects in addition to the corresponding transient tables.
7812    
7813     * Thuban/Model/table.py (DBFTable.Dependencies)
7814     (MemoryTable.Dependencies): New. Implement the dependencies
7815     interface
7816    
7817     * Thuban/Model/data.py (ShapeTable): New. Helper class for
7818     ShapefileStore
7819     (ShapefileStore.__init__): Use ShapeTable instead of
7820     AutoTransientTable
7821     (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
7822     (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
7823     methods for filename and type
7824     (ShapefileStore.Dependencies): New. Implement the dependencies
7825     interface
7826     (DerivedShapeStore): New class to replace SimpleStore. The main
7827     difference to SimpleStore is that it depends not on a shapefile
7828     but another shapestore which expresses the dependencies a bit
7829     better
7830     (SimpleStore.__init__): Add deprecation warning.
7831    
7832     * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
7833     Test for the Dependencies method.
7834    
7835     * test/test_memory_table.py (TestMemoryTable.test_dependencies):
7836     New. Test for the Dependencies method.
7837    
7838     * test/test_transientdb.py
7839     (TestTransientTable.test_auto_transient_table_dependencies): New.
7840     Test for the Dependencies method.
7841     (TestTransientTable.test_transient_joined_table): Add test for the
7842     Dependencies method.
7843    
7844     * test/test_session.py (TestSessionSimple.setUp)
7845     (TestSessionSimple.tearDown): New. Implement a better way to
7846     destroy the sessions.
7847     (TestSessionSimple.test_initial_state)
7848     (TestSessionSimple.test_add_table): Bind session to self.session
7849     so that it's destroyed by tearDown
7850     (TestSessionSimple.test_open_shapefile): New. Test for
7851     OpenShapefile and the object it returns
7852    
7853     2003-05-22 Bernhard Herzog <[email protected]>
7854    
7855 bh 983 * Thuban/Model/session.py (Session.AddTable): New method to
7856     register tables with the session.
7857     (Session.Tables): Return the tables registered with AddTable too.
7858    
7859     * test/test_session.py (TestSessionSimple.test_add_table): New.
7860     Test case for the AddTable method
7861    
7862 frank 981 2003-05-22 Frank Koormann <[email protected]>
7863    
7864     UI polishing updates: Place main buttons (OK, Cancel, etc) in the
7865     lower right corner, center labels for selections, initialize controls
7866     in reasonable order for keyboard navigation.
7867    
7868     * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
7869     (ProjFrame.__DoOnProjAvail): Determine position of current projection
7870     using the wxListBox.FindString() method. Still a problem (#1886)
7871    
7872     * Thuban/UI/classifier.py
7873     (Classifier.__init__, SelectPropertiesDialog.__init__)
7874    
7875     * Thuban/UI/classgen.py (ClassGenDialog.__init__,
7876     (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
7877     different classification types from here to __init__.
7878     (GenUniquePanel.__init__): Set the column width of the first field
7879     in the Field ListCtrl to the full width.
7880    
7881     * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
7882     Button to 'Export'. Center Buttons in Selection Box, set Focus to
7883     Grid.
7884     (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
7885     changes focus to the Selection when pressing "Alt-S".
7886    
7887     * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
7888     the text if not visible. The italic font sometimes exceeds the
7889     rendering area.
7890    
7891 jonathan 972 2003-05-21 Jonathan Coles <[email protected]>
7892 jonathan 971
7893 jonathan 975 * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
7894     to OnClose so that Thuban closes correctly.
7895    
7896     * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
7897     DockFrame.OnClose, not DockFrame._OnClose.
7898    
7899     2003-05-21 Jonathan Coles <[email protected]>
7900    
7901 jonathan 971 * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
7902     references to 'inf' and use new Range __init__ to pass floats
7903     directly rather than converting them to strings first.
7904     Fixes RTBug #1876.
7905    
7906     * Thuban/Model/classification.py (ClassGroupRange.SetRange):
7907     Use new Range ___init__ to pass floats.
7908    
7909     * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
7910     filename is a valid image file. Throw IOError otherwise.
7911    
7912     * Thuban/Model/range.py: Brought over new Range from SciParam that
7913     is immutable and has an __init__ which can accept floats.
7914    
7915     * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
7916     into try block. AddLayer doesn't throw any exceptions anymore.
7917     (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
7918     try block.
7919    
7920     * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
7921     the first item in choices. Fixes RTBug #1882.
7922    
7923     * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
7924     has gone to 0 which is a serious problem. abort.
7925     (MapRenderer.draw_raster_layer): Catch IOError seperately and
7926     print the error from GDAL.
7927    
7928     * Thuban/UI/tableview.py (TableGrid.__init__): Call
7929     ToggleEventListeners to turn on listening.
7930     (TableGrid.ToggleEventListeners): New. Turns event listening on
7931     and off so as to prevent excessive messages.
7932     (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
7933     to suppress excessive messages when selecting many rows.
7934     Fixes RTBug #1880.
7935    
7936     * Thuban/UI/view.py: Added checks against if scale == 0. This
7937     is a serious problem that can occur when an image without
7938     geo data is loading and causes the map projection bounds to
7939     go to infinity. Right now, the solution is to simply try
7940     to recover.
7941    
7942     * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
7943     to set the MFILEReceiver attributes even if the data is NULL.
7944    
7945     * extensions/thuban/gdalwarp.cpp: Improved the error handling
7946     and passed GDAL messages back up to the Python layer. Also
7947     tried to fix some memory leaks that were present in the original
7948     utility but didn't matter because the program aborted.
7949    
7950     * test/test_range.py: Copied over tests from SciParam. Removed
7951     tests against importing. Fixes RTBug #1867.
7952    
7953 bh 958 2003-05-21 Bernhard Herzog <[email protected]>
7954    
7955     * test/test_load.py: Remove unused imports and restructure the
7956     test code
7957     (LoadSessionTest): Split into one class for each test and turn
7958     LoadSessionTest itself into the base class for all such session
7959     tests.
7960     (ClassificationTest): New base class for load tests that test
7961     classifications
7962     (TestSingleLayer, TestLayerVisibility, TestClassification)
7963     (TestLabels, TestLayerProjection, TestRasterLayer): New classes
7964     for the individual tests
7965    
7966     * test/support.py (FileLoadTestCase.filename): New base class for
7967     file loading tests
7968    
7969 jan 955 2003-05-21 Jan-Oliver Wagner <[email protected]>
7970    
7971     * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
7972     Mercator' to 'UTM Zone 32' as a more convenient example.
7973     Added 'Gauss Krueger Zone 6'.
7974    
7975     * Data/iceland_sample_raster.thuban: political polygon now
7976     filled transparent to have the raster image visible at once.
7977    
7978 frank 952 2003-05-21 Frank Koormann <[email protected]>
7979    
7980     * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
7981     OnClose() to keep in sync with extensions. Internally Thuban
7982     still uses "underscored" names.
7983    
7984 jonathan 949 2003-05-20 Jonathan Coles <[email protected]>
7985    
7986     This puts back Raster layer support. These layers support projections
7987     through the GDAL library. Currently, the CVS version is being used.
7988     There are no Debian packages available although this may change soon.
7989     A GDAL driver was extended to support writing to memory rather to
7990     files.
7991    
7992     There is still some work that needs to be done, such as some error
7993     handling when loading invalid images or when there is a problem
7994     projecting the image. This putback simply checks in the majority
7995     of the work.
7996    
7997     * setup.py: Add gdalwarp library extension.
7998    
7999     * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
8000     Defaults to False, but can be overridden by subclasses if they
8001     support classification.
8002     (RasterLayer): New. Defines a new layer that represents an
8003     image.
8004    
8005     * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
8006     tag handler.
8007     (SessionLoader.start_layer): Encode the filename.
8008     (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
8009     New. Supports reading a rasterlayer tag.
8010    
8011     * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
8012    
8013     * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
8014     get a string in Latin1. If we get such as string convert it to
8015     unicode first, otherwise leave if alone before encoding.
8016     (SessionSaver.write_layer): Add support for writing both Layers
8017     and RasterLayers.
8018    
8019     * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
8020     The right argument may not be a string, it could also be a Column.
8021    
8022     * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
8023     Make initial window size 600x400. Fixes RTBug #1872.
8024    
8025     * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
8026     the dialog is constructed so that we can support layers that
8027     do not have classifications.
8028     (Classifier._OnTry): Only build a classification if the layer
8029     supports one.
8030    
8031     * Thuban/UI/legend.py: Change all checks that a layer is an
8032     instance of Layer into checks against BaseLayer.
8033     (LegendTree.__FillTreeLayer): Only add children to a branch if
8034     the layer supports classification.
8035    
8036     * Thuban/UI/mainwindow.py (MainWindow.NewSession,
8037     MainWindow.OpenSession): Don't proceed with an action if the
8038     user chooses Cancel when they are asked to save changes.
8039     (MainWindow.AddRasterLayer): New. Open a dialog to allow the
8040     user to select an image file. Create a new RasterLayer and add
8041     it to the map.
8042    
8043     * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
8044     for rendering RasterLayer layers.
8045     (MapRenderer.draw_raster_layer): Actually method that calls
8046     the GDALWarp python wrapper and constructs an image from the
8047     data returned.
8048    
8049     * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
8050     Choices symbols to match those used in the table query method.
8051     Replace deprecated method calls on table with new method names.
8052    
8053     * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
8054     how small the scale can get. This still needs more testing.
8055    
8056     * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
8057     Provides a driver to output in .bmp format.
8058    
8059     * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
8060     New. Provides IO routines which write to memory, rather than a file.
8061    
8062     * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
8063     of the gdalwarp utility provided in GDAL. Added function calls
8064     that can be accessed from python.
8065    
8066     * Data/iceland_sample_raster.thuban: New. Sample file that uses
8067     a raster layer.
8068    
8069     * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
8070     layer image data.
8071    
8072     * Doc/thuban.dtd: Added rasterlayer attribute definition.
8073    
8074     * test/test_layer.py, test/test_load.py, test/test_save.py: Added
8075     tests associated with the raster layer code.
8076    
8077     * test/test_transientdb.py
8078     (TestTransientTable.test_auto_transient_table_query): Added a test
8079     for using a Column object as the "right" parameter to a query.
8080    
8081 frank 924 2003-05-19 Frank Koormann <[email protected]>
8082    
8083 frank 927 * Thuban/version.py (get_changelog_date):
8084     Catch exceptions if ChangeLog does not exist.
8085    
8086     * Thuban/UI/view.py (MapCanvas.Export): Bugfix
8087    
8088     2003-05-19 Frank Koormann <[email protected]>
8089    
8090 frank 924 Extended version information for Thuban
8091    
8092     * Thuban/version.py: New, version information for Thuban: Last
8093     modification date and last ChangeLog entry date.
8094    
8095     * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
8096     information: Display Thuban, wxPython and Python version.
8097    
8098 bh 919 2003-05-16 Bernhard Herzog <[email protected]>
8099    
8100 bh 921 * Thuban/Model/save.py: Remove some unused imports including the
8101     __future__ import for nested_scopes as Thuban relies on Python 2.2
8102     now.
8103     (XMLWriter.encode): Remove the special case for a None argument.
8104     In the saver encode is always called with a string argument.
8105    
8106     2003-05-16 Bernhard Herzog <[email protected]>
8107    
8108 bh 919 * Thuban/UI/__init__.py: Remove the work-around for the locale bug
8109     in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
8110     of the bug was that e.g. float("1.2") would fail. Thuban now
8111     requires 2.4.x.
8112    
8113 frank 917 2003-05-16 Frank Koormann <[email protected]>
8114    
8115     Printing enhancement and WMF export (under Win32)
8116    
8117     * Thuban/UI/renderer.py (ExportRenderer): New, derived from
8118     ScreenRenderer. Renders Map, Legend and Scalebar for export.
8119     (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
8120     PrintRender.
8121    
8122     * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
8123     to fullfil information needed for PrinterRenderer.
8124     (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
8125     (MapCanvas.Print): Adapted to new MapPrintout.
8126     (OutputTransform): General calculations to transform from canvas
8127     coordinates to export/printing devices.
8128    
8129     * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
8130     new method_command to call ExportMap, with platform dependency (only
8131     __WXMSW__)
8132    
8133     * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
8134     of scalebar drawing area as new parameters.
8135    
8136     * Thuban/Model/scalebar.py (roundInterval): round long instead of int
8137    
8138     * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
8139     Update to extended scalebar.DrawScalebar header.
8140    
8141     * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
8142    
8143     * test/test_scalebar.py: Made test executable as standalone.
8144    
8145 bh 908 2003-05-16 Bernhard Herzog <[email protected]>
8146    
8147     * Thuban/Model/table.py (Table): Remove this compatibility alias
8148     for DBFTable.
8149    
8150     * test/test_table.py: Import DBFTable as Table because that alias
8151     doesn't exist anymore.
8152    
8153     * Thuban/UI/classgen.py: Remove some unused imports
8154    
8155 jonathan 906 2003-05-14 Jonathan Coles <[email protected]>
8156    
8157     * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
8158     Fix docstring.
8159     (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
8160     (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
8161     values of the supplied range to determine the beginning and end
8162     bounds of the generated classes.
8163    
8164     * Thuban/Model/range.py (Range.number_re): Now accepts floats that
8165     do not have a leading 0 (.5 is now accepted as well as 0.5).
8166    
8167     * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
8168     call to ClassGenerator.GenUniformDistribution.
8169    
8170     * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
8171     layout bug with the 'Projection' label.
8172    
8173     * test/support.py (FloatTestCase): New. Needed for the Range tests.
8174    
8175     * test/test_range.py: New. Imported from SciParam.
8176    
8177 jonathan 897 2003-05-12 Jonathan Coles <[email protected]>
8178    
8179 jonathan 899 * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
8180     to table.UniqueValues() with calls that retrieve all the values
8181     from the table. This will need to be replaced by a method on table
8182     which can simply return the list (perhaps more efficiently).
8183    
8184     2003-05-12 Jonathan Coles <[email protected]>
8185    
8186 jonathan 897 The return value of ClassGenerator.CalculateQuantiles has changed.
8187     Refer to the documentation for details.
8188    
8189     * test/test_classgen.py: Modified Quantile tests to use the
8190     new return values.
8191    
8192     * Thuban/Model/classgen.py
8193     (ClassGenerator.GenQuantiles): Add comments describing the parameters,
8194     use new return values from CalculateQuantiles to produce the correct
8195     range bounds in the Classification.
8196     (ClassGenerator.CalculateQuantiles): Add more comments describing
8197     the return values and parameters. Make minor adjustments to improve
8198     the legibility of the code. Fix problem with adjusted not being set
8199     in most cases.
8200    
8201 frank 893 2003-05-12 Frank Koormann <[email protected]>
8202    
8203     * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
8204     and latin1. Fixes #1851 finally.
8205    
8206 jonathan 889 2003-05-09 Jonathan Coles <[email protected]>
8207    
8208 jonathan 897 * test/test_classgen.py: New. Tests the Quantile algorithm.
8209    
8210     * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
8211     Clean up debugging statement, add comments, fix a small bug in the
8212     returned adjusted percentiles.
8213    
8214     2003-05-09 Jonathan Coles <[email protected]>
8215    
8216 jonathan 889 Introduces Range class from SciParam into the ClassGroupRange class,
8217     and such ranges can now be saved and loaded from disk.
8218    
8219     Quantiles are now available in the Classification Generator.
8220    
8221     Initial support for building Queries on a table. Doesn't do anything
8222     but run some tests.
8223    
8224     * Thuban/Model/classification.py: Explicit imports.
8225     (ClassGroupRange): Use the Range class to store the underlying
8226     range information. The interface remains the same, except for
8227     GetRange(), and you can also supply a Range object as the min
8228     parameter to SetRange or __init__.
8229    
8230     * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
8231     string appropriately for use in Thuban. Fixes RTbug #1851.
8232     (SessionLoader.end_projection): Handle the context of the
8233     projection tag a bit better by looking at what objects are not
8234     None. There was an assumption that a projection tag for a map
8235     could occur before any layers.
8236     (SessionLoader.start_clrange): Provide backward compatibility for
8237     reading min/max values as well as the new range parameter.
8238    
8239     * Thuban/Model/map.py: Explicit imports.
8240    
8241     * Thuban/Model/resource.py: Import _.
8242     (ProjFileSaver.write): write header using projfile.dtd.
8243    
8244     * Thuban/Model/save.py: Explicit imports.
8245     (XMLWriter.encode): New. Encode the given string from a format
8246     used by Thuban into UTF-8. Fixes RTbug #1851.
8247    
8248     * Thuban/UI/classgen.py: Explicit imports.
8249     (ClassGenDialog.__init__): Clean up the code and add support
8250     for Quantiles.
8251     (ClassGenDialog.OnOK): Add support for Quantiles.
8252     (GenQuantilesPanel): New. Input panel for Quantiles.
8253     (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
8254     GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
8255    
8256     * Thuban/Model/classgen.py: New. Contains all the classes named above.
8257    
8258     * Thuban/UI/classifier.py: Explicit imports.
8259     (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
8260     ClassTable.SetValueAsCustom): Reworked to use new Range class.
8261    
8262     * Thuban/UI/legend.py: Explicit imports.
8263    
8264     * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
8265     a Table menu and associated method calls.
8266     (MainWindow.choose_color): Removed. No longer needed.
8267    
8268     * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
8269     should be disabled if no projection is selected in the available
8270     list.
8271    
8272     * Thuban/UI/renderer.py: Explicit imports.
8273    
8274     * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
8275     with correctly selecting the rows and issuing the right events.
8276     Be sure to call Skip() to allow the grid to do some of its own
8277     handling which allows the rows to actually be selected.
8278     (LayerTableGrid.select_shapes): Rename from select_shape. Supports
8279     selecting multiple shapes.
8280     (LayerTableFrame): Support for building Queries.
8281     (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
8282    
8283     * Thuban/UI/tree.py: Explicit imports.
8284    
8285     * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
8286     table view can call it.
8287    
8288     * test/test_classification.py: Explicit imports.
8289     (TestClassification.test_ClassGroupRange): Fix test for new
8290     Range class.
8291    
8292     * Doc/thuban.dtd: Add range parameter for clrange.
8293    
8294     * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
8295     object in ClassGroupRange, and also uesd for inputting ranges in
8296     the classifer table and elsewhere.
8297    
8298     * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
8299     yet.
8300    
8301 frank 872 2003-05-09 Frank Koormann <[email protected]>
8302    
8303     * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
8304    
8305 frank 860 2003-05-08 Frank Koormann <[email protected]>
8306    
8307 frank 870 Coding style updates
8308    
8309     * test/test_scalebar.py: Replaced tab indentation by spaces.
8310    
8311     * Thuban/UI/scalebar.py: Explicit imports.
8312    
8313     2003-05-08 Frank Koormann <[email protected]>
8314    
8315 frank 867 * Thuban/UI/scalebar.py
8316     (ScaleBar.DrawScalebar): Format string bug fixed.
8317    
8318     2003-05-08 Frank Koormann <[email protected]>
8319    
8320 frank 865 Reorganization of scalebar component (no wx in Thuban/Model)
8321    
8322     * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
8323     (deriveInterval):
8324     Calculate scalebar interval and unit which fits in width for scale.
8325     (roundInterval): Round float.
8326    
8327     * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
8328    
8329     * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
8330    
8331     * Thuban/UI/legend.py: Import Thuban.UI.scalebar
8332    
8333     2003-05-08 Frank Koormann <[email protected]>
8334    
8335 frank 860 * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
8336     Initialize ScaleBar with canvas.map
8337    
8338     * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
8339     round intervals to display smarter lengths
8340     (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
8341     layer. If the maps has no projection applied grey the scalebar.
8342    
8343 frank 857 2003-05-07 Frank Koormann <[email protected]>
8344    
8345     Basic Scalebar features added.
8346    
8347     * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
8348    
8349     * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
8350     (ScaleBarBitmap): New, links the scalebar bitmap with view messages
8351     and the renderer.
8352    
8353     * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
8354    
8355     * Thuban/UI/messages.py: SCALE_CHANGED added.
8356    
8357 bh 850 2003-05-07 Bernhard Herzog <[email protected]>
8358    
8359 bh 852 * Thuban/Model/session.py (Session.__init__): New instance
8360     variable shapestores to hold a list of all open shapestore objects
8361     (Session.ShapeStores): New. Accessor method for the shapestores
8362     list.
8363     (Session._add_shapestore, Session._clean_weak_store_refs): New.
8364     Internal methods to maintain the shapestores list.
8365     (Session.Tables): New. Return all tables open in the session.
8366     (Session.OpenShapefile): Insert the new ShapeStore into the
8367     shapestores list.
8368    
8369     * test/test_session.py (TestSessionSimple.test_initial_state): Add
8370     tests for ShapeStores and Tables
8371     (TestSessionWithContent.test_shape_stores)
8372     (TestSessionWithContent.test_tables): New. Test cases for
8373     ShapeStores and Tables
8374    
8375     2003-05-07 Bernhard Herzog <[email protected]>
8376    
8377 bh 850 * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
8378     Add comments about the optimizations used.
8379     (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
8380     Implement the ReadValue table interface method.
8381    
8382     * test/test_transientdb.py
8383     (TestTransientTable.run_iceland_political_tests)
8384     (TestTransientTable.test_transient_joined_table): Add tests for
8385     ReadValue
8386    
8387 frank 848 2003-05-07 Frank Koormann <[email protected]>
8388    
8389     * Resources/Bitmaps/fulllayerextent.xpm,
8390     Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
8391     new icons.
8392    
8393 bh 840 2003-05-06 Bernhard Herzog <[email protected]>
8394    
8395 bh 846 * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
8396     New. Simply delegate to the transient table's version.
8397    
8398     * test/test_transientdb.py
8399     (TestTransientTable.test_auto_transient_table_query): New. Test
8400     case for AutoTransientTable's SimpleQuery
8401    
8402     2003-05-06 Bernhard Herzog <[email protected]>
8403    
8404 bh 843 * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
8405     Implement a simple query method for the query dialog
8406     (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
8407     the row index or shapeid.
8408     (TransientTable.create): Insert the right value of the row index
8409     (TransientJoinedTable.create): Copy the row index of the left
8410     table to the joined result table
8411    
8412     * test/test_transientdb.py
8413     (TestTransientTable.test_transient_table_read_twice): Fix
8414     doc-string
8415     (TestTransientTable.test_transient_table_query): New. Test for the
8416     SimpleQuery method
8417    
8418     2003-05-06 Bernhard Herzog <[email protected]>
8419    
8420 bh 840 Convert all table users to use the new table interface. This only
8421     covers Thuban itself, not GREAT-ER or other applications built on
8422     Thuban yet, so the compatibility interface stays in place for the
8423     time being but it now issues DeprecationWarnings.
8424    
8425     Finally, the new Table interface has a new method, HasColumn.
8426    
8427     * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
8428     issue deprecation warnings when they're. The warnings refer to the
8429     caller of the method.
8430     (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
8431     for the deprecation warnings
8432    
8433     * test/test_table.py: Ignore the deprecation warnings for the old
8434     table in the tests in this module. The purpose of the tests is to
8435     test the old interface, after all.
8436    
8437     * test/test_transientdb.py
8438     (TestTransientTable.run_iceland_political_tests): Use the
8439     constants for the types. Add a test for HasColumn
8440     (TestTransientTable.test_transient_joined_table): Adapt to new
8441     table interface. Add a test for HasColumn
8442     (TestTransientTable.test_transient_table_read_twice): Adapt to new
8443     table interface
8444    
8445     * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
8446     Adapt to new table interface
8447    
8448     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
8449     new table interface
8450    
8451     * Thuban/UI/controls.py (RecordListCtrl.fill_list)
8452     (RecordTable.SetTable): Adapt to new table interface
8453    
8454     * Thuban/UI/classifier.py (Classifier.__init__)
8455     (Classifier.__init__): Adapt to new table interface
8456    
8457     * Thuban/UI/classgen.py (ClassGenDialog.__init__)
8458     (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
8459     to new table interface
8460    
8461     * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
8462     (AutoTransientTable.HasColumn): Implement the new table interface
8463     method
8464     (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
8465     (AutoTransientTable.UniqueValues): Adapt to new table interface
8466    
8467     * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
8468     Adapt to new table interface
8469    
8470     * test/test_layer.py (TestLayer.open_shapefile): Helper method to
8471     simplify opening shapefiles a bit easier.
8472     (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
8473     (TestLayer.test_point_layer): Use the new helper method
8474     (TestLayer.test_get_field_type): New. Test for the GetFieldType
8475     method
8476    
8477     * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
8478     the new table method
8479    
8480     * test/test_memory_table.py (TestMemoryTable.test_has_column):
8481     Test for the new table method HasColumn
8482    
8483 jonathan 833 2003-05-06 Jonathan Coles <[email protected]>
8484    
8485     Addresses the "Selection Extent" wish of RTbug #1787.
8486    
8487     * Resources/Bitmaps/fulllayerextent.xpm,
8488     Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
8489     extent. These are just place holders for the real bitmaps.
8490    
8491     * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
8492     calculate the bounding box once (the first time compute_bbox() is
8493     called).
8494     (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
8495     the bounding box for the shapes in lat/long coordinates.
8496    
8497     * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
8498     option.
8499     (MainWindow.has_selected_shapes): New. Returns true if there are
8500     any selected shapes.
8501     (MainWindow.FullSelectionExtent): New. Calls
8502     MapCanvas.FitSelectedToWindow() when the user selects the menu option.
8503     (_has_selected_shapes): New. Returns true if there are any
8504     selected shapes.
8505    
8506     * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
8507     true if there are any selected shapes.
8508    
8509     * Thuban/UI/view.py (MapCanvas): Added delegated method
8510     HasSelectedShapes.
8511     (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
8512     shapes on the canvas using the map projection (if any).
8513    
8514     * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
8515     for Layer.ShapesBoundingBox().
8516    
8517 bh 826 2003-05-06 Bernhard Herzog <[email protected]>
8518    
8519     * Resources/Projections/defaults.proj: Fix spelling of Mercator
8520    
8521 jonathan 823 2003-05-05 Jonathan Coles <[email protected]>
8522    
8523     Addresses the "Full Layer Extent" wish of RTbug #1787.
8524    
8525     * Resources/Projections/defaults.proj: Added UK National Grid.
8526    
8527     * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
8528     (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
8529     when the user selects the menu option.
8530    
8531     * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
8532     scales the given layer on the canvas using the map projection.
8533    
8534 bh 819 2003-05-05 Bernhard Herzog <[email protected]>
8535    
8536     Convert the table implementations to a new table interface. All
8537     tables use a common mixin class to provide backwards compatibility
8538     until all table users have been updated.
8539    
8540     * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
8541     provide backwards compatibility for table classes implementing the
8542     new interface
8543     (DBFTable, MemoryTable): Implement the new table interface. Use
8544     OldTableInterfaceMixin as base for compatibility
8545     (DBFColumn, MemoryColumn): New. Column description for DBFTable
8546     and MemoryTable resp.
8547    
8548     * test/test_dbf_table.py: New. Test cases for the DBFTable with
8549     the new table interface.
8550    
8551     * test/test_memory_table.py: New. Test cases for the MemoryTable
8552     with the new table interface.
8553    
8554     * test/test_table.py: Document the all tests in this file as only
8555     for backwards compatibility. The equivalent tests for the new
8556     interface are in test_memory_table.py and test_dbf_table.py
8557     (MemoryTableTest.test_read): field_info should be returning tuples
8558     with four items
8559     (MemoryTableTest.test_write): Make doc-string a more precise.
8560    
8561     * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
8562     table interface. Derive from from OldTableInterfaceMixin for
8563     compatibility.
8564     (TransientTableBase.create): New intance variable column_map to
8565     map from names and indices to column objects
8566     (TransientTable.create): Use the new table interface of the input
8567     table
8568     (AutoTransientTable): Convert to new table interface. Derive from
8569     from OldTableInterfaceMixin for compatibility.
8570     (AutoTransientTable.write_record): Removed. It's not implemented
8571     yet and we still have to decide how to handle writing with the new
8572     table and data framework.
8573    
8574     * test/test_transientdb.py
8575     (TestTransientTable.run_iceland_political_tests)
8576     (TestTransientTable.test_transient_joined_table): Use the new
8577     table interface
8578    
8579 jonathan 817 2003-05-05 Jonathan Coles <[email protected]>
8580    
8581     This is namely a collection of UI updates to improve user interactivity.
8582     Tabbing between controls now exists and you can use ESC to close dialog
8583     boxes; ENTER will active the default button.
8584    
8585     * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
8586     order that the controls are created so that tabbing works correctly.
8587     (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
8588     wxDialog can handle the default button correctly.
8589     (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
8590     same reasons as for OnOK.
8591     (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
8592     when we ask the table for the maximum/minimum values of a field
8593     which could take a very long time.
8594    
8595     * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
8596     order that the controls are created so that tabbing works correctly.
8597     (SelectPropertiesDialog.__init__): Rearrange the order that the
8598     controls are created so that tabbing works correctly.
8599    
8600     * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
8601     to derive from a wxDialog but behave like the original implementation
8602     which was derived from a wxFrame. wxDialog provides useful key
8603     handling functionality like ESC calling OnCancel and ENTER calling
8604     OnOK which is lost with wxFrame.
8605    
8606     * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
8607     new dialogs.
8608    
8609     * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
8610     order that the controls are created so that tabbing works correctly.
8611     (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
8612     (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
8613     (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
8614     (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
8615     can provide the "UK National Grid" as a default projection.
8616     (UTMPanel.__init__): Rearrange the order that the controls are
8617     created so that tabbing works correctly.
8618    
8619 bh 809 2003-05-05 Bernhard Herzog <[email protected]>
8620    
8621 bh 811 * extensions/thuban/wxproj.cpp: Fix some of the comments.
8622     (project_point): If a map projection but no layer projection is
8623     given, convert degrees to radians before applying the map
8624     projection.
8625    
8626 bh 809 * Thuban/UI/tableview.py (TableGrid.disallow_messages)
8627     (TableGrid.allow_messages): New methods to make it possible to
8628     inhibit message sending.
8629     (TableGrid.issue): Only send the message if not inhibited.
8630     (LayerTableGrid.select_shape): Use the new methods to make sure
8631     that no ROW_SELECTED message is sent while we're updating the
8632     selected rows to match the selected shapes.
8633    
8634 jan 807 2003-05-02 Jan-Oliver Wagner <[email protected]>
8635    
8636     Implementation of MemoryTable.
8637    
8638     * Thuban/Model/table.py (MemoryTable): New. Quite simple table
8639     implementation that operates on a list of tuples. All of the data
8640     are kept in the memory.
8641    
8642     * test/test_table.py (MemoryTableTest): New.
8643    
8644     * test/test_transientdb.py (SimpleTable): Removed.
8645     (TestTransientTable.test_transient_joined_table,
8646     (TestTransientTable.test_transient_table_read_twice): Replaced
8647     SimpleTable by MemoryTable.
8648    
8649 jonathan 793 2003-04-30 Jonathan Coles <[email protected]>
8650    
8651 jonathan 803 * Data/iceland_sample.thuban: Now contains correct projections
8652     for each of the layers.
8653    
8654     * Resources/Projections/defaults.proj: Geographic projection
8655     contains unit conversion parameter.
8656    
8657     2003-04-30 Jonathan Coles <[email protected]>
8658    
8659 jonathan 793 The most important part of this putback is the projection changes.
8660     It should now be possible to specify the projection that a layer
8661     is in and then specify a different projection for the map. The
8662     projection dialog has an extra parameter for a geographic projection
8663     which lets the user select if the input is in degrees or radians.
8664    
8665     * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
8666     to say that the parameter is a tuple of unprojected
8667     points (which is what the callers to this method were assuming).
8668     Also, since the points are unprojected we need to projected them.
8669    
8670     * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
8671     LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
8672     groups are selected, move the layer up/down. Fixes RTbug #1833.
8673    
8674     * Thuban/UI/mainwindow.py: Move menu item map_rename up.
8675    
8676     * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
8677     parameter in call to SetClientData.
8678     (GeoPanel): Add support for selecting the units that the
8679     source data is in (Radians or Degrees).
8680    
8681     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
8682     the rendering loop by reducing the number of if's, removing the
8683     unnecessary try/except block, and checking if the old group
8684     is the same as the new one (which happens a lot if there is
8685     no classification, or lots of shapes are in the same group).
8686    
8687     * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
8688     around the redraw routine to try to catch problems that the user
8689     may create by selecting invalid projections for the data set and
8690     map. Clears the display if there are any problems and prints the
8691     error.
8692     (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
8693     rectangle.
8694    
8695     * extensions/thuban/wxproj.cpp (project_point): First invert the
8696     supplied point (which should be in projected coordinates) using
8697     the layer's projection and then project the point using the
8698     map's projection.
8699     (project_points): Use project_point() to project each point.
8700    
8701 jan 792 2003-04-30 Jan-Oliver Wagner <[email protected]>
8702    
8703     * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
8704     don't set the Classification to None if the classfication field
8705     is None (ie only a DEFAULT).
8706    
8707 bh 786 2003-04-30 Bernhard Herzog <[email protected]>
8708    
8709 bh 790 * Thuban/UI/view.py: Fix some typos.
8710    
8711 bh 788 * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
8712     not pop up the dialog if the selection becomes empty (this could
8713     happen if e.g. a new selection is opened while the identify tool
8714     is active and dialog had been closed)
8715    
8716     2003-04-30 Bernhard Herzog <[email protected]>
8717    
8718 bh 786 * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
8719     instance variable read_record_last_result
8720     (TransientTableBase.read_record): Make sure reading the same
8721     record twice works. The implementation uses the new instance
8722     variable read_record_last_result
8723    
8724     * test/test_transientdb.py
8725     (TestTransientTable.test_transient_table_read_twice): New test
8726     case for the above bug-fix.
8727    
8728 jonathan 793 2003-04-29 Jonathan Coles <[email protected]>
8729    
8730     * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
8731    
8732     * Thuban/UI/classgen.py: Remove all uses of Str2Num.
8733    
8734     * Thuban/UI/classifier.py: Remove all uses of Str2Num.
8735     (ClassTable.SetValueAsCustom): Rename keyword argument in
8736     ClassGroup* constructors to match argument name.
8737    
8738 bh 779 2003-04-29 Bernhard Herzog <[email protected]>
8739    
8740     * Thuban/Model/session.py (Session.Destroy): Explicitly close the
8741     transient DB if it exists to make sure it doesn't leave a journal
8742     file in the temp directory.
8743    
8744     * Thuban/Model/transientdb.py (TransientDatabase.close): Set
8745     self.conn to None after closing the connection to make sure it's
8746     not closed twice
8747    
8748 jonathan 767 2003-04-29 Jonathan Coles <[email protected]>
8749    
8750 jonathan 769 Add a visible parameter in the layer XML tag. The default value is
8751     "true". If anything other than "false" is specified we also assume
8752 jonathan 776 "true". Addresses RTbug #1025.
8753 jonathan 769
8754     * Doc/thuban.dtd: Add visible parameter to a layer.
8755    
8756     * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
8757     of visible from 1 to True.
8758     (Layer.__init__): Change default value of visible from 1 to True.
8759    
8760     * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
8761     parameter.
8762    
8763     * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
8764     parameter.
8765    
8766     * test/test_load.py: Add new test data contents_test_visible.
8767     (LoadSessionTest.setUp): save test data.
8768     (LoadSessionTest.testLayerVisibility): Test if the visible flag
8769     is loaded correctly.
8770    
8771     * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
8772     for saving an invisible layer.
8773    
8774     2003-04-29 Jonathan Coles <[email protected]>
8775    
8776 jonathan 767 * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
8777     legend dialog box and tell it to change its map to the one
8778     supplied to SetMap(). Fixes RTbug #1770.
8779    
8780 bh 764 2003-04-29 Bernhard Herzog <[email protected]>
8781    
8782 bh 766 Next step of table implementation. Introduce a transient database
8783     using SQLite that some of the data is copied to on demand. This
8784     allows us to do joins and other operations that require an index
8785     for good performance with reasonable efficiency. Thuban now needs
8786     SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
8787     haven't tested that.
8788    
8789     * Thuban/Model/transientdb.py: New. Transient database
8790     implementation.
8791    
8792     * test/test_transientdb.py: New. Tests for the transient DB
8793     classes.
8794    
8795     * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
8796     classes to help automatically remove temporary files and
8797     directories.
8798     (Session.__init__): New instance variables temp_dir for the
8799     temporary directory and transient_db for the SQLite database
8800     (Session.temp_directory): New. Create a temporary directory if not
8801     yet done and return its name. Use AutoRemoveDir to have it
8802     automatically deleted
8803     (Session.TransientDB): Instantiate the transient database if not
8804     done yet and return it.
8805    
8806     * Thuban/Model/data.py (ShapefileStore.__init__): Use an
8807     AutoTransientTable so that data is copied to the transient DB on
8808     demand.
8809     (SimpleStore): New class that simply combines a table and a
8810     shapefile
8811    
8812     * Thuban/Model/table.py (Table, DBFTable): Rename Table into
8813     DBFTable and update its doc-string to reflect the fact that this
8814     is only the table interface to a DBF file. Table is now an alias
8815     for DBFTable for temporary backwards compatibility.
8816    
8817     * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
8818     the last reference to the session goes away so that the temporary
8819     files are removed properly.
8820    
8821     * test/test_load.py (LoadSessionTest.tearDown): Remove the
8822     reference to the session to make sure the temporary files are
8823     removed.
8824    
8825     2003-04-29 Bernhard Herzog <[email protected]>
8826    
8827 bh 764 * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
8828     the __parser instance variable into a normal local variable in
8829     read. It's only used there and read will never be called more than
8830     once. Plus it introduces a reference cycle that keeps can keep the
8831     session object alive for a long time.
8832    
8833 jonathan 767 2003-04-29 Jonathan Coles <[email protected]>
8834 jonathan 735
8835 jonathan 762 * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
8836     Projection an immutable item. Fixes RTbug #1825.
8837     (Projection.__init__): Initialize instance variables here.
8838     (ProjFile.Replace): New. Replace the given projection object with
8839     the new projection object. This solves the problem of needing the
8840     mutator Projection.SetProjection() in the ProjFrame class and
8841     allows a projection to change parameters without changing its
8842     location in the file.
8843    
8844     * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
8845     be of type wxSAVE and should verify overwriting a file.
8846    
8847     * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
8848     ProjFile.Replace() method instead of the mutator
8849     Projection.SetProjection(). Also requires that we reassign the
8850     client data to the new projection.
8851    
8852     * test/test_proj.py (TestProjection.test): Test GetName() and
8853     GetAllParameters()
8854     (TestProjFile.test): Remove tests for Set*() methods. Add tests
8855     for Replace().
8856    
8857     2003-04-25 Jonathan Coles <[email protected]>
8858    
8859 jonathan 756 * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
8860     to save the name of the projection.
8861    
8862     * test/test_save.py (SaveSessionTest.testLayerProjection): New
8863     test to verify layer projections are saved correctly.
8864    
8865     2003-04-25 Jonathan Coles <[email protected]>
8866    
8867 jonathan 753 * Thuban/Model/proj.py (Projection.SetName): Set the name
8868     to "Unknown" if name is None.
8869     (Projection.SetAllParameters): New. Set the projection's
8870     parameter list to the one supplied.
8871     (Projection.SetProjection): New. Set the projection's
8872     properties to those of the supplied Projection.
8873    
8874     * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
8875     the dialog title to include the map's title.
8876     (MainWindow.LayerProjection): Set the dialog title to include
8877     the layer's title.
8878    
8879     * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
8880     error dialogs into a single method call.
8881     (ProjFrame.__VerifyButtons): Add more states to check.
8882     (ProjFrame.__GetProjection): Return the current state of an
8883     edited projection or None.
8884     (ProjFrame.__FillAvailList): Remove checks for states that
8885     shouldn't exist.
8886     (ProjFrame._OnNew): Clear all selected items and supply
8887     a projection panel if necessary.
8888    
8889     * test/test_proj.py (TestProjFile.test): Add tests for
8890     ProjFile.SetAllParameters, ProjFile.SetProjection,
8891     ProjFile.SetName.
8892    
8893     2003-04-25 Jonathan Coles <[email protected]>
8894    
8895 jonathan 748 * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
8896     takes an optional argument to select the current projection.
8897     This does not guarantee that the item is visible due to
8898     limited wxWindows functionality. Fixes RTBug #1821.
8899    
8900     2003-04-25 Jonathan Coles <[email protected]>
8901    
8902 jonathan 743 * Thuban/Model/load.py (SessionLoader.start_projection): Remember
8903     the projection name and use it when constructing the Projection
8904     object.
8905    
8906     * Thuban/Model/proj.py (Projection.__init__): Change the default
8907     value for 'name' to None and then test if name is equal to None
8908     in the body of the constructor. This way the caller doesn't have to
8909     know what the default value should be. Namely, useful in load.py
8910     where we have to pick a default value if the 'name' parameter
8911     doesn't exist in the XML file.
8912    
8913     * test/test_load.py (LoadSessionTest.testLayerProjection): New.
8914     Tests a file where a layer has a projection.
8915    
8916     2003-04-25 Jonathan Coles <[email protected]>
8917    
8918 jonathan 735 * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
8919     tree for projection information.
8920    
8921     * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
8922     XMLReader.GetFileName.
8923     (SessionLoader): Added support for loading projection tags that
8924     appear inside a layer.
8925    
8926     * Thuban/Model/proj.py (ProjFile): Document the class. Move
8927     back to using a list because the order of the projections in
8928     the file is important to maintain. Fixes RTbug #1817.
8929    
8930     * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
8931     to ProjFile.GetFilename.
8932    
8933     * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
8934     information.
8935    
8936     * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
8937     ProjFrame._OnSaveAs. Removed old dead code from previous
8938     implementation.
8939     (ProjFrame._OnExport): Add support for exporting more than one
8940     projection to a single file.
8941     (ProjFrame.__FillAvailList): use string formatting (% operator)
8942     to build strings that are (partly) translated. Fixes RTbug #1818.
8943    
8944     * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
8945     class.
8946    
8947 bh 734 2003-04-24 Bernhard Herzog <[email protected]>
8948    
8949     * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
8950    
8951     * po/fr.po: New. French translation by Daniel Calvelo Aros
8952    
8953     * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
8954     empty strings.
8955    
8956 jonathan 735 2003-04-24 Jonathan Coles <[email protected]>
8957 jonathan 724
8958     * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
8959     implement the interface that the ProjFrame dialog expects.
8960    
8961     * Thuban/Model/proj.py (Projection.SetName): New. Allows the
8962     name of the projection to be changed.
8963     (ProjFile): Use a dictionary instead of a list so that removing
8964     projections is easier and we are sure about uniqueness.
8965     (ProjFile.Remove): Remove the given projection object.
8966    
8967     * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
8968     Return a list with only one projection file instead of searching for
8969     any projection file. This simplifies many things if the user can
8970     only have one system file and one user file.
8971    
8972     * Thuban/UI/classgen.py: Change all references to
8973     genCombo to genChoice.
8974    
8975     * Thuban/UI/mainwindow.py: Add a Projection option under the
8976     layer menu.
8977     (MainWindow.LayerProjection): New. Open up a projection window
8978     for a layer.
8979    
8980     * Thuban/UI/projdialog.py: Large changes to how the dialog is
8981     laid out. Use three panels instead of one. One for the list of
8982     projections, one for the edit controls, and one for the buttons.
8983     Fixed resizing problems so that the dialog resizes correctly
8984     when the projection panel changes. Added import/export, save, and
8985     new buttons/functionality.
8986    
8987 bh 723 2003-04-24 Bernhard Herzog <[email protected]>
8988    
8989     First step towards table management. Introduce a simple data
8990     abstraction so that we replace the data a layer uses more easily
8991     in the next step.
8992    
8993     * Thuban/Model/data.py: New file with a simple data abstraction
8994     that bundles shapefile and dbffile into one object.
8995    
8996     * Thuban/Model/session.py (Session.OpenShapefile): New method to
8997     open shapefiles and return a shape store object
8998    
8999     * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
9000     object instead of a shapefile filename. This introduces a new
9001     instance variable store holding the datastore. For intermediate
9002     backwards compatibility keep the old instance variables.
9003     (open_shapefile): Removed. No longer needed with the shape store.
9004     (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
9005     get the shape store used by a layer.
9006     (Layer.Destroy): No need to explicitly destroy the shapefile or
9007     table anymore.
9008    
9009     * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
9010     (MainWindow.AddLayer): Use the session's OpenShapefile method to
9011     open shapefiles
9012    
9013     * Thuban/Model/load.py (ProcessSession.start_layer): Use the
9014     session's OpenShapefile method to open shapefiles
9015    
9016     * test/test_classification.py
9017     (TestClassification.test_classification): Use the session's
9018     OpenShapefile method to open shapefiles and build the filename in
9019     a more platform independed way
9020    
9021     * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
9022     Implement to have a session to use in the tests
9023     (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
9024     (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
9025     session's OpenShapefile method to open shapefiles
9026     (TestLayerLegend.setUp): Instantiate a session so that we can use
9027     it to open shapefiles.
9028     (TestLayerLegend.tearDown): Make sure that all references to
9029     layers and session are removed otherwise we may get a resource
9030     leak
9031    
9032     * test/test_map.py (TestMapAddLayer.test_add_layer)
9033     (TestMapWithContents.setUp): Instantiate a session so that we can
9034     use it to open shapefiles.
9035     (TestMapWithContents.tearDown): Make sure that all references to
9036     layers, maps and sessions are removed otherwise we may get a
9037     resource leak
9038     ("__main__"): use support.run_tests() so that more info about
9039     uncollected garbage is printed
9040    
9041     * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
9042     session's OpenShapefile method to open shapefiles
9043     ("__main__"): use support.run_tests() so that more info about
9044     uncollected garbage is printed
9045    
9046     * test/test_selection.py (TestSelection.tearDown): Make sure that
9047     all references to the session and the selection are removed
9048     otherwise we may get a resource leak
9049     (TestSelection.get_layer): Instantiate a session so that we can
9050     use it to open shapefiles.
9051     ("__main__"): use support.run_tests() so that more info about
9052     uncollected garbage is printed
9053    
9054     * test/test_session.py (TestSessionBase.tearDown)
9055     (TestSessionWithContent.tearDown): Make sure that all references
9056     to the session and layers are removed otherwise we may get a
9057     resource leak
9058     (TestSessionWithContent.setUp): Use the session's OpenShapefile
9059     method to open shapefiles
9060    
9061 jonathan 721 2003-04-24 Jonathan Coles <[email protected]>
9062    
9063     * Thuban/Model/load.py (XMLReader.read): Should have been checking
9064     if the file_or_filename object had the 'read' attribute.
9065    
9066 jonathan 715 2003-04-23 Jonathan Coles <[email protected]>
9067    
9068 jonathan 720 * Thuban/Model/resource.py: Fixes RTbug #1813.
9069     (ReadProjFile): Add documentation about which exceptions are raised.
9070     Always pass the exceptions up to the caller.
9071     (GetProjFiles): If the directory can't be read return an empty list.
9072     If any of the proj files can't be read skip that file and go
9073     on to the next one.
9074    
9075     * test/test_proj.py: Added test cases to handle nonexistent files,
9076     unreadable files, and files that don't parse correctly.
9077    
9078     2003-04-23 Jonathan Coles <[email protected]>
9079    
9080 jonathan 716 Projection dialog. Allows the user to select from a list
9081     of projection templates and optionally edit them and save new ones.
9082    
9083     * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
9084     (ProjPanel): Base class for projection specific panels.
9085     (TMPanel): Projection panel for Transverse Mercartor.
9086     (UTMPanel): Projection panel for Universal Transverse Mercartor.
9087     (LCCPanel): Projection panel for Lambert Conic Conformal.
9088     (GeoPanel): Projetion panel for Geographic Projection.
9089    
9090     2003-04-23 Jonathan Coles <[email protected]>
9091    
9092 jonathan 715 * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
9093     promote symmetry. There now exists XMLReader and XMLWriter.
9094     (XMLReader.read): New. Call to read the given file descriptor or
9095     filename.
9096     (XMLReader.close): New. Make sure the file is closed.
9097     (XMLReader.GetFileName): New. Return just the file name that is being
9098     read from.
9099     (XMLReader.GetDirectory): New. Return just the directory of the file
9100     that is being read.
9101     (XMLReader.AddDispatchers): New. Take a dictionary which contains
9102     the names of functions to call as the XML tree is parsed.
9103     (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
9104     (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
9105     (SessionLoader): Removed class variables start_dispatcher and
9106     end_dispatcher since this functionality is now part of a class
9107     instance. Fixes RTbug #1808.
9108     (SessionLoader.__init__): Add dispatcher functions.
9109     (load_xmlfile): Code was moved into the XMLReader.read().
9110     (load_session): Use modified SessionLoader.
9111    
9112     * Thuban/Model/map.py (Map.GetProjection): New. Returns the
9113     map's projection.
9114    
9115     * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
9116     GetAllParameters.
9117     (Projection.GetParameter): Returns the value for the given parameter.
9118    
9119     * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
9120     (GetProjFiles): Renamed from GetProjections. Now returns a list
9121     of ProjFile objects.
9122     (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
9123     a list of ProjFile objects whose files are not user defined.
9124     (GetUserProjFiles): Renamed from GetUserProjections. Returns a
9125     list of ProjFile objects whose files are user defined.
9126     (ProjFileReader): Extend new XMLReader.
9127    
9128     * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
9129     promote symmetry.
9130    
9131     * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
9132     control instead of a wxComboBox. wxChoice controls do not generate
9133     events as the uses highlights possible choices which fixes problems
9134     with resizing the dialog when the use selects an option.
9135    
9136     * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
9137     control instead of a wxComboBox.
9138    
9139     * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
9140     dialog.
9141    
9142     * test/test_proj.py (TestProjection.test): New tests for GetParameter
9143     method.
9144    
9145 bh 703 2003-04-22 Bernhard Herzog <[email protected]>
9146    
9147 bh 705 * Thuban/UI/mainwindow.py: Remove some unused imports and global
9148     constants
9149    
9150 bh 703 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
9151     (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
9152    
9153 bh 700 2003-04-17 Bernhard Herzog <[email protected]>
9154    
9155 bh 701 * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
9156     (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
9157     anymore.
9158     (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
9159     (Layer.ShapeType, Layer.Shape): No need to call
9160     self.open_shapefile since it's always called in __init__
9161    
9162 bh 700 * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
9163     In wxPython 2.4 there's no need to extend MainLoop anymore since
9164     wxPython itself makes sure OnExit is called.
9165    
9166 jonathan 688 2003-04-16 Jonathan Coles <[email protected]>
9167    
9168 jonathan 693 Initial putback of projection management code. Includes new
9169     classes to read and write projection files. The current load
9170     and save classes were abstracted a bit so they could be reused.
9171     The Projection class was extended to provide new methods and
9172     have a name.
9173    
9174     * Thuban/Model/load.py (XMLProcessor): New. Contains all the
9175     general XML reading methods that were part of ProcessSession.
9176    
9177     * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
9178     name.
9179     (ProjFile): New. Represents a file that contains projection
9180     information.
9181    
9182     * Thuban/Model/resource.py: New. Contains general utilities
9183     for read and writing projection files.
9184    
9185     * Thuban/Model/save.py (XMLSaver): New. Contains all the
9186     general XML writing methods that were part of SessionSaver.
9187     (SessionSaver): Renamed from Saver.
9188    
9189     * test/test_proj.py: New test cases for the projection
9190     file read and write functions.
9191    
9192     2003-04-16 Jonathan Coles <[email protected]>
9193    
9194 jonathan 688 * Thuban/Model/classification.py: Use repr() around values
9195     in the ClassGroup*.__repr__() methods so it is clearer when
9196     a value is a string and when it is a number.
9197    
9198     * test/test_load.py: Rework the classification test to test
9199     that we can load old files.
9200     (testLabels): Test a file where the groups have labels.
9201    
9202 bh 687 2003-04-16 Bernhard Herzog <[email protected]>
9203    
9204     Safer implementation of the performance enhancements of the
9205     low-level renderer:
9206    
9207     * extensions/thuban/wxproj.cpp (extract_projection)
9208     (extract_pointer): Rename extract_projection to extract_pointer
9209     and redefine its purpose to return the pointer stored in a CObject
9210     returned by the object's cobject method. Update all callers.
9211     (s_draw_info, free_draw_info, draw_polygon_init): Implement the
9212     handling of these low-level parameters so that each s_draw_info
9213     instance is handled as a CObject at python level that also
9214     contains real references to the actual python objects which
9215     contain the values in the struct. Add free_draw_info as the
9216     destructor.
9217     (draw_polygon_shape): Add the py_draw_info parameter which must a
9218     cobject containing an s_draw_info pointer.
9219    
9220     * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
9221     method to instantiat the low-level render parameter
9222     (MapRenderer.draw_shape_layer): Use the new method. Remove some
9223     commented out code.
9224     (MapRenderer.draw_polygon_shape): Make the first parameter not the
9225     layer but the low-level render parameter
9226     (ScreenRenderer.draw_shape_layer): Use the low-level render
9227     parameter.
9228    
9229 jonathan 673 2003-04-15 Jonathan Coles <[email protected]>
9230    
9231 jonathan 680 * Thuban/Model/classification.py: Implemented __repr__ for
9232     the ClassGroup* classes to make debugging a bit easier.
9233     (ClassGroup.SetLabel): Check that the string is an instance
9234     of StringTypes not StringType. Accounts for Unicode strings.
9235    
9236     * Thuban/Model/color.py: Implemented __repr__ to make
9237     debugging a bit easier.
9238    
9239     * Thuban/Model/save.py (Saver.write_classification): Need to
9240     save the group label.
9241    
9242     * test/test_load.py (testClassification): New. Loads the
9243     iceland_sample_test.thuban file and checks if it was loaded
9244     correctly.
9245    
9246     2003-04-15 Jonathan Coles <[email protected]>
9247    
9248 jonathan 673 * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
9249     to improve rendering performance by initializing the variables
9250     that are not change each time draw_polygon_shape() is called.
9251     The values are stored in a global struct draw_info.
9252     (draw_polygon_shape): Removed initialization code that is
9253     now in draw_polygon_init().
9254    
9255     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
9256 jonathan 674 drawing initialization call to draw_polygon_init()
9257     (MapRenderer.draw_polygon_shape): Use new signature of
9258     draw_polygon_shape.
9259 jonathan 673
9260 jonathan 674 * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
9261     weirdness by setting the range to (1, maxint).
9262 jonathan 673
9263 jonathan 674 * Thuban/Model/classification.py (ClassGroupProperties): Make
9264     instance variables private and optimize comparison operator
9265     by first checking if the color references are the same.
9266     (ClassGroupSingleton): Make instance variables private.
9267     (ClassGroupRange): Make instance variables private.
9268 jonathan 673
9269 jonathan 674 * HOWTO-Release: Filled in missing steps for releasing packages.
9270    
9271 bh 672 2003-04-15 Bernhard Herzog <[email protected]>
9272    
9273     First stab at internationalized messages:
9274    
9275     * Thuban/__init__.py (_): Implement the translation function for
9276     real using the python gettext module.
9277    
9278     * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
9279     translate empty strings.
9280    
9281     * Thuban/UI/application.py (ThubanApplication.read_startup_files):
9282     Add a missing space to a warning message
9283    
9284     * po/README: New. Notes about the management of the translation
9285     files.
9286    
9287     * po/Makefile: New. Makefile to help manage the translation files.
9288    
9289     * po/es.po: New. Spanish translation by Daniel Calvelo Aros
9290    
9291     * MANIFEST.in: Include the *.mo files in Resources/Locale and the
9292     translations and support files in po/
9293    
9294     * setup.py (data_files): Add the *.mo files to the data_files too
9295    
9296     * README: Add note about the translations when building from CVS
9297    
9298 jonathan 669 2003-04-14 Jonathan Coles <[email protected]>
9299    
9300     * Thuban/UI/dock.py: Fixes some window resizing problems most
9301     noticable under windows. Always assume the button bitmaps will
9302     be there. Code clean up.
9303     (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
9304     images for the dock/undock button to the same images.
9305     Work around for RTbug #1801.
9306    
9307     * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
9308     be allowed to grow within the sizer. Fixes a bug under Windows
9309     where the toolbar wasn't being drawn.
9310    
9311 frank 664 2003-04-14 Frank Koormann <[email protected]>
9312    
9313     * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
9314     Updated design to try to make the button functionality more
9315     transparent.
9316    
9317 jonathan 662 2003-04-14 Jonathan Coles <[email protected]>
9318    
9319     * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
9320     finalize the intialization of the panel.
9321    
9322     * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
9323     creation of the panel. Should be the last thing called in the
9324     initializer of a subclass.
9325    
9326     * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
9327     set the current selections in the combo boxes. This is needed
9328     under Windows.
9329    
9330     * Thuban/UI/classifier.py (Classifier.__init__): Add a top
9331     level panel to the dialog so that the background colors are
9332     consistent under Windows.
9333    
9334 jonathan 646 2003-04-11 Jonathan Coles <[email protected]>
9335    
9336 jonathan 662 * Thuban/UI/classgen.py: Change color ramps to start at white
9337     not black.
9338    
9339     * Thuban/UI/legend.py: Enable/disable the legend buttons when
9340     the legend changes. Fixes RTbug #1793.
9341    
9342     * test/test_classification.py: Added test for copying of
9343     classifications.
9344    
9345     2003-04-11 Jonathan Coles <[email protected]>
9346    
9347 jonathan 647 * Thuban/UI/resource.py: New. Centralize the loading of resources
9348     such as bitmaps.
9349    
9350     * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
9351     added images to the move buttons, added 'reverse' button.
9352     (CustomRampPanel.__init__): Added images to the move buttons.
9353     (GreyRamp): New. Generates a ramp from white to black.
9354     (HotToColdRamp): New. Generates a ramp from cold to hot colors.
9355    
9356     * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
9357     ID_PROPERTY_*.
9358     (Classifier.__init__): Minor changes to the layout.
9359     (Classifier._OnTitleChanged): Listen for when the user edits the
9360     title and update the dialog's title and the layer's title.
9361    
9362     * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
9363    
9364     * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
9365     (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
9366     if the layer's title changes.
9367    
9368     * Thuban/UI/mainwindow.py: Added new menu item and associated code
9369     to open a dialog to rename the map.
9370     (MainWindow): Use new resource class to import bitmaps.
9371    
9372     2003-04-11 Jonathan Coles <[email protected]>
9373    
9374 jonathan 646 * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
9375 jonathan 647 Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
9376     Resources/Bitmaps/group_use_none.xpm,
9377     Resources/Bitmaps/group_use_not.xpm,
9378     Resources/Bitmaps/hide_layer.xpm,
9379     Resources/Bitmaps/layer_properties.xpm,
9380     Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
9381     Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
9382     New.
9383 jonathan 646
9384 jonathan 636 2003-04-10 Jonathan Coles <[email protected]>
9385    
9386 jonathan 644 * Thuban/Model/classification.py: (ClassGroupRange.__init__):
9387     Should pass group to ClassGroup constructor.
9388    
9389     2003-04-10 Jonathan Coles <[email protected]>
9390    
9391 jonathan 636 * Thuban/Model/classification.py: (ClassGroup): Move all the common
9392     methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
9393     here. Implement SetVisible(), IsVisible().
9394     (ClassGroup.__init__): Add group parameter which acts as a copy
9395     constructor.
9396    
9397     * Thuban/UI/classifier.py (ClassTable): Add a new column for the
9398     "Visible" check boxes.
9399     (Classifier): Rename the buttons and refactor the code to match
9400     the new labels.
9401    
9402     * Thuban/UI/legend.py: Classify button is now called "Properties".
9403     Refactored the code to change variable names.
9404     (LegendTree.__FillTreeLayer): Only list a group if it is visible.
9405    
9406     * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
9407     MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
9408     renamed to MainWindow.LayerEditProperties.
9409     (MainWindow.ToggleLegend): Don't include map name in legend title.
9410     (MainWindow.SetMap): Added the map name to the window title.
9411     (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
9412     MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
9413     Functionality is found in the layer properties dialog.
9414    
9415     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
9416     draw visible groups.
9417    
9418 jonathan 626 2003-04-09 Jonathan Coles <[email protected]>
9419    
9420 jonathan 634 * Thuban/UI/classgen.py: Modifications to allow simple
9421     addition and selection of new color schemes.
9422     (MonochromaticRamp): New. Generates a ramp between two colors.
9423     (RedRamp): New. Generates a ramp of all red.
9424     (GreenRamp): New. Generates a ramp of all green.
9425     (BlueRamp): New. Generates a ramp of all blue.
9426    
9427     2003-04-09 Jonathan Coles <[email protected]>
9428    
9429 jonathan 626 * Thuban/Model/classification.py (Classification.__deepcopy__):
9430     Need to copy over field and fieldType attributes.
9431    
9432     * Thuban/Model/table.py (Table.field_range): New. Retrive the
9433     maximum and minimum values over the entire table for a given
9434     field.
9435     (Table.GetUniqueValues): New. Retrieve all the unique values
9436     in the table for a given field.
9437    
9438     * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
9439     (GenUniquePanel): New. Controls to allow the user to select
9440     which unique field values they would like in the classification.
9441     (CustomRampPanel): Code that was in ClassGenDialog that allows
9442     the user to select the properties for a custom ramp.
9443     (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
9444    
9445     * Thuban/UI/classifier.py: Removed a lot of debugging code.
9446     (Classifier._SetClassification): Callback method so that the
9447     class generator can set the classification in the grid.
9448     (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
9449     editing of a group properties class into a wxWindows control.
9450    
9451     * Thuban/UI/dock.py: It was decided that if the user closes
9452     a dockable window the window should simply hide itself. That
9453     way if the user wants to show the dock again it appears in the
9454     same place as it was when it was closed.
9455     (DockableWindow.Destroy): Call renamed method OnDockDestroy().
9456     (DockableWindow._OnButtonClose): Hide the window instead of
9457     destroying it.
9458     (DockableWindow._OnClose): Hide the window instead of
9459     destroying it.
9460    
9461     * Thuban/UI/legend.py (LegendTree): Use a private method to
9462     consistently set the font and style of the text. Fixes RTbug #1786.
9463    
9464     * Thuban/UI/mainwindow.py: Import just the Classifier class.
9465    
9466 bh 623 2003-04-07 Bernhard Herzog <[email protected]>
9467    
9468 bh 625 * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
9469     to the map module
9470    
9471     2003-04-07 Bernhard Herzog <[email protected]>
9472    
9473 bh 623 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
9474     favor of ToggleSessionTree
9475     (MainWindow.ToggleSessionTree): New method to toggle visibility of
9476     the session tree.
9477     (MainWindow.SessionTreeShown): New method to return whether the
9478     session tree is currently shown.
9479     (MainWindow.ToggleLegend): New method to toggle visibility of the
9480     legend
9481     (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
9482     LegendShown
9483     (MainWindow.LegendShown): New method to return whether the legend
9484     is currently shown.
9485     (_method_command): Add checked parameter so we can define check
9486     menu items
9487     (_has_tree_window_shown, _has_legend_shown): Use the appropriate
9488     mainwindow methods.
9489     (show_session_tree, show_legend commands): Removed.
9490     (toggle_session_tree, toggle_legend commands): New commands to
9491     toggle the visibility of the dialogs
9492    
9493 jonathan 612 2003-04-07 Jonathan Coles <[email protected]>
9494    
9495 jonathan 619 * Thuban/UI/classgen.py: Fix Windows problem.
9496    
9497     * Thuban/UI/dock.py: Fix Windows problem.
9498    
9499     * Thuban/UI/mainwindow.py: Use False instead of false.
9500     (MainWindow.ShowLegend): Remove unnecessary switch parameter.
9501    
9502     2003-04-07 Jonathan Coles <[email protected]>
9503    
9504 jonathan 612 Since we now say that the order of the groups in a classification
9505     matters, it makes sense to be able to manipulate that order. Most
9506     of the changes to Thuban/Model/classification.py are to that end.
9507    
9508     * Thuban/Model/classification.py (Classification.AppendGroup,
9509     Classification.InsertGroup, Classification.ReplaceGroup,
9510     Classification.RemoveGroup, Classification.GetGroup): Do as the
9511     names imply.
9512     (Classification.FindGroup): This was called GetGroup, but GetGroup
9513     takes an index, while FindGroup takes a value.
9514     (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
9515     REFERENCE. Currently there is a cyclic reference between the layer
9516     and its classification. If the classification doesn't need to know
9517     its owning layer we can change this, since it may make sense to be
9518     able to use the same classification with different layers.
9519    
9520     * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
9521    
9522     * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
9523     not AddGroup()
9524    
9525     * Thuban/UI/classifier.py: Now that we can depend on the order in
9526     a Classification and have methods to manipulate that order we don't
9527     need to use our own data structures in the grid. We can simply make
9528     the grid/table access the information they need from a copy of
9529     the classification object.
9530     (Classifier._OnCloseBtn): Event handler for when the user clicks
9531     'Close'. This is needed so if the user applies changes and then
9532     continues to change the table the user has the option of discarding
9533     the most recent changes and keeping what they applied.
9534    
9535     * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
9536     into the same group.
9537    
9538     * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
9539     with a really old version of proj, PJ_VERSION won't even be defined.
9540     If it isn't defined then just compile so that the function always
9541     returns Py_False.
9542    
9543     * test/test_classification.py: Fix tests to use the renamed methods.
9544     Still need to write tests for the new methods.
9545    
9546 jonathan 601 2003-04-04 Jonathan Coles <[email protected]>
9547 jonathan 608
9548 jonathan 612 * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
9549     call to SetSelection out of the method and before the call
9550     to __SelectField in __init__. This prevents a recursion of events
9551     when _OnFieldSelect is triggered by the user.
9552    
9553     2003-04-04 Jonathan Coles <[email protected]>
9554    
9555 jonathan 608 * Thuban/Model/classification.py: Rename Color.None to
9556     Color.Transparent.
9557     (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
9558     Don't bother copying the color, since Colors are immutable.
9559    
9560     * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
9561     Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
9562     Thuban/UI/renderer.py, Thuban/UI/view.py:
9563     Rename Color.None to Color.Transparent.
9564    
9565     * test/test_classification.py, test/test_load.py: Rename Color.None
9566     to Color.Transparent.
9567    
9568     2003-04-04 Jonathan Coles <[email protected]>
9569 jonathan 603
9570     * Thuban/Model/classification.py: Fix assert calls.
9571     (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
9572     Copy the color parameter rather than hold onto a reference.
9573 jonathan 601
9574 jonathan 603 * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
9575     the color object.
9576     (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
9577     are sure there exists only one refernce to Color.None in the system.
9578     This allows us to use 'is' rather than the comparision functions.
9579    
9580     * Thuban/Model/save.py: Fix assert calls.
9581    
9582     * Thuban/UI/classifier.py: Fix assert calls.
9583     (ClassGrid._OnCellDClick): Call up to the classifier to open the
9584     dialog to edit the groups properties.
9585     (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
9586     correctly if a cell is resized.
9587     (ClassTable.SetClassification): New. Changes the classification
9588     that is in the table.
9589     (ClassTable.__SetRow): Allow groups to be prepended.
9590     (Classifier): New code for opening the EditProperties and
9591     GenerateRanges dialogs.
9592     (SelectPropertiesDialog.__GetColor): Only set the color in the
9593     color dialog if the current color is not None.
9594    
9595     * Thuban/UI/dock.py: Fix assert calls.
9596    
9597     * Thuban/UI/legend.py: Fix assert calls.
9598    
9599     * Thuban/UI/renderer.py: Fix assert calls.
9600    
9601     * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
9602     classifications.
9603     (GenRangePanel): Panel specific to range generation.
9604     (GenSingletonPanel): Panel specific to singleton generation.
9605     (ClassGenerator): Class responsible for actually generating
9606     the classification from the data gathered in the dialog box.
9607     (PropertyRamp): Generates properties whose values range from
9608     a starting property to an ending property.
9609 jonathan 601
9610 bh 600 2003-04-03 Bernhard Herzog <[email protected]>
9611    
9612     * test/support.py (print_garbage_information): New function that
9613     prints information about still connected messages and memory
9614     leaks.
9615     (run_suite): Removed.
9616     (run_tests): New function for use as a replacement of
9617     unittest.main in the test_* files. This one calls
9618     print_garbage_information at the end.
9619    
9620     * test/runtests.py (main): Use support.print_garbage_information
9621    
9622     * test/test_layer.py: Use support.run_tests instead of
9623     unittest.main so we get memory leak information
9624     (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
9625     (TestLayer.test_point_layer, TestLayer.test_empty_layer)
9626     (TestLayerLegend.test_visibility): Call the layer's Destroy method
9627     to fix a memory leak.
9628    
9629     * test/test_classification.py: Use support.run_tests instead of
9630     unittest.main so we get memory leak information
9631     (TestClassification.test_classification): Call the layer's Destroy
9632     method to fix a memory leak.
9633    
9634 bh 591 2003-04-02 Bernhard Herzog <[email protected]>
9635    
9636 bh 595 * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
9637     Handle the reference counts of the return value and errors in
9638     PyArg_ParseTuple correctly.
9639    
9640 bh 593 * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
9641     sure the filename is absolute to avoid problems when saving the
9642     session again
9643    
9644 bh 591 * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
9645    
9646 jonathan 587 2003-04-01 Jonathan Coles <[email protected]>
9647    
9648 jonathan 589 * Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
9649 jonathan 587 that there actually are points in the returned list of points
9650     before trying to index into the list. The list may be empty if
9651     the shape is a Null Shape.
9652    
9653 bh 586 2003-04-01 Bernhard Herzog <[email protected]>
9654    
9655     * test/test_map.py: Don't use from <module> import *
9656    
9657 jonathan 581 2003-04-01 Jonathan Coles <[email protected]>
9658    
9659     * Thuban/Model/session.py: Use LAYER_CHANGED instead of
9660     LAYER_LEGEND_CHANGED
9661    
9662     * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
9663     self.Destroy() to close the window after yesterday's changes.
9664    
9665     * test/test_map.py, test/test_session.py: Fix messages that
9666     are sent from maps and layers.
9667    
9668 jonathan 575 2003-03-31 Jonathan Coles <[email protected]>
9669    
9670     * Thuban/UI/classifier.py: Commented out some debugging statements.
9671     (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
9672     RTbug #1769.
9673    
9674     * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
9675     position (although position doesn't work yet under GTK).
9676     (DockableWindow.Destroy): New. Called when the window must be
9677     closed. Namely needed when the DockFrame closes and must close
9678     its children.
9679     (DockFrame): Listen for EVT_CLOSE and destroy all children.
9680    
9681     * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
9682     when then window is told to close.
9683     (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
9684     comment in source for more info.
9685    
9686     * Thuban/UI/main.py: Show the legend by default when Thuban starts.
9687    
9688     * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
9689     symmetry with other such methods.
9690     (MainWindow.ShowLegend): Show the legend docked by default.
9691    
9692 jonathan 569 2003-03-28 Jonathan Coles <[email protected]>
9693    
9694     * Thuban/UI/classifier.py: Support for highlighting a specific
9695     group within the grid when the classification dialog is opened.
9696     Also contains a lot of debugging printouts which will later
9697     be removed.
9698    
9699     * Thuban/UI/dock.py: Complete rework on the dock code so that
9700     that it is fairly removed from the rest of the Thuban application.
9701     It is easy to add new docks which the rest of the program having
9702     to be aware of them.
9703    
9704     * Thuban/UI/legend.py: Modifications to support selecting a
9705     specific group in the classification dialog. Changed how layers
9706     are drawn when the layer is visible/invisible.
9707    
9708     * Thuban/UI/mainwindow.py: Removed legend specific code and
9709     replaced it with calls to the new dock code.
9710    
9711     * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
9712     to check if scale > 0. Trying to track down a divide by zero.
9713    
9714 jonathan 557 2003-03-26 Jonathan Coles <[email protected]>
9715    
9716 jonathan 567 * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
9717     (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
9718     now part of DockableWindow.
9719     (LegendPanel.DoOnSelChanged): Select the current layer in the
9720     map.
9721     (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
9722     with the selected layer and/or group.
9723    
9724     2003-03-26 Jonathan Coles <[email protected]>
9725    
9726 jonathan 557 This putback contains the code for dockable windows. There is
9727     no support in wxWindows as of this date for windows that can
9728     attach themselves to other windows.
9729    
9730     The current model contains a DockableWindow which has a parent
9731     window for when it is detached and a dock window that it puts
9732     its contents in when it is docked. The contents of a DockableWindow
9733     must be a DockPanel. DockPanel itself derives from wxPanel.
9734    
9735     * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
9736     message, not a LAYER_LEGEND_CHANGED message.
9737    
9738     * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
9739    
9740     * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
9741     as one of the style properties for the fieldTypeText item to
9742     be sure that its size is correct when the text changes.
9743    
9744     * Thuban/UI/dock.py: New. Classes for the DockPanel and
9745     DockableWindow.
9746    
9747     * Thuban/UI/legend.py: Added some more buttons and made the
9748     LegendPanel a DockPanel.
9749    
9750     * Thuban/UI/mainwindow.py: Added sash windows to the main window
9751     and supporting functions for manipulating the sashes.
9752     (MainWindow.ShowLegend): Create a DockableWindow with the
9753     LegendPanel as the contents.
9754    
9755     * Thuban/UI/messages.py: Added DOCKABLE_* messages
9756    
9757     * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
9758     not LAYER_LEGEND_CHANGED, messages.
9759    
9760 jonathan 554 2003-03-25 Jonathan Coles <[email protected]>
9761    
9762     * setup.py: Added custom script bdist_rpm_build_script so that
9763     when the rpm is built the path to wx-config is correct.
9764    
9765     * setup.cfg: Added line saying to use the custom build script
9766    
9767 jonathan 552 2003-03-20 Jonathan Coles <[email protected]>
9768    
9769     Initial implementation of the Legend.
9770    
9771     * Thuban/UI/legend.py: New. Creates a window that shows the map's
9772     Legend information and allows the user to add/modify classifications
9773     and how the layers are drawn on the map.
9774    
9775     * setup.py: New command 'build_docs' which currently uses
9776     happydoc to generate html documentation for Thuban.
9777    
9778     * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
9779     Returns a string which is appropriately describes the group.
9780    
9781     * Thuban/Model/layer.py (Layer.SetClassification): Generate a
9782     LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
9783    
9784     * Thuban/Model/map.py (Map): Rename messages and use new, more
9785     specific, messages.
9786    
9787     * Thuban/Model/messages.py: New message to indicate that a layer's
9788     data has changed (LAYER_CHANGED). New map messages to indicate
9789     when layers have been added/removed/changed or if the stacking order
9790     of the layers has changed.
9791    
9792     * Thuban/Model/session.py: Rename and use new messages.
9793    
9794     * Thuban/UI/classifier.py: Remember if any changes have actually
9795     been applied so that if the dialog is cancelled without an application
9796     of changes we don't have to set a new classification.
9797     (ClassDataPreviewer): Pulled out the window specific code and put it
9798     ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
9799     symbols on any DC.
9800    
9801     * Thuban/UI/mainwindow.py: New code to open the legend.
9802    
9803     * Thuban/UI/view.py: Use new message names.
9804    
9805 jonathan 541 2003-03-19 Jonathan Coles <[email protected]>
9806    
9807     * Thuban/UI/main.py (verify_versions): New. Checks the versions
9808     of Python, wxPython, and some other libraries.
9809    
9810     * extensions/thuban/wxproj.cpp (check_version): Checks the given
9811     version against what wxproj was compiled with.
9812     (check_version_gtk): If wxproj was compiled with gtk then check
9813     the given version against the version of the gtk library
9814     currently being used.
9815    
9816 bh 538 2003-03-14 Bernhard Herzog <[email protected]>
9817    
9818     * test/test_command.py: Run the tests when the module is run as a
9819     script
9820    
9821     2003-03-14 Bernhard Herzog <[email protected]>
9822    
9823     Implement selection of multiple selected shapes in the same layer:
9824    
9825     - Introduce a new class to hold the selection. This basically
9826     replaces the interactor which was nothing more than the
9827     selection anyway. A major difference is of course that the new
9828     selection class supports multiple selected shapes in one layer
9829    
9830     - Move the object that represents the selection from the
9831     application to the canvas. The canvas is a better place than the
9832     application because the selection represents which shapes and
9833     layer of the map displayed by the canvas are selected and
9834     affects how the map is drawn.
9835    
9836     - Make the selection and its messages publicly available through
9837     the mainwindow.
9838    
9839     - The non-modal dialogs do not get a reference to the interactor
9840     anymore as they can simply refer to their parent, the
9841     mainwindow, for the what the interactor had to offer.
9842    
9843     * Thuban/UI/selection.py: New module with a class to represent the
9844     selection.
9845    
9846     * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
9847     these unused messages
9848    
9849     * Thuban/UI/application.py (ThubanApplication.OnInit)
9850     (ThubanApplication.OnExit, ThubanApplication.SetSession): The
9851     interactor is gone now.
9852     (ThubanApplication.CreateMainWindow): There is no interactor
9853     anymore so we pass None as the interactor argument for now for
9854     compatibility.
9855    
9856     * Thuban/UI/view.py (MapCanvas.delegated_messages)
9857     (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
9858     Unsubscribe, delegate messages according to the delegated_messages
9859     class variable.
9860     (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
9861     attributes from instance variables as described with the
9862     delegated_methods class variable.
9863     (MapCanvas.__init__): New instance variable selection holding the
9864     current selection
9865     (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
9866     pass them on to the renderer
9867     (MapCanvas.SetMap): Clear the selection when a different map is
9868     selected.
9869     (MapCanvas.shape_selected): Simple force a complete redraw. The
9870     selection class now takes care of only issueing SHAPES_SELECTED
9871     messages when the set of selected shapes actually does change.
9872     (MapCanvas.SelectShapeAt): The selection is now managed in
9873     self.selection
9874    
9875     * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
9876     (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
9877     Unsubscribe, delegate messages according to the delegated_messages
9878     class variable.
9879     (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
9880     attributes from instance variables as described with the
9881     delegated_methods class variable.
9882     (MainWindow.__init__): The interactor as ivar is gone. The
9883     parameter is still there for compatibility. The selection messages
9884     now come from the canvas.
9885     (MainWindow.current_layer, MainWindow.has_selected_layer):
9886     Delegate to the the canvas.
9887     (MainWindow.LayerShowTable, MainWindow.Classify)
9888     (MainWindow.identify_view_on_demand): The dialogs don't need the
9889     interactor parameter anymore.
9890    
9891     * Thuban/UI/tableview.py (TableFrame.__init__)
9892     (LayerTableFrame.__init__, LayerTableFrame.OnClose)
9893     (LayerTableFrame.row_selected): The interactor is gone. It's job
9894     from the dialog's point of view is now done by the mainwindow,
9895     i.e. the parent. Subscribe to SHAPES_SELECTED instead
9896     of SELECTED_SHAPE
9897    
9898     * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
9899     is gone. It's job from the dialog's point of view is now done by
9900     the mainwindow, i.e. the parent.
9901    
9902     * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
9903     gone. It's job from the dialog's point of view is now done by the
9904     mainwindow, i.e. the parent.
9905    
9906     * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
9907     gone. It's job from the dialog's point of view is now done by the
9908     mainwindow, i.e. the parent.
9909     (SessionTreeCtrl.__init__): New parameter mainwindow which is
9910     stored as self.mainwindow. The mainwindow is need so that the tree
9911     can still subscribe to the selection messages.
9912     (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
9913     (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
9914     selection is now accessible through the mainwindow. Subscribe to
9915     SHAPES_SELECTED instead of SELECTED_SHAPE
9916    
9917     * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
9918     SHAPES_SELECTED message now.
9919     (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
9920     so deal with multiple shapes
9921     (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
9922     gone. It's job from the dialog's point of view is now done by the
9923     mainwindow, i.e. the parent.
9924    
9925     * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
9926     parameter is now a list of shape ids.
9927     (RecordTable.SetTable): The second parameter is now a list of
9928     indices.
9929    
9930     * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
9931     selected_shape parameter and ivar to selected_shapes. It's now a
9932     list of shape ids.
9933     (MapRenderer.draw_label_layer): Deal with multiple selected
9934     shapes. Rearrange the code a bit so that the setup and shape type
9935     distinctions are only executed once.
9936    
9937     * test/test_selection.py: Test cases for the selection class
9938    
9939 jonathan 527 2003-03-11 Jonathan Coles <[email protected]>
9940    
9941     * Thuban/Model/load.py: Temporary fix so that the xml reader
9942     doesn't cause Thuban to crash.
9943    
9944     * Thuban/Model/layer.py: Handle the cyclic references between
9945     a layer and its classification better, and be sure to disconnect
9946     the classification from the layer when the layer is destroyed
9947     so that we don't maintain a cyclic reference that may not be
9948     garbage collected.
9949    
9950     * Thuban/Model/classification.py: See comment for layer.py.
9951    
9952 jan 523 2003-03-12 Jan-Oliver Wagner <[email protected]>
9953    
9954     * HOWTO-Release: New. Information on the steps for releasing
9955     a new version of Thuban.
9956    
9957 jonathan 514 2003-03-11 Jonathan Coles <[email protected]>
9958    
9959     * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
9960     Use True instead of true.
9961     (Classifier): Should have a single panel in which all the controls lie.
9962    
9963     * Thuban/UI/proj4dialog.py: Add normal border.
9964    
9965     * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
9966    
9967     * Thuban/UI/mainwindow.py: Use True instead of true.
9968    
9969     * setup.py: Update some definitions to use wxWindows2.4 files
9970    
9971     * Data/iceland_sample_class.thuban: Fixed file so that the
9972     field_type information is present.
9973    
9974 jonathan 490 2003-03-10 Jonathan Coles <[email protected]>
9975    
9976 jonathan 505 * Thuban/UI/classifier.py (Classifier.__init__): Make the
9977     field type label grow so that when the text changes the
9978     size is updated correctly. This may be a wxWindows bug.
9979    
9980     2003-03-10 Jonathan Coles <[email protected]>
9981    
9982 jonathan 499 * Thuban/UI/application.py: Changed SESSION_CHANGED to
9983     SESSION_REPLACED.
9984    
9985     * Thuban/UI/classifier.py: Wrap text with _().
9986     (ClassGrid.CreateTable): Set dimensions and size hints here,
9987     instead of in Reset, so we only set the size once.
9988    
9989     * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
9990    
9991     * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
9992     Call Close() instead of Shutdown().
9993    
9994     * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
9995    
9996     * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
9997     Go back to using OnClose() instead of Shutdown().
9998    
9999     2003-03-10 Jonathan Coles <[email protected]>
10000    
10001 jonathan 497 * Thuban/UI/classifier.py (Classifier): SelectField() needed
10002     to know the old field index as well as the new one.
10003    
10004     2003-03-10 Jonathan Coles <[email protected]>
10005    
10006 jonathan 495 * Thuban/UI/classifier.py (Classifier): Use __SelectField()
10007     to correctly set the table information and call this from
10008     __init__ and from _OnFieldSelect so that all the information
10009     is up to date when the dialog opens and when a field is changed.
10010    
10011     2003-03-10 Jonathan Coles <[email protected]>
10012    
10013 jonathan 490 * Thuban/Model/classification.py (Classification): Don't use
10014     layer's message function directly, use the ClassChanged() method
10015     when then classification changes. SetField/SetFieldType/SetLayer
10016     must keep the information about field name and field type in
10017     sync when an owning layer is set or removed.
10018    
10019     * Thuban/Model/layer.py: Added ClassChanged() so that the
10020     classification can tell the layer when its data has changed.
10021     (Layer.SetClassification): Accepts None as an arguement to
10022     remove the current classification and correctly handles
10023     adding a new classification.
10024    
10025     * Thuban/Model/load.py: Comment out print statement
10026    
10027     * test/test_classification.py, test/test_save.py: New and
10028     improved tests.
10029    
10030 jonathan 483 2003-03-07 Jonathan Coles <[email protected]>
10031    
10032     * Thuban/Model/classification.py: Implemented __copy__ and
10033     __deepcopy__ for ClassGroup* and ClassGroupProperites so
10034     they can easily be copied by the classifier dialog.
10035     (ClassGroupProperites.__init__): The default line color should
10036     have been Color.Black.
10037    
10038     * Thuban/UI/classifier.py: Setting and Getting table values now
10039     uses a consistent set of functions.
10040     (Classifier): Now non-modal. Has field type label which changes
10041     as the field changes. Keep track of buttons in a list so that
10042     we can enable/disable the buttons when the None field is selected.
10043     (SelectPropertiesDialog): Add buttons to make the colors transparent.
10044    
10045     * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
10046     does what OnClose did, but can be called by the application to
10047     close a window. Needed when a session changes, and we have to
10048     close the classifier windows.
10049    
10050     * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
10051     Shuts down open dialogs. Used when a new session is created
10052     or a session is opened.
10053     (MainWindow.SaveSession): Should only call application.SaveSession()
10054     if we don't call SaveSessionAs first.
10055     (MainWindow.Classify): Allow different classifier dialogs for
10056     different layers.
10057    
10058     * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
10059     the parent class handle it. Add Shutdown() to unsubscibe from
10060     event notification and call the parent Shutdown(). This was
10061     necessary so the application can close the tree window.
10062    
10063 jonathan 478 2003-03-06 Jonathan Coles <[email protected]>
10064    
10065     * Thuban/Model/classification.py: Minor documentation changes,
10066     Addition of __eq__ and __ne__ methods.
10067     (Classification.SetLayer): prevent recursion between this method
10068     and Layer.SetClassification().
10069    
10070     * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
10071    
10072     * Thuban/Model/layer.py (SetClassification): prevent recursion
10073     between this method and Classification.SetLayer().
10074    
10075     * test/test_classification.py, test/test_load.py,
10076     test/test_session.py: Fixed and added tests for the classification
10077     classes.
10078    
10079 bh 477 2003-03-06 Bernhard Herzog <[email protected]>
10080    
10081     * Thuban/UI/classifier.py (ClassGrid.__init__)
10082     (ClassGrid.CreateTable): Move the SetSelectionMode call to
10083     CreateTable because otherwise it triggers an assertion in
10084     wxPython/wxGTK 2.4.
10085    
10086 jonathan 459 2003-03-05 Jonathan Coles <[email protected]>
10087    
10088 jonathan 475 * Thuban/common.py: Move FIELDTYPE constants back to table.py.
10089 jonathan 471
10090 jonathan 475 * Thuban/Model/load.py: import FIELDTYPE constants from table.
10091 jonathan 471
10092 jonathan 475 * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
10093 jonathan 471
10094 jonathan 475 * Thuban/Model/table.py: Put FIELDTYPE constants back.
10095 jonathan 471
10096     2003-03-05 Jonathan Coles <[email protected]>
10097    
10098 jonathan 459 * Thuban/UI/classifier.py: Added class documentation.
10099     Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
10100     Store just the groups in the table and generate the other
10101     column information when it is requested. Add "None" field
10102     to pull-down to select no classification.
10103    
10104     * Thuban/common.py: Moved FIELDTYPE constants from table.py
10105     (Str2Num): Only catch ValueError exceptions.
10106    
10107     * Thuban/Model/classification.py: Class documentation. Renaming
10108     of methods with Stroke to Line. Groups are stored in a single
10109     list with the default as the first element. Groups are searched
10110     in the order they appear in the list.
10111    
10112     * Thuban/Model/color.py: Documentation.
10113    
10114     * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
10115     the kind of data represented by a field.
10116    
10117     * Thuban/Model/load.py (ProcessSession): Use proper string
10118     conversion function; fixes RTbug #1713.
10119    
10120     * Thuban/Model/save.py (Saver): Store field type information.
10121    
10122     * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
10123     (Table): Add field_info_by_name() to retrieve field information
10124     by specifying the field name, not the number.
10125    
10126     * Thuban/UI/mainwindow.py: Function name changes.
10127    
10128     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
10129     get the layer classification once. Don't try to classify
10130     values when the field is None: just use the default properties.
10131    
10132     * Thuban/UI/view.py: Function name changes.
10133    
10134     * Doc/thuban.dtd: Add field_type attribute to a classification.
10135    
10136 bh 456 2003-03-04 Bernhard Herzog <[email protected]>
10137    
10138 bh 458 * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
10139     the fill and stroke layer attributes optional with suitable
10140     default values. Add the stroke_width layer attribute. Use correct
10141     syntax for empty elements. Make the attribute list for labels
10142     refer to the label element.
10143    
10144     2003-03-04 Bernhard Herzog <[email protected]>
10145    
10146 bh 456 * setup.py (thuban_build_py.build): Add a comment about distutils in
10147     Python 2.3 containing some of the functionality we implement in
10148     setup.py ourselves.
10149    
10150     * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
10151     before the selection mode. Doing it the other way round triggers
10152     an assertion in wxWindows.
10153    
10154     * Thuban/Model/save.py (escape): Fix typo in doc-string
10155    
10156     * Thuban/Model/classification.py: Remove unnecessary wxPython
10157     import
10158    
10159 jonathan 448 2003-03-04 Jonathan Coles <[email protected]>
10160    
10161     * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
10162     Parameter 'value' should default to None.
10163    
10164     * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
10165     the class attribute __classification is now private.
10166    
10167     * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
10168     Classifier to ClassGrid. Added support for removing selected rows,
10169     which including code for keeping track of when cells are selected,
10170     and deselected.
10171     (ClassTable): Support for added/removing rows. Fixed a problem
10172     with __ParseInput whereby it would not allow strings (only numbers)
10173     to be entered.
10174     (Classifier): Added button and supporting code for removing
10175     selected rows.
10176    
10177 jonathan 445 2003-02-27 Jonathan Coles <[email protected]>
10178 jonathan 434
10179     * Thuban/common.py: Moved color conversion functions into
10180     Thuban/UI/common.py.
10181     (Str2Num): Now converts the float (not the string) to a long/int
10182     so that an exception isn't thrown.
10183    
10184     * Thuban/UI/common.py: Common functions used in several UI modules
10185    
10186     * Thuban/Model/classification.py: Changed the class hierarchy
10187     so that a Classification consists of Groups which return
10188     Properties when a value matches a Group.
10189    
10190     * Thuban/Model/layer.py: Fixed name resolution problem.
10191    
10192     * Thuban/Model/load.py: Use new Classification and Group functions.
10193    
10194     * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
10195     failure.
10196     (Saver.write_classification): Use new Classification and Group
10197     functions.
10198    
10199     * Thuban/UI/classifier.py: Changes to use new Classification and Group
10200 jonathan 445 functions. Fix to create a tuple with a single value instead of
10201     simply returning the value.
10202 jonathan 434
10203     * Thuban/UI/renderer.py: Use new Classification and Group functions.
10204     Use common.py functions.
10205    
10206 jonathan 445 * Thuban/UI/tree.py: Use common.py functions.
10207 jonathan 447
10208     * test/test_classification.py: Use new Classification and Group
10209     classes.
10210 jonathan 434
10211 jonathan 426 2003-02-24 Jonathan Coles <[email protected]>
10212    
10213     * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
10214     functions from Thuban color objects to wxWindow colour objects.
10215    
10216     * Thuban/Model/classification.py (Classification): Renamed
10217     GetProperties() to GetClassData(). Used the new iterator
10218     in TreeInfo().
10219     (ClassIterator): Iterator implementation to iterate over the
10220     ClassData objects in a classification object.
10221    
10222     * Thuban/Model/save.py (Saver.write_classificaton): Uses
10223     the new iterator to save the classification information.
10224    
10225     * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
10226     for changing the stroke and fill colors and previewing the
10227     changes.
10228    
10229     * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
10230     MainWindow.SaveSessionAs): Text string changes so the dialogs
10231     have more meaningful titles.
10232    
10233     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
10234     Classification method name from GetProperties to GetClassData.
10235    
10236     * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
10237     instead of accessing now non-existent class variables.
10238    
10239 bh 425 2003-02-24 Bernhard Herzog <[email protected]>
10240    
10241     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
10242     unneeded Shape() call. Rendering is substantially faster without
10243     it and it avoids some problems with broken shape files.
10244    
10245 frank 423 2003-02-20 Frank Koormann <[email protected]>
10246    
10247     Force minimal size of identify and label dialogs. The autosizing
10248     looked too ugly.
10249    
10250     * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
10251     * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
10252     Set size of listctrl.
10253     * Thuban/UI/identifyview.py (IdentifyView.__init__):
10254     Set size of dialog.
10255    
10256 jonathan 408 2003-02-19 Jonathan Coles <[email protected]>
10257    
10258     * test/test_classification.py, test/test_layer.py,
10259     test/test_load.py, test/test_map.py, test/test_session.py:
10260     Updated the tests to use the new functions that are in the
10261     respective classes.
10262    
10263     * Thuban/Model/classification.py (Classification):
10264     Uses the new ClassData* classes. Modification messages are
10265     passed up to the parent layer (if it exists).
10266     (ClassData): New class to encapsulate the common data in each
10267     classification property.
10268     (ClassDataDefault): Represents the Default class. data.
10269     (ClassDataPoint): Represents a single class. data point
10270     (ClassDataRange): Represents a class. range
10271     (ClassDataMap): Represents a class. map (unused).
10272    
10273     * Thuban/Model/color.py: Added Color.None to represent something
10274     with no color. Color.Black represents the color black.
10275     (NoColor): Helper class derived from Color to represent something
10276     with no color.
10277    
10278     * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
10279     stroke_width attributes. Made the 'classification' attribute private.
10280     New methods for setting/getting the classification.
10281    
10282     * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
10283     to get the classifcation and use the new ClassData* classes to
10284     hold the classification data. Use Str2Num to convert numbers
10285     properly.
10286    
10287     * Thuban/Model/save.py (Saver): Use new Color and Classification
10288     methods
10289    
10290     * Thuban/UI/classifier.py (ClassGrid): New class to represent a
10291     custom grid.
10292     (ClassTable): Support for editing Values and Labels and for
10293     changing what type (point or range) of data is stored in each
10294     property based on how the user enters the data.
10295     (Classifier): Support for saving the new classifications and
10296     launching the dialog to edit a property.
10297     (SelectPropertiesDialog): New class for editing the visual
10298     properties of a classification (stroke color, width, and fill color)
10299     (ClassPreviewer): Took the Draw method from ClassRenderer and
10300     made most of it into this new class. Intend to use this class in
10301     the SelectPropertiesDialog for previewing changes.
10302    
10303     * Thuban/UI/renderer.py: Use new Color and Classification methods.
10304    
10305     * Thuban/UI/tree.py: Formatting changes.
10306    
10307     * Doc/thuban.dtd: Add 'label' element
10308    
10309     * Thuban/common.py: New. Contains common routines used throughout
10310     the code.
10311     (Str2Num): Takes a string and converts it to the "best" type of
10312     number.
10313    
10314 bh 405 2003-02-14 Bernhard Herzog <[email protected]>
10315    
10316     * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
10317     dragging flag is always set to 0 even when the tool implementation
10318     raises an exception
10319    
10320 bh 402 2003-02-11 Bernhard Herzog <[email protected]>
10321    
10322     * Thuban/UI/application.py (ThubanApplication.splash_screen): New
10323     method to create a splash screen.
10324     (ThubanApplication.ShowMainWindow): New. Show the main window.
10325     Needed so the splash screen can display the mainwindow
10326     (ThubanApplication.OnInit): Call the
10327     new splash_screen method to determine whether the application
10328     should display a splash screen. If it displays a splash screen do
10329     not immediately show the main window.
10330    
10331 jonathan 399 2003-02-11 Jonathan Coles <[email protected]>
10332    
10333     * Thuban/Model/classification.py: Added import line to fix
10334     feature conflicts between running on python2.2 and python2.1.
10335    
10336     * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
10337     onto the clinfo parameter, so removed the deepcopy().
10338    
10339 jonathan 396 2003-02-10 Jonathan Coles <[email protected]>
10340    
10341 tkoester 403 * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
10342 jonathan 396 Added element_open variable to track opening and closing of tags
10343     so that tags that don't span more than one line are closed with
10344     /> instead of </tag_name>. Use the GetDefault*() methods of
10345     the Classification class.
10346    
10347     * Thuban/Model/classification.py (Classificaton): Added set and
10348     get methods for the default data. The class also takes a layer
10349     reference so that modification messages can be sent. Fixed the
10350     methods to use the new ClassData class.
10351     (ClassData): New class to encapsulate the classification data
10352    
10353     * Thuban/Model/layer.py (Layer): Remove the
10354 tkoester 403 Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
10355 jonathan 396 SetDefault*() methods on the layer's classification object.
10356 tkoester 403 (Layer.__init__): Use the new SetDefault*() methods in the
10357 jonathan 396 Classification class.
10358    
10359     * Thuban/Model/load.py (ProcessSession): Use the new ClassData
10360     object instead of a dictionary.
10361    
10362 tkoester 403 * Thuban/UI/classifier.py (ClassRenderer): New class to
10363 jonathan 396 draw the classifications in the dialog box's table.
10364     (Classifier): Modified to use the ClassRenderer class.
10365    
10366 tkoester 403 * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
10367     methods of the Classification class.
10368 jonathan 396
10369     * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
10370     of the ClassData class.
10371    
10372     * test/test_classification.py, test/test_layer.py,
10373     test/test_map.py, test/test_session.py: Fix the tests to work
10374     with the above code changes.
10375    
10376 jonathan 387 2003-02-03 Jonathan Coles <[email protected]>
10377    
10378     * Thuban/Model/classification.py (Classification): Added getNull()
10379     to return the NullData reference
10380    
10381     * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
10382     Layer.SetStrokeWidth): Modified these functions to change the
10383     null data in the classification rather than keep these values
10384     directly in the Layer class. Menu options to change these values
10385     work again.
10386    
10387 jonathan 380 2003-01-28 Jonathan Coles <[email protected]>
10388    
10389 jonathan 384 * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
10390 tkoester 403 Fixed crashing problem on some systems. Dialog box shows
10391 jonathan 380 classification data.
10392    
10393 jonathan 384 * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
10394     Colors in the tree view.
10395    
10396     * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
10397     the tree info for classifications. Commented out unnecessary lines.
10398    
10399     * Thuban/Model/classification.py (Classification.TreeInfo): New
10400     function to add information about the classification into the
10401     tree view.
10402    
10403 tkoester 403 2003-01-27 Jan-Oliver Wagner <[email protected]>
10404 jan 375
10405 tkoester 403 * Thuban/__init__.py (_): New.
10406 jan 375
10407     * Thuban/Model/classification.py, Thuban/Model/extension.py,
10408     Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
10409 tkoester 403 Thuban/Model/session.py, Thuban/UI/application.py,
10410     Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
10411     Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
10412     Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
10413     Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
10414     Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
10415 jan 375
10416 jonathan 370 2003-01-27 Jonathan Coles <[email protected]>
10417    
10418 tkoester 403 * Thuban/Model/layer.py: Classification initialization calls.
10419 jonathan 370
10420 tkoester 403 * Thuban/Model/classification.py: Created class to encapsulate
10421     a layer classification. Supports specific data points and
10422     ranges.
10423 jonathan 370
10424 tkoester 403 * Thuban/Model/load.py: Added support for loading classification
10425     information.
10426 jonathan 370
10427 tkoester 403 * Thuban/Model/save.py: Added support for saving classification
10428     information.
10429 jonathan 370
10430 tkoester 403 * Thuban/UI/classifier.py: Initial class for a dialog box for
10431     specifying classification information.
10432 jonathan 370
10433 tkoester 403 * Thuban/UI/mainwindows.py: Support for opening the classifier
10434     dialog.
10435 jonathan 370
10436 tkoester 403 * Thuban/UI/renderer.py: Support for drawing a layer with the
10437     classification information.
10438 jonathan 370
10439 tkoester 403 * Data/iceland_sample_class.thuban: iceland_sample with
10440     classification data.
10441 jonathan 370
10442 tkoester 403 * test/test_classification: Tests for the Classification class.
10443 jonathan 370
10444 bh 359 2002-12-09 Bernhard Herzog <[email protected]>
10445    
10446 bh 361 * test/test_command.py: New. Tests for the command classes.
10447    
10448 bh 359 * Thuban/UI/command.py (ToolCommand): New class for tool commands.
10449     (Command.IsTool): New method to distinguish between command
10450     switching tools and other commands.
10451    
10452     * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
10453     the tool to avoid direct assignments to instance variables
10454     (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
10455     (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
10456     change the tool
10457    
10458     * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
10459     active tool's command turns insensitive, disable the tool.
10460     (_tool_command): Use the new ToolCommand class
10461    
10462     * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
10463     SelectTool method to change the tool
10464     (iconfile): Use the ToolCommand class
10465    
10466 bh 354 2002-12-03 Bernhard Herzog <[email protected]>
10467    
10468     * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
10469     the case of selected items that are not children of Layers or Maps
10470     properly. Previously this bug would trigger an assertion in
10471     wxWindows.
10472    
10473 frank 352 2002-11-06 Frank Koormann <[email protected]>
10474    
10475 bh 354 * Thuban/UI/mainwindow.py: Altered the order of tools in the
10476     toolbar: First now are all navigation tools (Zoom In/Out, Pan,
10477     Full Extent).
10478 tkoester 403
10479 bh 349 2002-10-23 Bernhard Herzog <[email protected]>
10480    
10481     * setup.py (setup call): version now 0.1.3
10482    
10483     * MANIFEST.in: Add the files in test/
10484    
10485     * test/README: Add note about tests requiring the iceland data
10486    
10487     * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
10488     copyright notice.
10489    
10490 bh 344 2002-10-18 Bernhard Herzog <[email protected]>
10491    
10492     * test/test_map.py
10493     (TestMapWithContents.test_projected_bounding_box): Use an explicit
10494     epsilon.
10495    
10496     * test/support.py (FloatComparisonMixin.assertFloatEqual)
10497     (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
10498     message if the assertion fails and don't return the return value
10499     of self.assert_. In assertFloatSeqEqual the return meant that not
10500     all items of the sequence were compared.
10501    
10502 bh 326 2002-09-20 Bernhard Herzog <[email protected]>
10503    
10504 bh 341 * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
10505    
10506     * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
10507    
10508 bh 338 * test/test_map.py (TestMapWithContents.test_tree_info): Create
10509     the string with the bounding box on the fly because of platform
10510     differences in the way %g is handled.
10511    
10512     * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
10513     DBFfile too because Thuban layers can't yet cope missing DBF
10514     files.
10515    
10516     2002-09-20 Bernhard Herzog <[email protected]>
10517    
10518 bh 326 * test/test_menu.py: Use initthuban instead of
10519     add_thuban_dir_to_path to initialize Thuban.
10520    
10521     * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
10522     Mixin class for float comparisons
10523     (SubscriberMixin): New. Mixin class to test messages sent through
10524     the Connector class
10525    
10526     * test/README: Fix a typo and add the -v flag to the command for
10527     individual tests
10528    
10529 bh 335 * test/test_session.py: New. Test cases for Thuban.Model.session
10530    
10531     * test/test_proj.py: New. Test cases for Thuban.Model.proj
10532    
10533     * test/test_map.py: New. Test cases for Thuban.Model.map
10534    
10535     * test/test_layer.py: New. Test cases for Thuban.Model.layer
10536    
10537     * test/test_label.py: New. Test cases for Thuban.Model.label
10538    
10539     * test/test_connector.py: New. Test cases for Thuban.Lib.connector
10540    
10541     * test/test_color.py: New. Test cases for Thuban.Model.color
10542    
10543     * test/test_base.py: New. Test cases for Thuban.Model.base
10544    
10545 bh 322 2002-09-13 Bernhard Herzog <[email protected]>
10546    
10547     * Thuban/Model/session.py (Session.forwarded_channels): Forward
10548     the CHANGED channel too.
10549    
10550     * Thuban/Model/map.py (Map.forwarded_channels): Forward the
10551     CHANGED channel too.
10552     (Map.__init__): Call the Modifiable constructor as well.
10553    
10554     * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
10555     event if the modified flag changes.
10556     (Modifiable.changed): Tweak the doc-string.
10557    
10558     * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
10559     (MainWindow.set_position_text): Put the code that puts the text
10560     with the mouse position into the status bar into the new method
10561     set_position_text so that it can overwritten in derived classes.
10562    
10563 bh 317 2002-09-12 Bernhard Herzog <[email protected]>
10564    
10565     * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
10566     message box on the main window.
10567    
10568 bh 313 2002-09-11 Bernhard Herzog <[email protected]>
10569    
10570     * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
10571     the 'E' because it's less likely to interfere with other menu
10572     entries.
10573 bh 315 (MainWindow.build_menu): remove an incorrect comment.
10574 bh 313
10575 bh 311 2002-09-10 Bernhard Herzog <[email protected]>
10576    
10577     * Thuban/UI/mainwindow.py (MainWindow.Map): New.
10578     (_tool_command): Add sensitive parameter
10579     (_has_visible_map): Sensitivity callback to tools and other
10580     commands that require a visible map. Use it in map_zoom_in_tool,
10581     map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
10582     and map_full_extent
10583    
10584 bh 308 2002-09-06 Bernhard Herzog <[email protected]>
10585    
10586     * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
10587     VIEW_POSITION
10588    
10589 tkoester 403 2002-09-04 Frank Koormann <[email protected]>
10590 frank 306
10591     * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
10592    
10593 bh 302 2002-09-02 Bernhard Herzog <[email protected]>
10594    
10595 bh 304 * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
10596     wxWindows already and our implementation doesn't work correctly
10597     with wxGTK 2.3:
10598     (MapCanvas.__init__): Remove the instance variable
10599     (MapCanvas.OnPaint): Always call do_redraw when there's a map to
10600     be drawin
10601     (MapCanvas.OnIdle): Removed.
10602    
10603 bh 302 * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
10604     a parameter to determine the size of the rectangle.
10605     (MapCanvas.find_shape_at): Create the box around the point on a
10606     layer by layer basis and make the size depend on the shape type.
10607     This solves a problem with the selection of point shapes at the
10608     border of the layer's bounding box
10609    
10610 bh 292 2002-08-30 Bernhard Herzog <[email protected]>
10611    
10612 bh 300 * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
10613     for the sensitivity of remove layer.
10614     (_can_remove_layer): New. Sensitivity callback for remove layer
10615     (Command layer_remove): Use _can_remove_layer
10616    
10617     * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
10618     determine whether a given layer can be deleted.
10619    
10620 bh 297 * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
10621     (MapCanvas.do_redraw): Get rid of the unused update_region
10622     instance variable
10623    
10624 bh 294 * Thuban/UI/view.py: Add/update some doc-strings.
10625    
10626 bh 292 * test/: new subdirectory with a bunch of unit tests.
10627    
10628     * test/README, test/test_table.py, test/test_save.py,
10629     test/test_menu.py, test/test_load.py: Initial set of tests and
10630     brief instructions on how to run them
10631    
10632 bh 287 2002-08-29 Bernhard Herzog <[email protected]>
10633    
10634 bh 291 * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
10635     arcs with multiple parts.
10636    
10637 bh 289 * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
10638     Handle degenrate rectangles.
10639    
10640 bh 287 * Thuban/Model/table.py: Make writing records work correctly:
10641     (Table.__init__): Keep track of whether the DBF is open for
10642     writing
10643     (Table.write_record): Open the DBF file for writing when necessary
10644    
10645 bh 285 2002-08-27 Bernhard Herzog <[email protected]>
10646    
10647     * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
10648     dbf files only for reading by default. Use a new writable dbf
10649     object for writing.
10650    
10651 bh 278 2002-08-26 Bernhard Herzog <[email protected]>
10652    
10653 bh 282 * Thuban/UI/mainwindow.py: Refactor the context creation:
10654     (MainWindow.Context): New method to return a context
10655     (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
10656     new method
10657    
10658 bh 278 * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
10659     layer table specific code from TableGrid into LayerTableGrid
10660     (TableFrame, LayerTableFrame): Split the layer table specific code
10661     from TableFrame into LayerTableFrame
10662 bh 280 (LayerTableGrid.select_shape): Remove a debug print
10663 bh 278
10664     * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
10665     LayerTableFrame
10666    
10667 bh 277 2002-08-23 Bernhard Herzog <[email protected]>
10668    
10669     * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
10670     absolute filename.
10671    
10672 bh 269 2002-08-22 Bernhard Herzog <[email protected]>
10673    
10674 bh 275 * Thuban/Model/table.py (Table.write_record): New method to write
10675     records.
10676 tkoester 403 (Table.__init__): Open the DBF file for writing too.
10677 bh 275
10678     * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
10679     into the underlying table.
10680    
10681     * extensions/shapelib/shapefil.h (DBFCommit),
10682     extensions/shapelib/dbfopen.c (DBFCommit): New API function to
10683     commit any changes made to the DBF file.
10684    
10685 bh 271 * Thuban/UI/mainwindow.py (make_check_current_tool)
10686     (_tool_command): Put the code that generates the "checked"
10687     callback into a separate function so that we can reuse it
10688     elsewhere
10689    
10690 bh 269 * Thuban/Model/save.py (Saver): New class to handle serializing a
10691     session into an XML file. The main reason to introduce a class is
10692     that applications built on Thuban can derive from it so that they
10693     can save additional information in a session file.
10694     (save_session): Delegate almost all the work to the Saver class.
10695     Rename the filename argument to file because it may be a file like
10696     object now.
10697    
10698     * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
10699     code. Remove the little test code which would be executed when the
10700     module is run as a script which didn't work anymore since it can't
10701     import the other Thuban modules.
10702     (ProcessSession, load_session): Refactor the ProcessSession to
10703     have one method for each element start and end tag so that derived
10704     classes can easily override the processing of individual tags.
10705     Also, always parse with namespaces enabled because applications
10706     built on top of Thuban will likely use namespaces if they extend
10707     the session file format.
10708    
10709 bh 266 2002-08-21 Bernhard Herzog <[email protected]>
10710    
10711     * setup.py (ThubanInstall.run): Don't repr install_lib_orig
10712     because thubaninit_contents will do it for us.
10713    
10714 tkoester 403 2002-08-16 Jan-Oliver Wagner <[email protected]>
10715 jan 265
10716     * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
10717     tree window already open
10718    
10719 bh 259 2002-08-15 Bernhard Herzog <[email protected]>
10720    
10721 bh 263 * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
10722     with self.
10723    
10724     * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
10725     when we have actually captured it.
10726    
10727 bh 259 * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
10728     shapefile and destroy the table.
10729    
10730     * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
10731    
10732 bh 254 2002-08-14 Bernhard Herzog <[email protected]>
10733    
10734 bh 256 * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
10735     instance variable columns
10736     (RecordTable.GetTypeName): row and col may be negative in some
10737     cases.
10738    
10739 bh 254 * setup.py (InstallLocal.initialize_options)
10740     (InstallLocal.finalize_options, InstallLocal.user_options): New
10741     option create-init-file to build a thubaninit.py when running
10742     install_local
10743     (InstallLocal.run): Create the thubaninit.py module when requested
10744     (thubaninit_contents): Split the template into several parts and
10745     create a new function thubaninit_contents that creates the
10746     contents of a thubaninit module.
10747     (ThubanInstall.run): Use the new function to create the thubaninit
10748     module.
10749    
10750 bh 252 2002-07-30 Bernhard Herzog <[email protected]>
10751    
10752     * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
10753     cleanup.
10754     (ThubanApplication.MainLoop): Extend to automatically call OnExit.
10755    
10756     * Thuban/Model/session.py (Session.Destroy): Don't bypass the
10757     direct base class' Destroy method.
10758    
10759     * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
10760     layers.
10761     (Map.Destroy): Destroy the label_layer as well and call the
10762     inherited Desatroymethod first so that no more messages are
10763     issued.
10764     (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
10765     message if the stacking order actually has changed. Add
10766     doc-strings.
10767     (Map.BoundingBox): Correct the doc-string.
10768     (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
10769     (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
10770    
10771     * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
10772     all labels.
10773    
10774 bh 247 2002-07-29 Bernhard Herzog <[email protected]>
10775    
10776     * Thuban/Model/map.py (Map.subscribe_layer_channels)
10777     (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
10778     to a layer's channels into separate methods.
10779     (Map.RemoveLayer, Map.AddLayer): Call the new methods
10780     (Map.Destroy): Unsubscribe from a layer's channels before
10781     destroying it.
10782    
10783     * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
10784     selected_layer parameter to searched_layer which is the layer to
10785     search in.
10786     (MapCanvas.SelectShapeAt): New parameter layer to restrict the
10787     search to that layer. Return the selected layer and shape.
10788    
10789     * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
10790     typo
10791    
10792 bh 238 2002-07-24 Bernhard Herzog <[email protected]>
10793    
10794 bh 243 * Thuban/UI/application.py (ThubanApplication.create_session):
10795     Extend the doc string.
10796     (ThubanApplication.subscribe_session)
10797     (ThubanApplication.unsubscribe_session): New methods to
10798     subscribe/unsubscribe to/from session channels.
10799     (ThubanApplication.SetSession): Call the new methods here.
10800     (ThubanApplication.maps_changed, ThubanApplication.set_map):
10801     Renamed set_map to maps_changed. Its now a subscriber for
10802     MAPS_CHANGED.
10803    
10804     * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
10805     x-coordinate in case of simple clicks
10806    
10807     * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
10808     don't pass it as a parameter
10809    
10810     * Thuban/Model/session.py (Session.RemoveMap): New
10811    
10812 bh 238 * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
10813     window size into a parameter.
10814    
10815 bh 235 2002-07-23 Bernhard Herzog <[email protected]>
10816    
10817 bh 237 * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
10818     just commands.
10819    
10820 bh 235 * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
10821     parameter list a bit to allow setting the window title and the
10822     initial message in the status bar. Update the callers.
10823    
10824     * Thuban/UI/application.py (ThubanApplication.OnInit)
10825     (ThubanApplication.CreateMainWindow): Put the mainwindow
10826     instantiation into a separate method so that it can be overridden
10827     by a subclass.
10828    
10829 bh 230 2002-07-19 Bernhard Herzog <[email protected]>
10830    
10831 bh 234 * Thuban/Model/session.py: Issue a CHANGED message every time
10832     another changed message is issued to make it easier to get
10833     notified of changes.
10834     (Session): Update the doc string
10835     (Session.forward): Issue changed-events as CHANGED as well.
10836     (Session.changed): Overwrite the inherited version to issue
10837     CHANGED events as well.
10838    
10839     * Thuban/UI/tree.py: We can now simply subscribe to the session's
10840     CHANGED channel to be informed of changes.
10841     (SessionTreeCtrl.session_channels): Not needed any longer.
10842 tkoester 403 (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
10843 bh 234 Only have to (un)subscribe CHANGED
10844    
10845     * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
10846    
10847 bh 230 * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
10848     for the wxPython locale bug to __init__.py so that it's
10849     automatically executed by anybody using UI code from Thuban.
10850    
10851 bh 225 2002-07-18 Bernhard Herzog <[email protected]>
10852    
10853 bh 228 * Thuban/UI/main.py (main): app no longer needs to be global
10854    
10855     * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
10856     as parameter and store it in an instance variable
10857     (MainWindow.invoke_command, MainWindow.update_command_ui)
10858     (MainWindow.save_modified_session, MainWindow.NewSession)
10859     (MainWindow.OpenSession, MainWindow.SaveSession)
10860     (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
10861     application object.
10862    
10863     * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
10864     the main window with self.
10865    
10866 bh 225 * Thuban/UI/context.py: New module with the context class
10867    
10868     * Thuban/UI/command.py (Command): Update doc string.
10869    
10870     * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
10871     MainWindow.update_command_ui): Pass an instance of the context
10872     class to the command's methods
10873     (check_current_tool, call_method): Handle the new context
10874     implementation
10875    
10876     * Examples/simple_extensions/simple_tool.py (simple_tool,
10877     check_simple_tool): Handle the new context implementation
10878    
10879     * Examples/simple_extensions/simple_command.py (simple_command):
10880     Handle the new context implementation. Update the comments about
10881     the context.
10882    
10883     * Thuban/UI/application.py (ThubanApplication.SetSession): Add
10884     doc-string
10885     (ThubanApplication.Session): New method to return the session
10886     object
10887    
10888     * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
10889     interactor's selected_layer may not be a layer of the current
10890     session when the tree is updated while a new session is being set.
10891    
10892 bh 217 2002-07-17 Bernhard Herzog <[email protected]>
10893    
10894     * Thuban/UI/tree.py (color_string): Removed. No longer used.
10895     (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
10896     update_tree into update_tree and add_items. The tree now uses a
10897     more generic way to display the contents of the tree.
10898     (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
10899    
10900     * Thuban/Model/layer.py (Layer.TreeInfo),
10901     Thuban/Model/extension.py (Extension.TreeInfo),
10902     Thuban/Model/map.py (Map.TreeInfo),
10903 tkoester 403 Thuban/Model/session.py (Session.TreeInfo):
10904 bh 217 Add TreeInfo methods to implement the new tree view update scheme
10905    
10906 bh 216 2002-07-16 Bernhard Herzog <[email protected]>
10907    
10908     * Thuban/UI/application.py: Don't use "import from" for the
10909     MainWindow. It can't always be resolved.
10910     (ThubanApplication.OnInit): change reference to MainWindow
10911     accordingly.
10912    
10913     * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
10914     completely
10915    
10916 bh 213 2002-07-10 Bernhard Herzog <[email protected]>
10917    
10918     * setup.py (create_init_module): New configurable variable whose
10919     default depends on the platform we're running on.
10920     (ThubanInstall.initialize_options): Initialize
10921     self.create_init_module from the global create_init_module
10922     (ThubanInstall.user_options): indictate that the options
10923     create-init-module and init-module-dir have arguments.
10924    
10925     * setup.py: In the setup call change the version number to include
10926     cvs.
10927    
10928     * MANIFEST.in: Add the files in Examples
10929    
10930 bh 205 2002-07-09 Bernhard Herzog <[email protected]>
10931    
10932 bh 210 * setup.py: In the setup call, use the thuban homepage as the
10933     value of the url parameter.
10934    
10935 bh 208 * Examples: New subdirectory for examples.
10936    
10937     * Examples/simple_extensions/simple_tool.xpm,
10938     Examples/simple_extensions/simple_tool.py,
10939     Examples/simple_extensions/simple_command.py,
10940     Examples/simple_extensions/README: Simple examples showing how to
10941     add new commands and tools.
10942    
10943 bh 207 * setup.cfg (bdist_rpm): Add the default value for prefix and tell
10944     bdist_rpm that we also have an install script.
10945     (bdist_inno): Add 2002 to the copyright notice.
10946    
10947 bh 205 * setup.py: Create a file in python's site-packages directory to
10948     make installation of Thuban as a library easier.
10949     (ThubanInstall.user_options): Add two new options,
10950     create-init-module and init-module-dir
10951     (ThubanInstall.expand_with_pure_python_dirs): New method to expand
10952     filenames for installation in the default directories.
10953     (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
10954     the inherited methods to capture some filenames before they're
10955     transformed too much by distutils.
10956     (ThubanInstall.run): Create the init module if requested.
10957     (ThubanInstall.thuban_init_filename): New method to return the
10958     full name of the init module.
10959     (ThubanInstall.get_outputs): Append the filename of the init
10960     module.
10961    
10962 bh 202 2002-07-08 Bernhard Herzog <[email protected]>
10963    
10964 bh 205 * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
10965     handle the prefix properly which means that the default for the
10966     installation prefix should be /usr for RPMs and /usr/local when
10967     doing a normal source install.
10968     (bdist_rpm_install_script): Script to override the default install
10969     commands in the specfile generated by the bdist_rpm command.
10970     (thuban_bdist_rpm.user_options): Add a prefix option
10971     (thuban_bdist_rpm.initialize_options): Init the prefix option.
10972     Create the script files for the spec files as empty files here
10973     (thuban_bdist_rpm._make_spec_file): Override the inherited method
10974     to fill the script files with content.
10975    
10976 bh 202 * Thuban/Model/save.py (relative_filename): Wrapper around
10977     Thuban.Lib.fileutil.relative_filename that accepts an empty dir
10978     argument. save_session now automatically uses this version,
10979     solving a problem when saving to a relative filename.
10980    
10981     * setup.py: In the setup call, make sure that the library
10982     directories are under $prefix/lib not directly under $prefix.
10983    
10984 tkoester 403 2002-06-20 Jan-Oliver Wagner <[email protected]>
10985 jan 199
10986     * Thuban/Model/extension.py: new module to handle extension objects.
10987     * Thuban/Model/messages.py: new messages for extensions.
10988     * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
10989     Session.AddExtension): new for handling extensions.
10990     Also some other minor changes to round up extension handling.
10991     * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
10992     of Extension titles and title and names of its objects.
10993    
10994 bh 194 2002-05-29 Bernhard Herzog <[email protected]>
10995    
10996     * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
10997 bh 202 the events for a command.
10998 bh 194 (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
10999     Call bind_command_events to bind the events. add_toolbar_command
11000     can now bind events too so that it's possible to have commands
11001     that are only available through the toolbar.
11002     (MainWindow.init_ids): New instance variable events_bound to keep
11003     track of for which commands events have been bound.
11004    
11005 bh 190 2002-05-28 Bernhard Herzog <[email protected]>
11006    
11007     * Thuban/UI/menu.py: New module to build and manage menus.
11008    
11009     * Thuban/UI/mainwindow.py: Remove some unused imports.
11010     (MainWindow.__init__, main_menu): move the definition of the main
11011     menu from __init__ to the Menu instance main_menu.
11012     (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
11013     build the menu bar and sub-menus from a menu description.
11014    
11015     * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
11016     startup file
11017     (ThubanApplication.read_startup_files): New method to run
11018     ~/.thuban/thubanstart.py
11019    
11020 bh 192 * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
11021     Move the toolbar definition to the Menu instance main_toolbar.
11022     (MainWindow.build_toolbar): New method to build the toolbar
11023     similar to the build_menu methods
11024    
11025 bh 184 2002-05-23 Bernhard Herzog <[email protected]>
11026    
11027 bh 186 * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
11028     layer_outline_color. Fix it in the definition of the command too.
11029    
11030 bh 184 * Thuban/UI/command.py (Command): Fix typo in doc string
11031    
11032 bh 182 2002-05-22 Bernhard Herzog <[email protected]>
11033    
11034     * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
11035     in the docstring
11036    
11037 bh 175 2002-05-15 Bernhard Herzog <[email protected]>
11038    
11039 bh 180 * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
11040     when the shapefile is empty.
11041     (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
11042     now return None for empty shapefiles. Update doc-strings.
11043    
11044     * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
11045     the layer's bbox being None.
11046    
11047     * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
11048     layer's bbox being None.
11049    
11050 bh 175 * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
11051     necessary.
11052     (MapCanvas.__init__): New instance variables, last_selected_layer
11053     and last_selected_shape to determine how the selection has
11054     changed.
11055    
11056     * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
11057     AutoSizeColumns because it will cause a traversal of the entire
11058     table which for large .dbf files will take a very long time.
11059    
11060 bh 172 2002-05-14 Bernhard Herzog <[email protected]>
11061    
11062     * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
11063     maximum depth for the tree than shapelib does by default.
11064    
11065 bh 165 2002-05-10 Bernhard Herzog <[email protected]>
11066    
11067     * setup.py (py_modules): The shptree modules doesn't have a
11068     wrapper, so don't include it in the py_modules
11069    
11070 bh 163 2002-05-08 Bernhard Herzog <[email protected]>
11071    
11072     * extensions/shapelib/shptree.c (compare_ints): Make arguments
11073     const void * as in the qsort prototype
11074     (SHPTreeFindLikelyShapes): Remove some unused variables.
11075    
11076     * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
11077     maintains to redraw the window during a drag.
11078     (MapCanvas.unprojected_rect_around_point): New method to determine
11079     a small region around a point for hit-testing.
11080     (MapCanvas.find_shape_at): Only test the shapes in a small region
11081     around the point.
11082    
11083     * setup.py: Increment the version to 0.1.2
11084    
11085     * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
11086     debug print and set session to None after unsubscribing
11087    
11088 bh 146 2002-05-07 Bernhard Herzog <[email protected]>
11089    
11090 bh 154 * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
11091     the file to have a .thuban extension.
11092    
11093 bh 152 * Thuban/UI/tree.py (session_channels): New class constant with
11094     all the session channels to subscribe to to update the tree
11095     (SessionTreeCtrl.session_changed): Remember the session so that we
11096     can unsubscribe properly. Use the new class constant to
11097     unsubscribe from the old session and subscribe to the new one.
11098     (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
11099     subscriptions of the SessionTreeCtrl.
11100     (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
11101    
11102     * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
11103     Session Tree" command to the file menu.
11104    
11105     * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
11106     as update_region to the renderer.
11107    
11108     * Thuban/UI/renderer.py
11109     (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
11110     update box is now directly a tuple, not a wxRect anymore.
11111    
11112     * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
11113     prints.
11114    
11115     2002-05-07 Bernhard Herzog <[email protected]>
11116    
11117 bh 146 * setup.py: Add the shptree extension module. See
11118     extensions/pyshapelib/ChangeLog for more details.
11119    
11120     * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
11121     extensions/shapelib/dbfopen.c: Really update to the versions of
11122     shapelib 1.2.9. For some reason it wasn't really done on
11123     2002-04-11.
11124    
11125     * extensions/shapelib/shptree.c: Modified version of shptree.c of
11126     shapelib 1.2.9. The only real difference is the use of qsort
11127     instead of a bubble sort implementation
11128    
11129     * Thuban/Model/layer.py (Layer.__init__): New instance variable
11130     shapetree to hold the shapelib quadtree for the shapefile
11131     (Layer.open_shapefile): Create the quad tree.
11132     (Layer.ShapesInRegion): New method to return the ids of shapes in
11133     a given region using the quad tree.
11134    
11135     * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
11136     comment
11137     (draw_polygon_shape): Accept both arcs and polygons.
11138     (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
11139     the api.
11140    
11141     * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
11142     return the shape ids to be rendered in a given layer.
11143     (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
11144     ids. Use draw_polygon_shape to draw arc shapes as well.
11145     (ScreenRenderer.RenderMap): New parameter for the rectangle that
11146     has to be updated
11147     (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
11148     calling it's ShapesInRegion method.
11149    
11150     * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
11151     update_region for the update region.
11152     (MapCanvas.OnPaint): Maintain the update region
11153     (MapCanvas.do_redraw): Pass the bounding box of the update_region
11154     to the renderer when drawing the bitmap. Reset the update_region.
11155    
11156 bh 129 2002-05-03 Bernhard Herzog <[email protected]>
11157    
11158 bh 131 * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
11159     MainWindow.OpenSession): Change the file extension of the session
11160     files to .thuban
11161    
11162 bh 129 * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
11163     Move the map channels to be forwarded by the session into the
11164 bh 146 class constant with forwarded_channels. Also add
11165     LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
11166     forwarded_channels
11167 bh 129
11168     * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
11169     typo and some rewording).
11170    
11171 bh 126 2002-05-02 Bernhard Herzog <[email protected]>
11172    
11173     * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
11174     around to speed up most redraws:
11175     (MapCanvas.__init__): New instance variable bitmap which holds the
11176     bitmap
11177     (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
11178     self.bitmap to draw.
11179     (MapCanvas.full_redraw): New method to force a full redraw
11180     including the bitmap
11181     (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
11182     make sure the bitmap is redrawn.
11183     (MapCanvas.projection_changed, MapCanvas.set_view_transform,
11184     MapCanvas.shape_selected): Call full_redraw instead of readraw to
11185     make sure the bitmap is redrawn.
11186     (MapCanvas.OnSize): New method to handle size events so that the
11187     bitmap can be redrawn.
11188    
11189 bh 124 2002-04-29 Bernhard Herzog <[email protected]>
11190    
11191     * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
11192     canvas' VIEW_POSITION event
11193     (MainWindow.view_position_changed): Handler for VIEW_POSITION.
11194     Update the text in the status-bar accordingly.
11195    
11196     * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
11197     (MapCanvas.__del__): Implement because Publisher.__del__ has to be
11198     called.
11199     (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
11200     current_position
11201     (MapCanvas.set_current_position): New method to set
11202     current_position. Issue a VIEW_POSITION event
11203     (MapCanvas.CurrentPosition): New public method to return the value
11204     of current_position. Should be called when the VIEW_POSITION event
11205     is processed.
11206     (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
11207     Update the position.
11208     (MapCanvas.OnLeaveWindow): Set the position to None.
11209    
11210     * Thuban/UI/messages.py (VIEW_POSITION): New message for the
11211     position in the statusbar
11212    
11213 tkoester 403 2002-04-26 Frank Koormann <[email protected]>
11214 frank 120
11215     * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
11216    
11217 tkoester 403 2002-04-24 Frank Koormann <[email protected]>
11218    
11219 frank 118 * Resources/Bitmaps/identify.xpm: shadow added
11220    
11221     * Resources/Bitmaps/fullextent.xpm: new
11222 jan 116
11223 tkoester 403 2002-04-22 Jan-Oliver Wagner <[email protected]>
11224 jan 116
11225 tkoester 403 * Thuban/UI/tree.py (update_tree): added test for None on map bounding
11226     box
11227 jan 114
11228 tkoester 403 2002-04-21 Jan-Oliver Wagner <[email protected]>
11229    
11230 jan 114 * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
11231    
11232     * Thuban/UI/tree.py (update_tree): added added map extent
11233    
11234     * Thuban/UI/mainwindow.py (_method_command): extended by parameter
11235 tkoester 403 icon; added map_full_extend as tool
11236 jan 114
11237 tkoester 403 2002-04-19 Jan-Oliver Wagner <[email protected]>
11238 jan 107
11239     * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
11240     saving _new_ sessions
11241    
11242     * Thuban/Model/session.py (create_empty_session): new session
11243     don't have a filename (set to None)
11244    
11245     * Thuban/UI/tree.py (update_tree): added filename and modified flag
11246    
11247     * Thuban/Model/load.py (ProcessSession): convert projection
11248     parameters from unicode to regular string
11249    
11250     * Data/iceland_sample.session: Added UTM Zone 26 projection.
11251    
11252 bh 100 2002-04-11 Bernhard Herzog <[email protected]>
11253    
11254     * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
11255     extensions/shapelib/dbfopen.c: Update to the versions of shapelib
11256     1.2.9
11257    
11258     * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
11259     the pyshapelib directoy into the list of include dirs, so that
11260     pyshapelib_api.h can be found.
11261    
11262     * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
11263     holds the pyshapelib C-API
11264     (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
11265     pyshapelib_api to access the shapelib functions.
11266     (initwxproj): Import the c_api from the shapelib module and
11267     initialize pyshapelib_api.
11268    
11269 bh 89 2002-04-04 Bernhard Herzog <[email protected]>
11270    
11271 bh 91 * setup.py (thuban_bdist_rpm.initialize_options): Use
11272     initialize_options to create the scripts for the rpm.
11273    
11274 bh 89 * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
11275    
11276 bh 85 2002-04-03 Bernhard Herzog <[email protected]>
11277    
11278 bh 87 * setup.py: Increment version to 0.1.1
11279    
11280 bh 85 * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
11281     Layer" and "Remove Layer" commands from the layer menu to the map
11282     menu
11283    
11284 bh 83 2002-02-15 Bernhard Herzog <[email protected]>
11285    
11286     * Thuban/Model/layer.py (Layer.Shape): list append only takes one
11287     argument (python <= 1.5.2 erroneously accepted multiuple
11288     arguments)
11289    
11290 bh 81 2002-02-04 Bernhard Herzog <[email protected]>
11291    
11292     * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
11293     RecordGrid in the identifyview.
11294     (IdentifyView.__init__): Use IdentifyGridCtrl instead of
11295     IdentifyListCtrl. The grid allows editing of the values.
11296    
11297     * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
11298     implementing a grid for a single row of a thuban table.
11299    
11300     * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
11301     layers by default. Easier to use than the previous default of only
11302     searching through the select layer which meant that if no layer
11303     was selected, you couldn't select a shape.
11304    
11305     * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
11306    
11307     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
11308     stroke_width attribute
11309    
11310     * Thuban/Model/save.py (save_session): Write the new stroke_width
11311     attribute
11312    
11313     * Thuban/Model/load.py (ProcessSession.startElement): Read the
11314     stroke_width attribute
11315    
11316     * Thuban/Model/layer.py (Layer.__init__): New parameter and
11317     instance variable stroke_width
11318     (Layer.SetStrokeWidth): Set the stroke_width.
11319    
11320 bh 72 2002-02-01 Bernhard Herzog <[email protected]>
11321    
11322     * extensions/thuban/wxproj.cpp (project_points): Fix two
11323     off-by-one errors in the last loop that joins the various parts
11324     together.
11325    
11326 bh 71 2002-01-14 Bernhard Herzog <[email protected]>
11327    
11328     * setup.py (data_dist.make_distribution): Fix some typos
11329    
11330 bh 70 2001-09-18 Bernhard Herzog <[email protected]>
11331    
11332     * README: Slight tweaking in preparation for the 0.1 release
11333    
11334     * setup.cfg: Add section for sdist to create both tgz and zip
11335     archives
11336    
11337     * setup.py: increase version number to 0.1
11338     (data_dist): New command class for data distribution
11339    
11340 bh 64 2001-09-14 Bernhard Herzog <[email protected]>
11341    
11342 bh 70 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
11343     Handle the case of no layer (i.e. layer is None) properly.
11344    
11345 tkoester 403 * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
11346 bh 70 Set the initial selection of the combo boxes to reflect the
11347     projection we're starting with in a way that works on windows,
11348     too.
11349    
11350 bh 64 * Thuban/Lib/connector.py (Connector.print_connections): Print the
11351     puiblisher's ids in hex to make it easier to compare them to the
11352     standard repr of python methods
11353    
11354     * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
11355     messages
11356    
11357 bh 59 2001-09-13 Bernhard Herzog <[email protected]>
11358    
11359 bh 64 * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
11360     deselect the layer if no layer is selected
11361    
11362 bh 59 * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
11363     idle time when there actually is something to draw. If there's
11364     nothing to draw simply clear the window
11365     (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
11366     (MapCanvas.SetMap): force a redraw in all cases because
11367     FitMapToWindow doesn't always do it.
11368     (MapCanvas.ZoomFactor): Add an optional parameter, center, to
11369     specify the point to move into the center of the window
11370     (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
11371     dragged, zoon in/out by a factor of 2
11372 bh 64 (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
11373     index, i.e. reversed drawing order) so that objects appearing to
11374     be in from of others are selected first. This is probably mostly
11375     relevant for point shapes where the symbols used may overlap
11376 bh 59
11377     * Thuban/Model/session.py (create_empty_session): Unset the
11378     modified bit before returning it
11379    
11380     * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
11381     create_empty_session session to create the new, empty session.
11382    
11383     * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
11384     the tool bitmaps.
11385     (MainWindow.OnClose, MainWindow.save_modified_session): Separate
11386     the code that asks whether the session should be saved into the
11387     new method save_modified_session.
11388     (MainWindow.OpenSession, MainWindow.NewSession): Use the new
11389     method to save modified session here too.
11390    
11391 bh 55 2001-09-11 Bernhard Herzog <[email protected]>
11392    
11393     * setup.py (InnoIconItem): fix typo
11394    
11395     (thuban_bdist_inno.run):
11396     (bdist_inno.run): Move the decision not to create symlinks on
11397     non-nt platforms to thuban_bdist_inno and do it unconditinally
11398     since we never want to create the symlinks here
11399    
11400 bh 48 2001-09-10 Bernhard Herzog <[email protected]>
11401    
11402 bh 53 * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
11403     identify view immediately
11404    
11405     * Thuban/UI/controls.py: New file with two classes RecordListCtrl
11406     and SelectableRecordListCtrl that implement the code shared by the
11407     identify view and the label dialog
11408    
11409     * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
11410     new class RecordListCtrl
11411    
11412     * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
11413     return value of GetValue is None instead of using it as a boolean
11414     directly so that Zero numbers are handled properly.
11415     (LabelListCtrl): Derive from the new class
11416     SelectableRecordListCtrl
11417    
11418 bh 48 * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
11419     (Proj4Dialog.dialogLayout): Make the window resizable and set the
11420     size of the text control explicitly to make the sizers work on
11421     both Windows and X.
11422    
11423 bh 44 2001-09-07 Bernhard Herzog <[email protected]>
11424    
11425     * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
11426     that can limit the search to the currently selected layer.
11427     (MapCanvas.SelectShapeAt): Make sure that the currently selected
11428     layer stays selected even when no shape is found
11429 bh 46 (MapCanvas.FitRectToWindow): If the rect has zero with or zero
11430     height do nothing (avoids zero division errors)
11431 bh 44
11432 bh 32 2001-09-06 Bernhard Herzog <[email protected]>
11433    
11434 bh 42 * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
11435     Correct the spelling of SessionTreeCtrl. dabbrev is too damn
11436     convenient :-)
11437     (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
11438     a new instvar layer_to_item to map layers to tree items
11439     (SessionTreeCtrl.layer_selected): Select the appropriate tree item
11440     to match the current selection in the interactor
11441    
11442 bh 40 * Thuban/UI/interactor.py (Interactor.SelectedLayer):
11443     (Interactor.HasSelectedLayer): New methods to query the current
11444     selection
11445    
11446     * Thuban/UI/mainwindow.py (MainWindow.current_layer):
11447     (MainWindow.has_selected_layer): Simply call the appropriate
11448     interactor method
11449    
11450     * Thuban/UI/mainwindow.py (MainWindow.__init__):
11451     (MainWindow.LayerShowTable):
11452     (MainWindow.identify_view_on_demand): Store the interactor in an
11453     instvar and use that reference instead of going through main.app
11454    
11455 tkoester 403 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
11456     * Thuban/UI/application.py (ThubanApplication.OnInit):
11457 bh 40 * Thuban/UI/main.py (main): Create the session tree view in main
11458     with the new mainwindow method ShowSessionTree and not directly
11459     the application's OnInit method
11460    
11461     * Thuban/UI/tree.py (myTreeCtrlPanel):
11462     (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
11463     TreeCtrl isntead of a panel. This affects most method since we now
11464     refer to self instead of self.tree
11465     (SessionTreeView): New class implementing a non-modal dialog
11466     showing the session tree.
11467    
11468 bh 35 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
11469     layer to the tableview dialog.
11470    
11471     * Thuban/UI/tableview.py: Add some doc-strings
11472 tkoester 403 (TableGrid):
11473 bh 35 (TableGrid.OnRangeSelect):
11474     (TableGrid.OnSelectCell):
11475     (TableFrame.__init__):
11476     (TableFrame.row_selected):
11477     Selecting rows in the grid view now updates the selected shapes
11478     through the TableFrame. To achieve this we derive TableGrid from
11479     Publisher and introduce the message type ROW_SELECTED which the
11480     TableFrame subscribes to and which is issued by OnRangeSelect and
11481     OnSelectCell
11482    
11483     (DataTable.SelectRow): Removed because it's no longer needed in
11484     the row/shape selection scheme
11485    
11486 bh 32 * Thuban/UI/dialogs.py: New file implementing common classes for
11487     dialogs
11488    
11489     * Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to
11490     the SELECTED_SHAPE message anymore. This is now handled by the
11491     parent.
11492     (TableGrid.select_shape): Only update the selection if the shape
11493     is not None.
11494     (TableFrame): Inherit from the new NonModalDialog class.
11495     (TableFrame.__init__, TableFrame.select_shape): Handle the
11496     SELECT_SHAPE message.
11497     (TableFrame.OnClose): Extend the inherited method to unsubscribe
11498     SELECT_SHAPE
11499    
11500     * Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
11501     (MainWindow.add_dialog):
11502     (MainWindow.dialog_open):
11503     (MainWindow.remove_dialog):
11504     (MainWindow.get_open_dialog): New methods to maintain a dictionary
11505     of opened non-modal dialogs.
11506    
11507     (MainWindow.__init__): Initialize the new non-modal dictionary
11508     management code
11509     (MainWindow.LayerShowTable): maintain separate dialogs for each
11510     table using the non-modal dialog management code to only open a
11511     view once for each table.
11512    
11513     (MainWindow.IdentifyTool):
11514     (MainWindow.__init__):
11515     (MainWindow.identify_view_on_demand): Don't open the identify view
11516     in IdentifyTool anymore. This will be done automatically by the
11517     new method identify_view_on_demand which handles the
11518     SELECTED_SHAPE message so that the identify view will be opened on
11519     demand
11520    
11521     * Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove
11522     the interactor argument. The SELECTED_SHAPE message is now handled
11523     by the parent.
11524     (IdentifyView.__init__): Add the interactor argument so that we
11525     can handle the SELECTED_SHAPE message here
11526     (IdentifyView.selected_shape): New method to handle the
11527     SELECTED_SHAPE messages
11528    
11529     * Thuban/UI/identifyview.py (IdentifyView): Derive from the new
11530     NonModalDialog class
11531     (IdentifyView.OnClose): Extend the inherited version to
11532     unsubscribe SELECT_SHAPE
11533    
11534     * Thuban/Model/session.py (Session.UnsetModified): Remove debug prints
11535    
11536 bh 26 2001-09-05 Bernhard Herzog <[email protected]>
11537    
11538     * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
11539 tkoester 403
11540 bh 26 * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
11541     interactor to pass through to the MapCanvas
11542 tkoester 403
11543 bh 26 * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
11544     argument to the MainWindow constructor to get rid of the ugly hack
11545     that made main.app available early just so that the mapcanvas
11546     could access the interactor object.
11547    
11548 bh 19 2001-09-04 Bernhard Herzog <[email protected]>
11549    
11550 bh 22 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
11551     that runs a modal message box
11552     (MainWindow.OnClose): Use the new method
11553     (MainWindow.RemoveLayer): Just do nothing in case no layer is
11554     selected. The command should be grayed out anyway, so there's no
11555     need to pop up a message box.
11556     (MainWindow.AddLayer): Pop up a message box with an error message
11557     if the shape file can't be opened
11558    
11559     * Thuban/Model/layer.py (Layer.__init__): Open the shapefile
11560     immediately. This will cause an exception in case the file can't
11561     be opened and we can display an appropriate message.
11562    
11563 bh 19 * MANIFEST.in: Add extensions/pyprojection/LICENSE
11564    
11565     * setup.py (thuban_bdist_rpm): New class implementing a Thuban
11566     specific bdist_rpm command.
11567    
11568     * Thuban/UI/main.py: Catch ImportError exceptions when importing
11569     the locale module because it may not be available on some
11570     installations.
11571    
11572     * extensions/pyprojection/LICENSE: Copy of the license text in
11573     Projection.i. Having it in a separate file makes it easier to
11574     refer to license text in e.g. RPMs
11575    
11576 bh 18 2001-09-03 Bernhard Herzog <[email protected]>
11577    
11578 bh 19 * setup.py: use wx-config instead of wxgtk-config because it's
11579     more generic
11580    
11581     * setup.py (ThubanInstall.get_outputs): Add the symlink in
11582     <prefix>/bin to the outputs
11583     (ThubanInstall.link_file): New method to link files. We need this
11584     because the standard copy_files refuses to link non-existing
11585     files.
11586     (ThubanInstall.run): Remove the leading install root from the
11587     script filename if an install root was specified and use the new
11588     link_file method
11589 tkoester 403
11590 bh 18 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
11591     the window when the first layer is added to the map.
11592    
11593     * setup.py (ThubanInstall.run): Honor the build root (self.root)
11594     when linking thuban.py to <prefix>/bin
11595    
11596 bh 16 2001-08-31 Bernhard Herzog <[email protected]>
11597    
11598     * setup.py: In the setup call, the install parameters shouldn't
11599     have trailing slashes because distutils on non-posix platforms
11600     doesn't like that. The same applies to other directories like
11601     "Resources/Bitmaps"
11602    
11603     In the configuration section for nt, move the wxWindows directory
11604     optins into the part clearly marked as editable.
11605    
11606     (InstallLocal.initialize_options):
11607     (InstallLocal.user_options): remove the currently unused debug
11608     flag
11609     (thuban_build_py.find_all_modules): Add this method so that it
11610     works for our case of having packages and modules in one
11611     distribution as well.
11612     (ThubanInstall.initialize_options):
11613     (ThubanInstall.finalize_options):
11614     (ThubanInstall.user_options):
11615     (ThubanInstall.boolean_options): Add new options, do-symlink and
11616     extra files. Since these are the first ThubanInstall specific
11617     options, override user_options and boolean_options
11618     (ThubanInstall.run): Honor the new do-symlink and extra-files
11619     options.
11620     (ThubanInstall.get_outputs): Add to override the base-class's
11621     version and add the extra-files to the outputs
11622     (bdist_inno): New class for windows distributions with Inno Setup
11623     (InnoIconItem): Helper class for bdist_inno
11624     (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
11625     this together with the appropriate parameters, to the setup call.
11626 tkoester 403
11627 bh 16 * setup.cfg (bdist_inno): added new section for the inno setup
11628     installer
11629    
11630     * Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var
11631     changing_selection to avoid recursive selection events when
11632     modifying the selection in response to a selection event.
11633     (myTreeCtrlPanel.normalize_selection): Set the new inst var when
11634     changing the tree's selection.
11635     (myTreeCtrlPanel.OnSelChanged): Only normalize the selection when
11636     we're not being called indirectly from normalize_selection.
11637    
11638     * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call
11639     event.Check only if the command is actuall checkable.
11640     (MainWindow.__init__): Call the toolbar's Realize method to make
11641     sure that the items are actually shown
11642    
11643 bh 7 2001-08-28 Bernhard Herzog <[email protected]>
11644    
11645 bh 9 * setup.py: Fix some doc strings
11646    
11647 bh 7 * ChangeLog: started
11648    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26