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]> |
2003-08-18 Bernhard Herzog <[email protected]> |
174 |
|
|
175 |
* dbflib.i (DBFInfo_write_record): Use PySequence_Check instead of |
* dbflib.i (DBFInfo_write_record): Use PySequence_Check instead of |