1 |
|
2002-05-22 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo |
4 |
|
in the docstring |
5 |
|
|
6 |
|
2002-05-15 Bernhard Herzog <[email protected]> |
7 |
|
|
8 |
|
* Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None |
9 |
|
when the shapefile is empty. |
10 |
|
(Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may |
11 |
|
now return None for empty shapefiles. Update doc-strings. |
12 |
|
|
13 |
|
* Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with |
14 |
|
the layer's bbox being None. |
15 |
|
|
16 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the |
17 |
|
layer's bbox being None. |
18 |
|
|
19 |
|
* Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when |
20 |
|
necessary. |
21 |
|
(MapCanvas.__init__): New instance variables, last_selected_layer |
22 |
|
and last_selected_shape to determine how the selection has |
23 |
|
changed. |
24 |
|
|
25 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Do not call |
26 |
|
AutoSizeColumns because it will cause a traversal of the entire |
27 |
|
table which for large .dbf files will take a very long time. |
28 |
|
|
29 |
|
2002-05-14 Bernhard Herzog <[email protected]> |
30 |
|
|
31 |
|
* Thuban/Model/layer.py (Layer.open_shapefile): Choose a better |
32 |
|
maximum depth for the tree than shapelib does by default. |
33 |
|
|
34 |
|
2002-05-10 Bernhard Herzog <[email protected]> |
35 |
|
|
36 |
|
* setup.py (py_modules): The shptree modules doesn't have a |
37 |
|
wrapper, so don't include it in the py_modules |
38 |
|
|
39 |
|
2002-05-08 Bernhard Herzog <[email protected]> |
40 |
|
|
41 |
|
* extensions/shapelib/shptree.c (compare_ints): Make arguments |
42 |
|
const void * as in the qsort prototype |
43 |
|
(SHPTreeFindLikelyShapes): Remove some unused variables. |
44 |
|
|
45 |
|
* Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view |
46 |
|
maintains to redraw the window during a drag. |
47 |
|
(MapCanvas.unprojected_rect_around_point): New method to determine |
48 |
|
a small region around a point for hit-testing. |
49 |
|
(MapCanvas.find_shape_at): Only test the shapes in a small region |
50 |
|
around the point. |
51 |
|
|
52 |
|
* setup.py: Increment the version to 0.1.2 |
53 |
|
|
54 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a |
55 |
|
debug print and set session to None after unsubscribing |
56 |
|
|
57 |
|
2002-05-07 Bernhard Herzog <[email protected]> |
58 |
|
|
59 |
|
* Data/iceland_sample.session, Data/iceland_sample.thuban: Rename |
60 |
|
the file to have a .thuban extension. |
61 |
|
|
62 |
|
* Thuban/UI/tree.py (session_channels): New class constant with |
63 |
|
all the session channels to subscribe to to update the tree |
64 |
|
(SessionTreeCtrl.session_changed): Remember the session so that we |
65 |
|
can unsubscribe properly. Use the new class constant to |
66 |
|
unsubscribe from the old session and subscribe to the new one. |
67 |
|
(SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all |
68 |
|
subscriptions of the SessionTreeCtrl. |
69 |
|
(SessionTreeView.OnClose): Call the tree's unsubscribe_all method. |
70 |
|
|
71 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show |
72 |
|
Session Tree" command to the file menu. |
73 |
|
|
74 |
|
* Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap |
75 |
|
as update_region to the renderer. |
76 |
|
|
77 |
|
* Thuban/UI/renderer.py |
78 |
|
(ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The |
79 |
|
update box is now directly a tuple, not a wxRect anymore. |
80 |
|
|
81 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug |
82 |
|
prints. |
83 |
|
|
84 |
|
2002-05-07 Bernhard Herzog <[email protected]> |
85 |
|
|
86 |
|
* setup.py: Add the shptree extension module. See |
87 |
|
extensions/pyshapelib/ChangeLog for more details. |
88 |
|
|
89 |
|
* extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h, |
90 |
|
extensions/shapelib/dbfopen.c: Really update to the versions of |
91 |
|
shapelib 1.2.9. For some reason it wasn't really done on |
92 |
|
2002-04-11. |
93 |
|
|
94 |
|
* extensions/shapelib/shptree.c: Modified version of shptree.c of |
95 |
|
shapelib 1.2.9. The only real difference is the use of qsort |
96 |
|
instead of a bubble sort implementation |
97 |
|
|
98 |
|
* Thuban/Model/layer.py (Layer.__init__): New instance variable |
99 |
|
shapetree to hold the shapelib quadtree for the shapefile |
100 |
|
(Layer.open_shapefile): Create the quad tree. |
101 |
|
(Layer.ShapesInRegion): New method to return the ids of shapes in |
102 |
|
a given region using the quad tree. |
103 |
|
|
104 |
|
* extensions/thuban/wxproj.cpp (project_points): Fix some typos in |
105 |
|
comment |
106 |
|
(draw_polygon_shape): Accept both arcs and polygons. |
107 |
|
(initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import |
108 |
|
the api. |
109 |
|
|
110 |
|
* Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to |
111 |
|
return the shape ids to be rendered in a given layer. |
112 |
|
(MapRenderer.draw_shape_layer): Call layer_ids to get the list of |
113 |
|
ids. Use draw_polygon_shape to draw arc shapes as well. |
114 |
|
(ScreenRenderer.RenderMap): New parameter for the rectangle that |
115 |
|
has to be updated |
116 |
|
(ScreenRenderer.layer_ids): Make use of the layer's quadtree by |
117 |
|
calling it's ShapesInRegion method. |
118 |
|
|
119 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
120 |
|
update_region for the update region. |
121 |
|
(MapCanvas.OnPaint): Maintain the update region |
122 |
|
(MapCanvas.do_redraw): Pass the bounding box of the update_region |
123 |
|
to the renderer when drawing the bitmap. Reset the update_region. |
124 |
|
|
125 |
|
2002-05-03 Bernhard Herzog <[email protected]> |
126 |
|
|
127 |
|
* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs, |
128 |
|
MainWindow.OpenSession): Change the file extension of the session |
129 |
|
files to .thuban |
130 |
|
|
131 |
|
* Thuban/Model/session.py (Session.AddMap, forwarded_channels): |
132 |
|
Move the map channels to be forwarded by the session into the |
133 |
|
class constant with forwarded_channels. Also add |
134 |
|
LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to |
135 |
|
forwarded_channels |
136 |
|
|
137 |
|
* Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a |
138 |
|
typo and some rewording). |
139 |
|
|
140 |
|
2002-05-02 Bernhard Herzog <[email protected]> |
141 |
|
|
142 |
|
* Thuban/UI/view.py: Keep the temporary bitmap used during drawing |
143 |
|
around to speed up most redraws: |
144 |
|
(MapCanvas.__init__): New instance variable bitmap which holds the |
145 |
|
bitmap |
146 |
|
(MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use |
147 |
|
self.bitmap to draw. |
148 |
|
(MapCanvas.full_redraw): New method to force a full redraw |
149 |
|
including the bitmap |
150 |
|
(MapCanvas.SetMap): Subscribe full_redraw instead of redraw to |
151 |
|
make sure the bitmap is redrawn. |
152 |
|
(MapCanvas.projection_changed, MapCanvas.set_view_transform, |
153 |
|
MapCanvas.shape_selected): Call full_redraw instead of readraw to |
154 |
|
make sure the bitmap is redrawn. |
155 |
|
(MapCanvas.OnSize): New method to handle size events so that the |
156 |
|
bitmap can be redrawn. |
157 |
|
|
158 |
|
2002-04-29 Bernhard Herzog <[email protected]> |
159 |
|
|
160 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
161 |
|
canvas' VIEW_POSITION event |
162 |
|
(MainWindow.view_position_changed): Handler for VIEW_POSITION. |
163 |
|
Update the text in the status-bar accordingly. |
164 |
|
|
165 |
|
* Thuban/UI/view.py (MapCanvas): Derive from Publisher as well |
166 |
|
(MapCanvas.__del__): Implement because Publisher.__del__ has to be |
167 |
|
called. |
168 |
|
(MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize |
169 |
|
current_position |
170 |
|
(MapCanvas.set_current_position): New method to set |
171 |
|
current_position. Issue a VIEW_POSITION event |
172 |
|
(MapCanvas.CurrentPosition): New public method to return the value |
173 |
|
of current_position. Should be called when the VIEW_POSITION event |
174 |
|
is processed. |
175 |
|
(MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion): |
176 |
|
Update the position. |
177 |
|
(MapCanvas.OnLeaveWindow): Set the position to None. |
178 |
|
|
179 |
|
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
180 |
|
position in the statusbar |
181 |
|
|
182 |
|
2002-04-26 Frank Koormann <[email protected]> |
183 |
|
|
184 |
|
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
185 |
|
|
186 |
|
2002-04-24 Frank Koormann <[email protected]> |
187 |
|
|
188 |
|
* Resources/Bitmaps/identify.xpm: shadow added |
189 |
|
|
190 |
|
* Resources/Bitmaps/fullextent.xpm: new |
191 |
|
|
192 |
|
2002-04-22 Jan-Oliver Wagner <[email protected]> |
193 |
|
|
194 |
|
* Thuban/UI/tree.py (update_tree): added test for None on map bounding box |
195 |
|
|
196 |
|
2002-04-21 Jan-Oliver Wagner <[email protected]> |
197 |
|
|
198 |
|
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new |
199 |
|
|
200 |
|
* Thuban/UI/tree.py (update_tree): added added map extent |
201 |
|
|
202 |
|
* Thuban/UI/mainwindow.py (_method_command): extended by parameter |
203 |
|
icon; added map_full_extend as tool |
204 |
|
|
205 |
|
2002-04-19 Jan-Oliver Wagner <[email protected]> |
206 |
|
|
207 |
|
* Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for |
208 |
|
saving _new_ sessions |
209 |
|
|
210 |
|
* Thuban/Model/session.py (create_empty_session): new session |
211 |
|
don't have a filename (set to None) |
212 |
|
|
213 |
|
* Thuban/UI/tree.py (update_tree): added filename and modified flag |
214 |
|
|
215 |
|
* Thuban/Model/load.py (ProcessSession): convert projection |
216 |
|
parameters from unicode to regular string |
217 |
|
|
218 |
|
* Data/iceland_sample.session: Added UTM Zone 26 projection. |
219 |
|
|
220 |
|
2002-04-11 Bernhard Herzog <[email protected]> |
221 |
|
|
222 |
|
* extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c, |
223 |
|
extensions/shapelib/dbfopen.c: Update to the versions of shapelib |
224 |
|
1.2.9 |
225 |
|
|
226 |
|
* setup.py (Lib.wxproj extension): Don't link shpopen.c and put |
227 |
|
the pyshapelib directoy into the list of include dirs, so that |
228 |
|
pyshapelib_api.h can be found. |
229 |
|
|
230 |
|
* extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that |
231 |
|
holds the pyshapelib C-API |
232 |
|
(draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use |
233 |
|
pyshapelib_api to access the shapelib functions. |
234 |
|
(initwxproj): Import the c_api from the shapelib module and |
235 |
|
initialize pyshapelib_api. |
236 |
|
|
237 |
|
2002-04-04 Bernhard Herzog <[email protected]> |
238 |
|
|
239 |
|
* setup.py (thuban_bdist_rpm.initialize_options): Use |
240 |
|
initialize_options to create the scripts for the rpm. |
241 |
|
|
242 |
|
* extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use / |
243 |
|
|
244 |
|
2002-04-03 Bernhard Herzog <[email protected]> |
245 |
|
|
246 |
|
* setup.py: Increment version to 0.1.1 |
247 |
|
|
248 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add |
249 |
|
Layer" and "Remove Layer" commands from the layer menu to the map |
250 |
|
menu |
251 |
|
|
252 |
|
2002-02-15 Bernhard Herzog <[email protected]> |
253 |
|
|
254 |
|
* Thuban/Model/layer.py (Layer.Shape): list append only takes one |
255 |
|
argument (python <= 1.5.2 erroneously accepted multiuple |
256 |
|
arguments) |
257 |
|
|
258 |
|
2002-02-04 Bernhard Herzog <[email protected]> |
259 |
|
|
260 |
|
* Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a |
261 |
|
RecordGrid in the identifyview. |
262 |
|
(IdentifyView.__init__): Use IdentifyGridCtrl instead of |
263 |
|
IdentifyListCtrl. The grid allows editing of the values. |
264 |
|
|
265 |
|
* Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes |
266 |
|
implementing a grid for a single row of a thuban table. |
267 |
|
|
268 |
|
* Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all |
269 |
|
layers by default. Easier to use than the previous default of only |
270 |
|
searching through the select layer which meant that if no layer |
271 |
|
was selected, you couldn't select a shape. |
272 |
|
|
273 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Fix typo |
274 |
|
|
275 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the |
276 |
|
stroke_width attribute |
277 |
|
|
278 |
|
* Thuban/Model/save.py (save_session): Write the new stroke_width |
279 |
|
attribute |
280 |
|
|
281 |
|
* Thuban/Model/load.py (ProcessSession.startElement): Read the |
282 |
|
stroke_width attribute |
283 |
|
|
284 |
|
* Thuban/Model/layer.py (Layer.__init__): New parameter and |
285 |
|
instance variable stroke_width |
286 |
|
(Layer.SetStrokeWidth): Set the stroke_width. |
287 |
|
|
288 |
2002-02-01 Bernhard Herzog <[email protected]> |
2002-02-01 Bernhard Herzog <[email protected]> |
289 |
|
|
290 |
* extensions/thuban/wxproj.cpp (project_points): Fix two |
* extensions/thuban/wxproj.cpp (project_points): Fix two |