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