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