1 |
2003-09-29 Bernhard Herzog <[email protected]> |
2 |
|
3 |
* dbflib.i: Add exception typemap for the add_field method. Fixes |
4 |
Thuban bug RT#1842 |
5 |
|
6 |
* dbflib_wrap.c: Update from dbflib.i |
7 |
|
8 |
* testdbf.py: New. Test cases for the dbflib bindings based on the |
9 |
unittest module |
10 |
|
11 |
2003-08-18 Bernhard Herzog <[email protected]> |
12 |
|
13 |
* dbflib.i (DBFInfo_write_record): Use PySequence_Check instead of |
14 |
PyMapping_Check to distinguish between sequences and mappings |
15 |
because in Python 2.3, PyMapping_Check returns true for tuples and |
16 |
lists too. |
17 |
|
18 |
2003-05-28 Bernhard Herzog <[email protected]> |
19 |
|
20 |
* dbflib.i (DBFInfo_read_record): Read NULL fields as None unless |
21 |
it's a string field. DBF files can't distinguish between NULL and |
22 |
an empty string. Also, check the return value of |
23 |
DBFReadStringAttribute which may return NULL to indicate errors. |
24 |
|
25 |
* dbflib_wrap.c: Updated from dbflib.i |
26 |
|
27 |
2002-08-27 Bernhard Herzog <[email protected]> |
28 |
|
29 |
* dbflib.i: Raise an exception if open or create fails. |
30 |
|
31 |
* shapelib.i: Slightly better wording for the IOError exception |
32 |
that open and create may raise. |
33 |
|
34 |
* shapelib_wrap.c, dbflib_wrap.c: Regenerated |
35 |
|
36 |
2002-08-22 Bernhard Herzog <[email protected]> |
37 |
|
38 |
* dbflib.i (DBFFile::commit): New method for DBFCommit. |
39 |
|
40 |
* dbflib_wrap.c, dbflib.py: Update from dbflib.i |
41 |
|
42 |
2002-08-15 Bernhard Herzog <[email protected]> |
43 |
|
44 |
* shapelib.i, dbflib.i: Make the NOCHECK trick for the ShapeFile * |
45 |
check typemap work with SWIG 1.3. |
46 |
|
47 |
* shapelib_wrap.c, dbflib_wrap.c: Regenerate from the .i files. |
48 |
|
49 |
2002-05-10 Bernhard Herzog <[email protected]> |
50 |
|
51 |
* dbflib.i (DBFInfo_write_record): Only DECREF if the return value |
52 |
of PyMapping_GetItemString is not NULL. Also, test the return |
53 |
value of PySequence_GetItem |
54 |
(write_field): Remove some debug prints |
55 |
|
56 |
* dbflib_wrap.c: Updated from dbflib.i |
57 |
|
58 |
2002-05-07 Bernhard Herzog <[email protected]> |
59 |
|
60 |
* shptreemodule.c (SHPTreeType, initshptree): Set SHPTreeType's |
61 |
PyType_Type pointer in the init function. |
62 |
(shptree_methods): Use METH_VARARGS |
63 |
(shptree_dealloc): Use PyMem_DEL |
64 |
(shptree_find_shapes): Add a missing return |
65 |
|
66 |
2002-05-07 Bernhard Herzog <[email protected]> |
67 |
|
68 |
* shptreemodule.c: New file with a simple wrapper for shapelib's |
69 |
quadtree |
70 |
|
71 |
* setup.py: Some fixes to use explicit forward slashes as |
72 |
directory separators because of distutils. |
73 |
(extensions): Add the shptree module. |
74 |
|
75 |
* pytest.py (read_shapefile): Add some demo calls for the shptree |
76 |
module |
77 |
|
78 |
* pyshapelib_api.h (PyShapeLibAPI): Add some of the shptree |
79 |
functions. |
80 |
(PYSHAPELIB_IMPORT_API): New macro to import the API |
81 |
|
82 |
* shapelib.i (the_api): add the tree API functions. |
83 |
|
84 |
* shapelib_wrap.c: Updated from shapelib.i with SWIG. |
85 |
|
86 |
2002-04-11 Bernhard Herzog <[email protected]> |
87 |
|
88 |
* pyshapelib_api.h: New file with a limited C-level API for |
89 |
accessing shapilib functions from other Python-extensions. |
90 |
|
91 |
* shapelib.i: Export the C-level API with the c_api function. |
92 |
|
93 |
* shapelib.py, shapelib_wrap.c: Updated from shapelib.i. Still |
94 |
done with a very old version of SWIG, but it's probably not worth |
95 |
it to try it with a newer version as long as this still works. |
96 |
|
97 |
2001-07-18 Bernhard Herzog <[email protected]> |
98 |
|
99 |
* shapelib.i (open_ShapeFile): declare the swig prototype |
100 |
correctly with ShapeFile* as return type |
101 |
(ShapeFile.cobject): New method returning the SHPHandle* as a |
102 |
CObject |
103 |
|
104 |
* Makefile (VERSION): Increase to 0.3 |
105 |
|
106 |
* setup.py, MANIFEST.in: New files for python distutils. |
107 |
|
108 |
2001-06-15 Bernhard Herzog <[email protected]> |
109 |
|
110 |
* Makefile (VERSION): Increase to 0.2 |
111 |
|
112 |
2001-06-14 Bernhard Herzog <[email protected]> |
113 |
|
114 |
* shapelib.i: Add the functions SHPTypeName as type_name and |
115 |
SHPPartTypeName as part_type_name |
116 |
(SHPObject_vertices): |
117 |
(build_vertex_list): Put building a list of vertices into the |
118 |
separate function build_vertex_list so that SHPObject_vertices can |
119 |
support SHPT_POINT too. |
120 |
|
121 |
* ChangeLog: create ChangeLog |
122 |
|