/[thuban]/branches/WIP-pyshapelib-bramz/libraries/pyshapelib/ChangeLog
ViewVC logotype

Contents of /branches/WIP-pyshapelib-bramz/libraries/pyshapelib/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2742 - (show annotations)
Wed Mar 14 16:26:14 2007 UTC (17 years, 11 months ago) by bramz
File size: 7860 byte(s)
pyshapelib: rewritten dbflib to use hand-crafted Python bindings instead of SWIG generated ones.

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

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26