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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26