1 |
2004-12-13 Bernhard Herzog <[email protected]> |
2 |
|
3 |
* dbflib.py: Updated from difflib.i with SWIG. |
4 |
|
5 |
* dbflib.i: Work around a bug in the generated python code which |
6 |
leads to exception in the __del__ method when the constructor |
7 |
fails. See the comments in the code for more details. |
8 |
|
9 |
2004-05-28 Bernhard Herzog <[email protected]> |
10 |
|
11 |
* README: Flesh out the some more. Correct the shapelib |
12 |
requirements. |
13 |
|
14 |
* NEWS: Update the date of the actual release of 0.3 |
15 |
|
16 |
2004-05-28 Bernhard Herzog <[email protected]> |
17 |
|
18 |
* setup.py: Determine shp_dir correctly when run with bdist_rpm |
19 |
(dbf_macros): Remove a debug print |
20 |
|
21 |
* NEWS: Also mention the new (compared to 0.2) setup.py |
22 |
|
23 |
* MANIFEST.in: New. Define which files belong into a source |
24 |
distribution |
25 |
|
26 |
2004-05-17 Bernhard Herzog <[email protected]> |
27 |
|
28 |
* README: Update for new release |
29 |
|
30 |
* setup.py (dbf_macros): New. Return the preprocessor macros |
31 |
needed to compile the dbflib wrapper. Determine whether |
32 |
DBFUpdateHeader is available and define the right value of |
33 |
HAVE_UPDATE_HEADER |
34 |
(extensions): Use dbf_macros for the dbflibc extension |
35 |
|
36 |
* dbflib_wrap.c, dbflib.py: Update from dbflib.i |
37 |
|
38 |
* dbflib.i (DBFInfo_commit): New. Implementation of the commit |
39 |
method. This new indirection is necessary because we use the |
40 |
DBFUpdateHeader function now which is not available in shapelib <= |
41 |
1.2.10 |
42 |
(DBFFile::commit): Use DBFInfo_commit as implementation |
43 |
(pragma __class__): New. Kludge to remove the commit method when |
44 |
the DBFUpdateHeader function isn't available |
45 |
(_have_commit): New. Helper for the pragma kludge. |
46 |
|
47 |
2003-11-03 Bernhard Herzog <[email protected]> |
48 |
|
49 |
* dbflib.i (do_read_attribute): New helper function for reading |
50 |
one attribute as a python object |
51 |
(DBFInfo_read_attribute): New. Implement the read_attribute method |
52 |
(DBFInfo_read_record): Use do_read_attribute to read the |
53 |
individual values |
54 |
(struct DBFFile): Add the read_attribute method. |
55 |
|
56 |
* dbflib_wrap.c, dbflib.py: Update from dbflib.i. |
57 |
|
58 |
2003-09-29 Bernhard Herzog <[email protected]> |
59 |
|
60 |
* dbflib.i: Add exception typemap for the add_field method. Fixes |
61 |
Thuban bug RT#1842 |
62 |
|
63 |
* dbflib_wrap.c: Update from dbflib.i |
64 |
|
65 |
* testdbf.py: New. Test cases for the dbflib bindings based on the |
66 |
unittest module |
67 |
|
68 |
2003-08-18 Bernhard Herzog <[email protected]> |
69 |
|
70 |
* dbflib.i (DBFInfo_write_record): Use PySequence_Check instead of |
71 |
PyMapping_Check to distinguish between sequences and mappings |
72 |
because in Python 2.3, PyMapping_Check returns true for tuples and |
73 |
lists too. |
74 |
|
75 |
2003-05-28 Bernhard Herzog <[email protected]> |
76 |
|
77 |
* dbflib.i (DBFInfo_read_record): Read NULL fields as None unless |
78 |
it's a string field. DBF files can't distinguish between NULL and |
79 |
an empty string. Also, check the return value of |
80 |
DBFReadStringAttribute which may return NULL to indicate errors. |
81 |
|
82 |
* dbflib_wrap.c: Updated from dbflib.i |
83 |
|
84 |
2002-08-27 Bernhard Herzog <[email protected]> |
85 |
|
86 |
* dbflib.i: Raise an exception if open or create fails. |
87 |
|
88 |
* shapelib.i: Slightly better wording for the IOError exception |
89 |
that open and create may raise. |
90 |
|
91 |
* shapelib_wrap.c, dbflib_wrap.c: Regenerated |
92 |
|
93 |
2002-08-22 Bernhard Herzog <[email protected]> |
94 |
|
95 |
* dbflib.i (DBFFile::commit): New method for DBFCommit. |
96 |
|
97 |
* dbflib_wrap.c, dbflib.py: Update from dbflib.i |
98 |
|
99 |
2002-08-15 Bernhard Herzog <[email protected]> |
100 |
|
101 |
* shapelib.i, dbflib.i: Make the NOCHECK trick for the ShapeFile * |
102 |
check typemap work with SWIG 1.3. |
103 |
|
104 |
* shapelib_wrap.c, dbflib_wrap.c: Regenerate from the .i files. |
105 |
|
106 |
2002-05-10 Bernhard Herzog <[email protected]> |
107 |
|
108 |
* dbflib.i (DBFInfo_write_record): Only DECREF if the return value |
109 |
of PyMapping_GetItemString is not NULL. Also, test the return |
110 |
value of PySequence_GetItem |
111 |
(write_field): Remove some debug prints |
112 |
|
113 |
* dbflib_wrap.c: Updated from dbflib.i |
114 |
|
115 |
2002-05-07 Bernhard Herzog <[email protected]> |
116 |
|
117 |
* shptreemodule.c (SHPTreeType, initshptree): Set SHPTreeType's |
118 |
PyType_Type pointer in the init function. |
119 |
(shptree_methods): Use METH_VARARGS |
120 |
(shptree_dealloc): Use PyMem_DEL |
121 |
(shptree_find_shapes): Add a missing return |
122 |
|
123 |
2002-05-07 Bernhard Herzog <[email protected]> |
124 |
|
125 |
* shptreemodule.c: New file with a simple wrapper for shapelib's |
126 |
quadtree |
127 |
|
128 |
* setup.py: Some fixes to use explicit forward slashes as |
129 |
directory separators because of distutils. |
130 |
(extensions): Add the shptree module. |
131 |
|
132 |
* pytest.py (read_shapefile): Add some demo calls for the shptree |
133 |
module |
134 |
|
135 |
* pyshapelib_api.h (PyShapeLibAPI): Add some of the shptree |
136 |
functions. |
137 |
(PYSHAPELIB_IMPORT_API): New macro to import the API |
138 |
|
139 |
* shapelib.i (the_api): add the tree API functions. |
140 |
|
141 |
* shapelib_wrap.c: Updated from shapelib.i with SWIG. |
142 |
|
143 |
2002-04-11 Bernhard Herzog <[email protected]> |
144 |
|
145 |
* pyshapelib_api.h: New file with a limited C-level API for |
146 |
accessing shapilib functions from other Python-extensions. |
147 |
|
148 |
* shapelib.i: Export the C-level API with the c_api function. |
149 |
|
150 |
* shapelib.py, shapelib_wrap.c: Updated from shapelib.i. Still |
151 |
done with a very old version of SWIG, but it's probably not worth |
152 |
it to try it with a newer version as long as this still works. |
153 |
|
154 |
2001-07-18 Bernhard Herzog <[email protected]> |
155 |
|
156 |
* shapelib.i (open_ShapeFile): declare the swig prototype |
157 |
correctly with ShapeFile* as return type |
158 |
(ShapeFile.cobject): New method returning the SHPHandle* as a |
159 |
CObject |
160 |
|
161 |
* Makefile (VERSION): Increase to 0.3 |
162 |
|
163 |
* setup.py, MANIFEST.in: New files for python distutils. |
164 |
|
165 |
2001-06-15 Bernhard Herzog <[email protected]> |
166 |
|
167 |
* Makefile (VERSION): Increase to 0.2 |
168 |
|
169 |
2001-06-14 Bernhard Herzog <[email protected]> |
170 |
|
171 |
* shapelib.i: Add the functions SHPTypeName as type_name and |
172 |
SHPPartTypeName as part_type_name |
173 |
(SHPObject_vertices): |
174 |
(build_vertex_list): Put building a list of vertices into the |
175 |
separate function build_vertex_list so that SHPObject_vertices can |
176 |
support SHPT_POINT too. |
177 |
|
178 |
* ChangeLog: create ChangeLog |
179 |
|