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