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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26