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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26