1 |
2003-08-07 Bernhard Herzog <[email protected]> |
2003-08-07 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Add raw data interface to shape objects. |
4 |
|
|
5 |
|
* Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape |
6 |
|
class to ShapefileShape which now holds shapefile specific |
7 |
|
information. |
8 |
|
(ShapefileShape.compute_bbox): Simplified to not cache any |
9 |
|
information. The way this method is used that shouldn't matter |
10 |
|
performance wise. |
11 |
|
(ShapefileShape.RawData): New. Return the shapeid which is the raw |
12 |
|
data format for shapes from shapefiles. |
13 |
|
(ShapefileStore.RawShapeFormat): New. Return the raw datatype used |
14 |
|
in the shape objects returned by a shapestore. For a |
15 |
|
ShapefileStore this is always RAW_SHAPEFILE. |
16 |
|
(RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat |
17 |
|
method. |
18 |
|
|
19 |
|
* test/test_shapefilestore.py |
20 |
|
(TestShapefileStore.test_raw_format): New test to test the raw |
21 |
|
format feature of shapes. |
22 |
|
|
23 |
* Thuban/Model/layer.py: Remove the unused import of Shape from |
* Thuban/Model/layer.py: Remove the unused import of Shape from |
24 |
data. It was only there for interface compatibility but it's not |
data. It was only there for interface compatibility but it's not |
25 |
used inside of Thuban and the generic Shape class will go away |
used inside of Thuban and the generic Shape class has gone away. |
26 |
soon anyway. |
|
27 |
|
2003-08-07 Bernhard Herzog <[email protected]> |
28 |
|
|
29 |
* test/test_baserenderer.py (SimpleShape): Shape class for the |
* test/test_baserenderer.py (SimpleShape): Shape class for the |
30 |
tests. |
tests. |