1 |
|
2002-05-07 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/tree.py (session_channels): New class constant with |
4 |
|
all the session channels to subscribe to to update the tree |
5 |
|
(SessionTreeCtrl.session_changed): Remember the session so that we |
6 |
|
can unsubscribe properly. Use the new class constant to |
7 |
|
unsubscribe from the old session and subscribe to the new one. |
8 |
|
(SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all |
9 |
|
subscriptions of the SessionTreeCtrl. |
10 |
|
(SessionTreeView.OnClose): Call the tree's unsubscribe_all method. |
11 |
|
|
12 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show |
13 |
|
Session Tree" command to the file menu. |
14 |
|
|
15 |
|
* Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap |
16 |
|
as update_region to the renderer. |
17 |
|
|
18 |
|
* Thuban/UI/renderer.py |
19 |
|
(ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The |
20 |
|
update box is now directly a tuple, not a wxRect anymore. |
21 |
|
|
22 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug |
23 |
|
prints. |
24 |
|
|
25 |
|
2002-05-07 Bernhard Herzog <[email protected]> |
26 |
|
|
27 |
|
* setup.py: Add the shptree extension module. See |
28 |
|
extensions/pyshapelib/ChangeLog for more details. |
29 |
|
|
30 |
|
* extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h, |
31 |
|
extensions/shapelib/dbfopen.c: Really update to the versions of |
32 |
|
shapelib 1.2.9. For some reason it wasn't really done on |
33 |
|
2002-04-11. |
34 |
|
|
35 |
|
* extensions/shapelib/shptree.c: Modified version of shptree.c of |
36 |
|
shapelib 1.2.9. The only real difference is the use of qsort |
37 |
|
instead of a bubble sort implementation |
38 |
|
|
39 |
|
* Thuban/Model/layer.py (Layer.__init__): New instance variable |
40 |
|
shapetree to hold the shapelib quadtree for the shapefile |
41 |
|
(Layer.open_shapefile): Create the quad tree. |
42 |
|
(Layer.ShapesInRegion): New method to return the ids of shapes in |
43 |
|
a given region using the quad tree. |
44 |
|
|
45 |
|
* extensions/thuban/wxproj.cpp (project_points): Fix some typos in |
46 |
|
comment |
47 |
|
(draw_polygon_shape): Accept both arcs and polygons. |
48 |
|
(initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import |
49 |
|
the api. |
50 |
|
|
51 |
|
* Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to |
52 |
|
return the shape ids to be rendered in a given layer. |
53 |
|
(MapRenderer.draw_shape_layer): Call layer_ids to get the list of |
54 |
|
ids. Use draw_polygon_shape to draw arc shapes as well. |
55 |
|
(ScreenRenderer.RenderMap): New parameter for the rectangle that |
56 |
|
has to be updated |
57 |
|
(ScreenRenderer.layer_ids): Make use of the layer's quadtree by |
58 |
|
calling it's ShapesInRegion method. |
59 |
|
|
60 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
61 |
|
update_region for the update region. |
62 |
|
(MapCanvas.OnPaint): Maintain the update region |
63 |
|
(MapCanvas.do_redraw): Pass the bounding box of the update_region |
64 |
|
to the renderer when drawing the bitmap. Reset the update_region. |
65 |
|
|
66 |
|
2002-05-03 Bernhard Herzog <[email protected]> |
67 |
|
|
68 |
|
* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs, |
69 |
|
MainWindow.OpenSession): Change the file extension of the session |
70 |
|
files to .thuban |
71 |
|
|
72 |
|
* Thuban/Model/session.py (Session.AddMap, forwarded_channels): |
73 |
|
Move the map channels to be forwarded by the session into the |
74 |
|
class constant with forwarded_channels. Also add |
75 |
|
LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to |
76 |
|
forwarded_channels |
77 |
|
|
78 |
|
* Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a |
79 |
|
typo and some rewording). |
80 |
|
|
81 |
|
2002-05-02 Bernhard Herzog <[email protected]> |
82 |
|
|
83 |
|
* Thuban/UI/view.py: Keep the temporary bitmap used during drawing |
84 |
|
around to speed up most redraws: |
85 |
|
(MapCanvas.__init__): New instance variable bitmap which holds the |
86 |
|
bitmap |
87 |
|
(MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use |
88 |
|
self.bitmap to draw. |
89 |
|
(MapCanvas.full_redraw): New method to force a full redraw |
90 |
|
including the bitmap |
91 |
|
(MapCanvas.SetMap): Subscribe full_redraw instead of redraw to |
92 |
|
make sure the bitmap is redrawn. |
93 |
|
(MapCanvas.projection_changed, MapCanvas.set_view_transform, |
94 |
|
MapCanvas.shape_selected): Call full_redraw instead of readraw to |
95 |
|
make sure the bitmap is redrawn. |
96 |
|
(MapCanvas.OnSize): New method to handle size events so that the |
97 |
|
bitmap can be redrawn. |
98 |
|
|
99 |
|
2002-04-29 Bernhard Herzog <[email protected]> |
100 |
|
|
101 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
102 |
|
canvas' VIEW_POSITION event |
103 |
|
(MainWindow.view_position_changed): Handler for VIEW_POSITION. |
104 |
|
Update the text in the status-bar accordingly. |
105 |
|
|
106 |
|
* Thuban/UI/view.py (MapCanvas): Derive from Publisher as well |
107 |
|
(MapCanvas.__del__): Implement because Publisher.__del__ has to be |
108 |
|
called. |
109 |
|
(MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize |
110 |
|
current_position |
111 |
|
(MapCanvas.set_current_position): New method to set |
112 |
|
current_position. Issue a VIEW_POSITION event |
113 |
|
(MapCanvas.CurrentPosition): New public method to return the value |
114 |
|
of current_position. Should be called when the VIEW_POSITION event |
115 |
|
is processed. |
116 |
|
(MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion): |
117 |
|
Update the position. |
118 |
|
(MapCanvas.OnLeaveWindow): Set the position to None. |
119 |
|
|
120 |
|
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
121 |
|
position in the statusbar |
122 |
|
|
123 |
|
2002-04-26 Frank Koormann <[email protected]> |
124 |
|
|
125 |
|
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
126 |
|
|
127 |
|
2002-04-24 Frank Koormann <[email protected]> |
128 |
|
|
129 |
|
* Resources/Bitmaps/identify.xpm: shadow added |
130 |
|
|
131 |
|
* Resources/Bitmaps/fullextent.xpm: new |
132 |
|
|
133 |
|
2002-04-22 Jan-Oliver Wagner <[email protected]> |
134 |
|
|
135 |
|
* Thuban/UI/tree.py (update_tree): added test for None on map bounding box |
136 |
|
|
137 |
|
2002-04-21 Jan-Oliver Wagner <[email protected]> |
138 |
|
|
139 |
|
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new |
140 |
|
|
141 |
|
* Thuban/UI/tree.py (update_tree): added added map extent |
142 |
|
|
143 |
|
* Thuban/UI/mainwindow.py (_method_command): extended by parameter |
144 |
|
icon; added map_full_extend as tool |
145 |
|
|
146 |
|
2002-04-19 Jan-Oliver Wagner <[email protected]> |
147 |
|
|
148 |
|
* Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for |
149 |
|
saving _new_ sessions |
150 |
|
|
151 |
|
* Thuban/Model/session.py (create_empty_session): new session |
152 |
|
don't have a filename (set to None) |
153 |
|
|
154 |
|
* Thuban/UI/tree.py (update_tree): added filename and modified flag |
155 |
|
|
156 |
|
* Thuban/Model/load.py (ProcessSession): convert projection |
157 |
|
parameters from unicode to regular string |
158 |
|
|
159 |
|
* Data/iceland_sample.session: Added UTM Zone 26 projection. |
160 |
|
|
161 |
|
2002-04-11 Bernhard Herzog <[email protected]> |
162 |
|
|
163 |
|
* extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c, |
164 |
|
extensions/shapelib/dbfopen.c: Update to the versions of shapelib |
165 |
|
1.2.9 |
166 |
|
|
167 |
|
* setup.py (Lib.wxproj extension): Don't link shpopen.c and put |
168 |
|
the pyshapelib directoy into the list of include dirs, so that |
169 |
|
pyshapelib_api.h can be found. |
170 |
|
|
171 |
|
* extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that |
172 |
|
holds the pyshapelib C-API |
173 |
|
(draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use |
174 |
|
pyshapelib_api to access the shapelib functions. |
175 |
|
(initwxproj): Import the c_api from the shapelib module and |
176 |
|
initialize pyshapelib_api. |
177 |
|
|
178 |
|
2002-04-04 Bernhard Herzog <[email protected]> |
179 |
|
|
180 |
|
* setup.py (thuban_bdist_rpm.initialize_options): Use |
181 |
|
initialize_options to create the scripts for the rpm. |
182 |
|
|
183 |
|
* extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use / |
184 |
|
|
185 |
|
2002-04-03 Bernhard Herzog <[email protected]> |
186 |
|
|
187 |
|
* setup.py: Increment version to 0.1.1 |
188 |
|
|
189 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add |
190 |
|
Layer" and "Remove Layer" commands from the layer menu to the map |
191 |
|
menu |
192 |
|
|
193 |
2002-02-15 Bernhard Herzog <[email protected]> |
2002-02-15 Bernhard Herzog <[email protected]> |
194 |
|
|
195 |
* Thuban/Model/layer.py (Layer.Shape): list append only takes one |
* Thuban/Model/layer.py (Layer.Shape): list append only takes one |