1 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row |
4 |
|
numbers given to ReadValue are ordinals. |
5 |
|
|
6 |
|
2004-03-11 Bernhard Herzog <[email protected]> |
7 |
|
|
8 |
|
Elimiate the requirement for PostGIS tables to have a column |
9 |
|
called "gid". |
10 |
|
|
11 |
|
* Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter |
12 |
|
id_column to specify which column to use to identify rows. Also |
13 |
|
new instance variables id_column and quoted_id_column |
14 |
|
(PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId) |
15 |
|
(PostGISTable.ReadRowAsDict, PostGISTable.ReadValue) |
16 |
|
(PostGISTable.SimpleQuery): Use the id column name provided to the |
17 |
|
constructor instead of "gid" |
18 |
|
(PostGISShapeStore.__init__): New parameter id_column analogously |
19 |
|
to PostGISTable.__init__. This parameter is simply passed through |
20 |
|
to the base class constructor |
21 |
|
(PostGISShapeStore._create_col_from_description): Fix typo in |
22 |
|
doc-string |
23 |
|
(PostGISShapeStore.Shape, PostGISShapeStore.AllShapes) |
24 |
|
(PostGISShapeStore.ShapesInRegion): Use the id column name |
25 |
|
provided to the constructor instead of "gid" |
26 |
|
|
27 |
|
* test/postgissupport.py |
28 |
|
(PostgreSQLServer.get_default_static_data_db): New static table |
29 |
|
landmarks_point_id with an id column != "gid. Update the comments |
30 |
|
a bit. |
31 |
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in |
32 |
|
doc- |
33 |
|
(upload_shapefile): New parameter gid_column to use a name other |
34 |
|
than "gid" for the column to store the shape ids |
35 |
|
|
36 |
|
* test/test_postgis_db.py (TableTests): New. Mixin-class |
37 |
|
containing all tests previously in TestPostGISTable. The actual |
38 |
|
tests are the same but the code is a bit more configurable to |
39 |
|
allow for different id columns etc. |
40 |
|
(TestPostGISTable): Derive from TableTests now for the actual |
41 |
|
tests. |
42 |
|
(TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable |
43 |
|
except that it the landmarks_point_id table to test the id_column |
44 |
|
parameter |
45 |
|
(PointTests): Extend the doc-string |
46 |
|
(TestPostGISShapestorePointExplicitGIDColumn) |
47 |
|
(TestPostGISShapestorePointOIDAsGIDColumn): New classes derived |
48 |
|
from PointTests to test the explicit id_column parameter. One |
49 |
|
tests with the name of the column holding the shape ids, the other |
50 |
|
uses PostgreSQL's OID column. For the latter a number of methods |
51 |
|
have to be overwritten to make them independent of the actual id |
52 |
|
values. |
53 |
|
|
54 |
2004-03-08 Silke Reimer <[email protected]> |
2004-03-08 Silke Reimer <[email protected]> |
55 |
|
|
56 |
Update debian directory: |
Update debian directory: |