1 |
2007-03-15 Bram de Greve <[email protected]> |
2 |
|
3 |
* shapelibmodule.c, dbflibmodule.c: added some Unicode support for the |
4 |
filenames (no internal encoding for DBFFile yet). It now should similar |
5 |
Unicode support Python's file() (concerning the filename, that is). |
6 |
|
7 |
2007-03-14 Bram de Greve <[email protected]> |
8 |
|
9 |
* shapelibmodule.c: added support for shapetypes with Z and M values |
10 |
|
11 |
2007-03-14 Bram de Greve <[email protected]> |
12 |
|
13 |
* dbflibmodule.c, dbflib.i: replaced dbflib.i by dbflibmodule.c to use |
14 |
hand-crafted Python bindings instead of SWIG generated ones |
15 |
|
16 |
* shapelibmodule.c, shapelib.c: Renamed shapelib.c to shapelibmodule.c |
17 |
to match style of dbflibmodule.c and shptreemodule.c. Changed some |
18 |
(well, most) names to match same style. |
19 |
|
20 |
* pyshapelib_common.h: do all necessary includes here |
21 |
|
22 |
* setup.py: updated building of dbflib. |
23 |
|
24 |
2007-03-13 Bram de Greve <[email protected]> |
25 |
|
26 |
* shapelib.c, shapelib_common.h: Added part_types() to SHPObject to |
27 |
return tuple of part types. Added __repr__ operators to return a |
28 |
string that can reconstruct the object using eval() |
29 |
|
30 |
* pytest.py: Added tests for part_types() and __repr__. |
31 |
Humanized the output a bit. |
32 |
|
33 |
2007-03-12 Bram de Greve <[email protected]> |
34 |
|
35 |
* shapelib.c, shapelib.i: replaced shapelib.i by shapelib.c to use |
36 |
hand-crafted Python bindings instead of SWIG generated ones. |
37 |
|
38 |
* pyshapelib_common.h: New file with some common stuff for both |
39 |
shapelib and dbflib |
40 |
|
41 |
* pyshapelib_api.h, setup.py: import/build shapelib instead of shapelibc |
42 |
|
43 |
2006-09-24 Bernhard Reiter <[email protected]> |
44 |
|
45 |
* dbflib_wrap.c, README: Checked for python version >= 2.4.0a0 |
46 |
before using &PyOS_ascii_atof. |
47 |
|
48 |
2006-09-24 Bernhard Reiter <[email protected]> |
49 |
|
50 |
Added dirty workaround to make dbflib agnostic |
51 |
against decimal_poinst != ".\0". |
52 |
|
53 |
* dbflib_wrap.c: Added call DBFSetatof_function(&PyOS_ascii_atof); |
54 |
to initdbflibc(). |
55 |
* README: noted that manual editing of dbflib_wrap.c is necessary now. |
56 |
|
57 |
2005-06-30 Bernhard Herzog <[email protected]> |
58 |
|
59 |
* shapelib.i (new_SHPObject): Fix the test for the length of the |
60 |
part types. It used the wrong variable. |
61 |
|
62 |
* shapelib_wrap.c: Regenerated from shapelib.i |
63 |
|
64 |
* pytest.py (make_shapefile): Add some more comments and add an |
65 |
example with a polygon with a hole. |
66 |
|
67 |
2004-12-27 Bernhard Reiter <[email protected]> |
68 |
|
69 |
* README: Refering to the new homepage shapelib.maptools.org now. |
70 |
|
71 |
2004-12-13 Bernhard Herzog <[email protected]> |
72 |
|
73 |
* dbflib.py: Updated from difflib.i with SWIG. |
74 |
|
75 |
* dbflib.i: Work around a bug in the generated python code which |
76 |
leads to exception in the __del__ method when the constructor |
77 |
fails. See the comments in the code for more details. |
78 |
|
79 |
2004-05-28 Bernhard Herzog <[email protected]> |
80 |
|
81 |
* README: Flesh out the some more. Correct the shapelib |
82 |
requirements. |
83 |
|
84 |
* NEWS: Update the date of the actual release of 0.3 |
85 |
|
86 |
2004-05-28 Bernhard Herzog <[email protected]> |
87 |
|
88 |
* setup.py: Determine shp_dir correctly when run with bdist_rpm |
89 |
(dbf_macros): Remove a debug print |
90 |
|
91 |
* NEWS: Also mention the new (compared to 0.2) setup.py |
92 |
|
93 |
* MANIFEST.in: New. Define which files belong into a source |
94 |
distribution |
95 |
|
96 |
2004-05-17 Bernhard Herzog <[email protected]> |
97 |
|
98 |
* README: Update for new release |
99 |
|
100 |
* setup.py (dbf_macros): New. Return the preprocessor macros |
101 |
needed to compile the dbflib wrapper. Determine whether |
102 |
DBFUpdateHeader is available and define the right value of |
103 |
HAVE_UPDATE_HEADER |
104 |
(extensions): Use dbf_macros for the dbflibc extension |
105 |
|
106 |
* dbflib_wrap.c, dbflib.py: Update from dbflib.i |
107 |
|
108 |
* dbflib.i (DBFInfo_commit): New. Implementation of the commit |
109 |
method. This new indirection is necessary because we use the |
110 |
DBFUpdateHeader function now which is not available in shapelib <= |
111 |
1.2.10 |
112 |
(DBFFile::commit): Use DBFInfo_commit as implementation |
113 |
(pragma __class__): New. Kludge to remove the commit method when |
114 |
the DBFUpdateHeader function isn't available |
115 |
(_have_commit): New. Helper for the pragma kludge. |
116 |
|
117 |
2003-11-03 Bernhard Herzog <[email protected]> |
118 |
|
119 |
* dbflib.i (do_read_attribute): New helper function for reading |
120 |
one attribute as a python object |
121 |
(DBFInfo_read_attribute): New. Implement the read_attribute method |
122 |
(DBFInfo_read_record): Use do_read_attribute to read the |
123 |
individual values |
124 |
(struct DBFFile): Add the read_attribute method. |
125 |
|
126 |
* dbflib_wrap.c, dbflib.py: Update from dbflib.i. |
127 |
|
128 |
2003-09-29 Bernhard Herzog <[email protected]> |
129 |
|
130 |
* dbflib.i: Add exception typemap for the add_field method. Fixes |
131 |
Thuban bug RT#1842 |
132 |
|
133 |
* dbflib_wrap.c: Update from dbflib.i |
134 |
|
135 |
* testdbf.py: New. Test cases for the dbflib bindings based on the |
136 |
unittest module |
137 |
|
138 |
2003-08-18 Bernhard Herzog <[email protected]> |
139 |
|
140 |
* dbflib.i (DBFInfo_write_record): Use PySequence_Check instead of |
141 |
PyMapping_Check to distinguish between sequences and mappings |
142 |
because in Python 2.3, PyMapping_Check returns true for tuples and |
143 |
lists too. |
144 |
|
145 |
2003-05-28 Bernhard Herzog <[email protected]> |
146 |
|
147 |
* dbflib.i (DBFInfo_read_record): Read NULL fields as None unless |
148 |
it's a string field. DBF files can't distinguish between NULL and |
149 |
an empty string. Also, check the return value of |
150 |
DBFReadStringAttribute which may return NULL to indicate errors. |
151 |
|
152 |
* dbflib_wrap.c: Updated from dbflib.i |
153 |
|
154 |
2002-08-27 Bernhard Herzog <[email protected]> |
155 |
|
156 |
* dbflib.i: Raise an exception if open or create fails. |
157 |
|
158 |
* shapelib.i: Slightly better wording for the IOError exception |
159 |
that open and create may raise. |
160 |
|
161 |
* shapelib_wrap.c, dbflib_wrap.c: Regenerated |
162 |
|
163 |
2002-08-22 Bernhard Herzog <[email protected]> |
164 |
|
165 |
* dbflib.i (DBFFile::commit): New method for DBFCommit. |
166 |
|
167 |
* dbflib_wrap.c, dbflib.py: Update from dbflib.i |
168 |
|
169 |
2002-08-15 Bernhard Herzog <[email protected]> |
170 |
|
171 |
* shapelib.i, dbflib.i: Make the NOCHECK trick for the ShapeFile * |
172 |
check typemap work with SWIG 1.3. |
173 |
|
174 |
* shapelib_wrap.c, dbflib_wrap.c: Regenerate from the .i files. |
175 |
|
176 |
2002-05-10 Bernhard Herzog <[email protected]> |
177 |
|
178 |
* dbflib.i (DBFInfo_write_record): Only DECREF if the return value |
179 |
of PyMapping_GetItemString is not NULL. Also, test the return |
180 |
value of PySequence_GetItem |
181 |
(write_field): Remove some debug prints |
182 |
|
183 |
* dbflib_wrap.c: Updated from dbflib.i |
184 |
|
185 |
2002-05-07 Bernhard Herzog <[email protected]> |
186 |
|
187 |
* shptreemodule.c (SHPTreeType, initshptree): Set SHPTreeType's |
188 |
PyType_Type pointer in the init function. |
189 |
(shptree_methods): Use METH_VARARGS |
190 |
(shptree_dealloc): Use PyMem_DEL |
191 |
(shptree_find_shapes): Add a missing return |
192 |
|
193 |
2002-05-07 Bernhard Herzog <[email protected]> |
194 |
|
195 |
* shptreemodule.c: New file with a simple wrapper for shapelib's |
196 |
quadtree |
197 |
|
198 |
* setup.py: Some fixes to use explicit forward slashes as |
199 |
directory separators because of distutils. |
200 |
(extensions): Add the shptree module. |
201 |
|
202 |
* pytest.py (read_shapefile): Add some demo calls for the shptree |
203 |
module |
204 |
|
205 |
* pyshapelib_api.h (PyShapeLibAPI): Add some of the shptree |
206 |
functions. |
207 |
(PYSHAPELIB_IMPORT_API): New macro to import the API |
208 |
|
209 |
* shapelib.i (the_api): add the tree API functions. |
210 |
|
211 |
* shapelib_wrap.c: Updated from shapelib.i with SWIG. |
212 |
|
213 |
2002-04-11 Bernhard Herzog <[email protected]> |
214 |
|
215 |
* pyshapelib_api.h: New file with a limited C-level API for |
216 |
accessing shapilib functions from other Python-extensions. |
217 |
|
218 |
* shapelib.i: Export the C-level API with the c_api function. |
219 |
|
220 |
* shapelib.py, shapelib_wrap.c: Updated from shapelib.i. Still |
221 |
done with a very old version of SWIG, but it's probably not worth |
222 |
it to try it with a newer version as long as this still works. |
223 |
|
224 |
2001-07-18 Bernhard Herzog <[email protected]> |
225 |
|
226 |
* shapelib.i (open_ShapeFile): declare the swig prototype |
227 |
correctly with ShapeFile* as return type |
228 |
(ShapeFile.cobject): New method returning the SHPHandle* as a |
229 |
CObject |
230 |
|
231 |
* Makefile (VERSION): Increase to 0.3 |
232 |
|
233 |
* setup.py, MANIFEST.in: New files for python distutils. |
234 |
|
235 |
2001-06-15 Bernhard Herzog <[email protected]> |
236 |
|
237 |
* Makefile (VERSION): Increase to 0.2 |
238 |
|
239 |
2001-06-14 Bernhard Herzog <[email protected]> |
240 |
|
241 |
* shapelib.i: Add the functions SHPTypeName as type_name and |
242 |
SHPPartTypeName as part_type_name |
243 |
(SHPObject_vertices): |
244 |
(build_vertex_list): Put building a list of vertices into the |
245 |
separate function build_vertex_list so that SHPObject_vertices can |
246 |
support SHPT_POINT too. |
247 |
|
248 |
* ChangeLog: create ChangeLog |
249 |
|