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]> |
2002-05-02 Bernhard Herzog <[email protected]> |
141 |
|
|
142 |
* Thuban/UI/view.py: Keep the temporary bitmap used during drawing |
* Thuban/UI/view.py: Keep the temporary bitmap used during drawing |