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