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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26