/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 129 by bh, Fri May 3 14:46:11 2002 UTC revision 180 by bh, Wed May 15 14:03:02 2002 UTC
# Line 1  Line 1 
1    2002-05-15  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
4            when the shapefile is empty.
5            (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
6            now return None for empty shapefiles. Update doc-strings.
7    
8            * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
9            the layer's bbox being None.
10    
11            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
12            layer's bbox being None.
13    
14            * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
15            necessary.
16            (MapCanvas.__init__): New instance variables, last_selected_layer
17            and last_selected_shape to determine how the selection has
18            changed.
19    
20            * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
21            AutoSizeColumns because it will cause a traversal of the entire
22            table which for large .dbf files will take a very long time.
23    
24    2002-05-14  Bernhard Herzog  <[email protected]>
25    
26            * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
27            maximum depth for the tree than shapelib does by default.
28    
29    2002-05-10  Bernhard Herzog  <[email protected]>
30    
31            * setup.py (py_modules): The shptree modules doesn't have a
32            wrapper, so don't include it in the py_modules
33    
34    2002-05-08  Bernhard Herzog  <[email protected]>
35    
36            * extensions/shapelib/shptree.c (compare_ints): Make arguments
37            const void * as in the qsort prototype
38            (SHPTreeFindLikelyShapes): Remove some unused variables.
39    
40            * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
41            maintains to redraw the window during a drag.
42            (MapCanvas.unprojected_rect_around_point): New method to determine
43            a small region around a point for hit-testing.
44            (MapCanvas.find_shape_at): Only test the shapes in a small region
45            around the point.
46    
47            * setup.py: Increment the version to 0.1.2
48    
49            * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
50            debug print and set session to None after unsubscribing
51    
52    2002-05-07  Bernhard Herzog  <[email protected]>
53    
54            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
55            the file to have a .thuban extension.
56    
57            * Thuban/UI/tree.py (session_channels): New class constant with
58            all the session channels to subscribe to to update the tree
59            (SessionTreeCtrl.session_changed): Remember the session so that we
60            can unsubscribe properly. Use the new class constant to
61            unsubscribe from the old session and subscribe to the new one.
62            (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
63            subscriptions of the SessionTreeCtrl.
64            (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
65    
66            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
67            Session Tree" command to the file menu.
68    
69            * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
70            as update_region to the renderer.
71    
72            * Thuban/UI/renderer.py
73            (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
74            update box is now directly a tuple, not a wxRect anymore.
75    
76            * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
77            prints.
78    
79    2002-05-07  Bernhard Herzog  <[email protected]>
80    
81            * setup.py: Add the shptree extension module. See
82            extensions/pyshapelib/ChangeLog for more details.
83    
84            * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
85            extensions/shapelib/dbfopen.c: Really update to the versions of
86            shapelib 1.2.9. For some reason it wasn't really done on
87            2002-04-11.
88    
89            * extensions/shapelib/shptree.c: Modified version of shptree.c of
90            shapelib 1.2.9. The only real difference is the use of qsort
91            instead of a bubble sort implementation
92    
93            * Thuban/Model/layer.py (Layer.__init__): New instance variable
94            shapetree to hold the shapelib quadtree for the shapefile
95            (Layer.open_shapefile): Create the quad tree.
96            (Layer.ShapesInRegion): New method to return the ids of shapes in
97            a given region using the quad tree.
98    
99            * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
100            comment
101            (draw_polygon_shape): Accept both arcs and polygons.
102            (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
103            the api.
104    
105            * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
106            return the shape ids to be rendered in a given layer.
107            (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
108            ids. Use draw_polygon_shape to draw arc shapes as well.
109            (ScreenRenderer.RenderMap): New parameter for the rectangle that
110            has to be updated
111            (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
112            calling it's ShapesInRegion method.
113    
114            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
115            update_region for the update region.
116            (MapCanvas.OnPaint): Maintain the update region
117            (MapCanvas.do_redraw): Pass the bounding box of the update_region
118            to the renderer when drawing the bitmap. Reset the update_region.
119    
120  2002-05-03  Bernhard Herzog  <[email protected]>  2002-05-03  Bernhard Herzog  <[email protected]>
121    
122            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
123            MainWindow.OpenSession): Change the file extension of the session
124            files to .thuban
125    
126          * Thuban/Model/session.py (Session.AddMap, forwarded_channels):          * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
127          Move the map channels to be forwarded by the session into the          Move the map channels to be forwarded by the session into the
128          class constant with forwarded_channels.          class constant with forwarded_channels. Also add
129            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
130            forwarded_channels
131    
132          * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a          * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
133          typo and some rewording).          typo and some rewording).

Legend:
Removed from v.129  
changed lines
  Added in v.180

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26