1 |
|
2003-05-07 Frank Koormann <[email protected]> |
2 |
|
|
3 |
|
* Resources/Bitmaps/fulllayerextent.xpm, |
4 |
|
Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with |
5 |
|
new icons. |
6 |
|
|
7 |
|
2003-05-06 Bernhard Herzog <[email protected]> |
8 |
|
|
9 |
|
* Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery): |
10 |
|
New. Simply delegate to the transient table's version. |
11 |
|
|
12 |
|
* test/test_transientdb.py |
13 |
|
(TestTransientTable.test_auto_transient_table_query): New. Test |
14 |
|
case for AutoTransientTable's SimpleQuery |
15 |
|
|
16 |
|
2003-05-06 Bernhard Herzog <[email protected]> |
17 |
|
|
18 |
|
* Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery): |
19 |
|
Implement a simple query method for the query dialog |
20 |
|
(TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds |
21 |
|
the row index or shapeid. |
22 |
|
(TransientTable.create): Insert the right value of the row index |
23 |
|
(TransientJoinedTable.create): Copy the row index of the left |
24 |
|
table to the joined result table |
25 |
|
|
26 |
|
* test/test_transientdb.py |
27 |
|
(TestTransientTable.test_transient_table_read_twice): Fix |
28 |
|
doc-string |
29 |
|
(TestTransientTable.test_transient_table_query): New. Test for the |
30 |
|
SimpleQuery method |
31 |
|
|
32 |
|
2003-05-06 Bernhard Herzog <[email protected]> |
33 |
|
|
34 |
|
Convert all table users to use the new table interface. This only |
35 |
|
covers Thuban itself, not GREAT-ER or other applications built on |
36 |
|
Thuban yet, so the compatibility interface stays in place for the |
37 |
|
time being but it now issues DeprecationWarnings. |
38 |
|
|
39 |
|
Finally, the new Table interface has a new method, HasColumn. |
40 |
|
|
41 |
|
* Thuban/Model/table.py (OldTableInterfaceMixin): All methods |
42 |
|
issue deprecation warnings when they're. The warnings refer to the |
43 |
|
caller of the method. |
44 |
|
(OldTableInterfaceMixin.__deprecation_warning): New. Helper method |
45 |
|
for the deprecation warnings |
46 |
|
|
47 |
|
* test/test_table.py: Ignore the deprecation warnings for the old |
48 |
|
table in the tests in this module. The purpose of the tests is to |
49 |
|
test the old interface, after all. |
50 |
|
|
51 |
|
* test/test_transientdb.py |
52 |
|
(TestTransientTable.run_iceland_political_tests): Use the |
53 |
|
constants for the types. Add a test for HasColumn |
54 |
|
(TestTransientTable.test_transient_joined_table): Adapt to new |
55 |
|
table interface. Add a test for HasColumn |
56 |
|
(TestTransientTable.test_transient_table_read_twice): Adapt to new |
57 |
|
table interface |
58 |
|
|
59 |
|
* Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue): |
60 |
|
Adapt to new table interface |
61 |
|
|
62 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to |
63 |
|
new table interface |
64 |
|
|
65 |
|
* Thuban/UI/controls.py (RecordListCtrl.fill_list) |
66 |
|
(RecordTable.SetTable): Adapt to new table interface |
67 |
|
|
68 |
|
* Thuban/UI/classifier.py (Classifier.__init__) |
69 |
|
(Classifier.__init__): Adapt to new table interface |
70 |
|
|
71 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__) |
72 |
|
(GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt |
73 |
|
to new table interface |
74 |
|
|
75 |
|
* Thuban/Model/transientdb.py (TransientTableBase.HasColumn) |
76 |
|
(AutoTransientTable.HasColumn): Implement the new table interface |
77 |
|
method |
78 |
|
(AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange) |
79 |
|
(AutoTransientTable.UniqueValues): Adapt to new table interface |
80 |
|
|
81 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType): |
82 |
|
Adapt to new table interface |
83 |
|
|
84 |
|
* test/test_layer.py (TestLayer.open_shapefile): Helper method to |
85 |
|
simplify opening shapefiles a bit easier. |
86 |
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
87 |
|
(TestLayer.test_point_layer): Use the new helper method |
88 |
|
(TestLayer.test_get_field_type): New. Test for the GetFieldType |
89 |
|
method |
90 |
|
|
91 |
|
* test/test_dbf_table.py (TestDBFTable.test_has_column): Test for |
92 |
|
the new table method |
93 |
|
|
94 |
|
* test/test_memory_table.py (TestMemoryTable.test_has_column): |
95 |
|
Test for the new table method HasColumn |
96 |
|
|
97 |
|
2003-05-06 Jonathan Coles <[email protected]> |
98 |
|
|
99 |
|
Addresses the "Selection Extent" wish of RTbug #1787. |
100 |
|
|
101 |
|
* Resources/Bitmaps/fulllayerextent.xpm, |
102 |
|
Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection |
103 |
|
extent. These are just place holders for the real bitmaps. |
104 |
|
|
105 |
|
* Thuban/Model/layer.py (Shape): Since a Shape is immutable only |
106 |
|
calculate the bounding box once (the first time compute_bbox() is |
107 |
|
called). |
108 |
|
(Layer.ShapesBoundingBox): New. Given a list of shape ids, return |
109 |
|
the bounding box for the shapes in lat/long coordinates. |
110 |
|
|
111 |
|
* Thuban/UI/mainwindow.py: Added new "Full selection extent" menu |
112 |
|
option. |
113 |
|
(MainWindow.has_selected_shapes): New. Returns true if there are |
114 |
|
any selected shapes. |
115 |
|
(MainWindow.FullSelectionExtent): New. Calls |
116 |
|
MapCanvas.FitSelectedToWindow() when the user selects the menu option. |
117 |
|
(_has_selected_shapes): New. Returns true if there are any |
118 |
|
selected shapes. |
119 |
|
|
120 |
|
* Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns |
121 |
|
true if there are any selected shapes. |
122 |
|
|
123 |
|
* Thuban/UI/view.py (MapCanvas): Added delegated method |
124 |
|
HasSelectedShapes. |
125 |
|
(MapCanvas.FitSelectedToWindow): New. Centers and scales any selected |
126 |
|
shapes on the canvas using the map projection (if any). |
127 |
|
|
128 |
|
* test/test_layer.py (TestLayer.test_arc_layer): Add some tests |
129 |
|
for Layer.ShapesBoundingBox(). |
130 |
|
|
131 |
|
2003-05-06 Bernhard Herzog <[email protected]> |
132 |
|
|
133 |
|
* Resources/Projections/defaults.proj: Fix spelling of Mercator |
134 |
|
|
135 |
|
2003-05-05 Jonathan Coles <[email protected]> |
136 |
|
|
137 |
|
Addresses the "Full Layer Extent" wish of RTbug #1787. |
138 |
|
|
139 |
|
* Resources/Projections/defaults.proj: Added UK National Grid. |
140 |
|
|
141 |
|
* Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option. |
142 |
|
(MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow() |
143 |
|
when the user selects the menu option. |
144 |
|
|
145 |
|
* Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and |
146 |
|
scales the given layer on the canvas using the map projection. |
147 |
|
|
148 |
2003-05-05 Bernhard Herzog <[email protected]> |
2003-05-05 Bernhard Herzog <[email protected]> |
149 |
|
|
150 |
Convert the table implementations to a new table interface. All |
Convert the table implementations to a new table interface. All |