1 |
|
2007-03-15 Bram de Greve <[email protected]> |
2 |
|
|
3 |
|
* 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 |
|
* 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 |
|
2007-03-14 Bram de Greve <[email protected]> |
34 |
|
|
35 |
|
* shapelibmodule.c: added support for shapetypes with Z and M values |
36 |
|
|
37 |
|
2007-03-14 Bram de Greve <[email protected]> |
38 |
|
|
39 |
|
* 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 |
|
* 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 |
|
2007-03-12 Bram de Greve <[email protected]> |
60 |
|
|
61 |
|
* 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 |
|
2006-09-24 Bernhard Reiter <[email protected]> |
70 |
|
|
71 |
|
* 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 |
|
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 |
|
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 |
|
2004-12-27 Bernhard Reiter <[email protected]> |
94 |
|
|
95 |
|
* README: Refering to the new homepage shapelib.maptools.org now. |
96 |
|
|
97 |
|
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 |
|
2004-05-28 Bernhard Herzog <[email protected]> |
106 |
|
|
107 |
|
* 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 |
|
* 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 |
|
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 |
|
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 |
2003-09-29 Bernhard Herzog <[email protected]> |
2003-09-29 Bernhard Herzog <[email protected]> |
155 |
|
|
156 |
* dbflib.i: Add exception typemap for the add_field method. Fixes |
* dbflib.i: Add exception typemap for the add_field method. Fixes |