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