1 |
|
2007-03-29 Bram de Greve <[email protected]> |
2 |
|
|
3 |
|
* shapelibmodule.c, dbflibmodule.c, pyshapelib_common.h: added support for |
4 |
|
Win32 wide character file API. Unicode filenames are now fully supported |
5 |
|
on the windows platform: for example exotic filenames like the greek letter |
6 |
|
pi (u"\u03c0"). This is mostly mimicked from Python's fileobject.c, and |
7 |
|
needed some severe changes in the C++ shapelib library to support the wide |
8 |
|
filename API. All XOpen and XCreate functions now have XOpenW and XCreateW |
9 |
|
counterparts plus some common code has been split to XOpenEx and XCreateEx. |
10 |
|
I hope these modifications might one day end up in an official shapelib |
11 |
|
release. Meanwhile, compatibility is guaranteed as the specific Unicode |
12 |
|
code paths are not compiled if the modifications are not found. |
13 |
|
|
14 |
|
2007-03-22 Bram de Greve <[email protected]> |
15 |
|
|
16 |
|
* shapelibmodule.c, dbflibmodule.c: in __init__ of ShapeFile and DBFFile, |
17 |
|
throw proper IOError if opening of file failed. |
18 |
|
|
19 |
|
* dbflibmodule.c: commit function was incorrectly pointing to |
20 |
|
dbflib_read_record |
21 |
|
|
22 |
|
2007-03-21 Bram de Greve <[email protected]> |
23 |
|
|
24 |
|
* shptreemodule.c: restoring something that shouldn't have been committed. |
25 |
|
|
26 |
|
2007-03-15 Bram de Greve <[email protected]> |
27 |
|
|
28 |
|
* shapelib.c: When creating measured shapes (XYM), treat M value |
29 |
|
value as optional (defaults to zero). Similar for |
30 |
|
3D shapes (XYZM), threat both the Z and M value as options |
31 |
|
(both default to zero). When M values are to be given, |
32 |
|
None is accepted as "no-data" value, and is stored as zero |
33 |
|
(ESRI shapefile specs define any M value smaller than 1e-38 |
34 |
|
as no-data). Added an unpack_vertex() function to lift some |
35 |
|
of the load of shpobject_init. Fixed a missing break and |
36 |
|
PyMem_Free in build_vertex_list(), shapefile_init() and |
37 |
|
shapelib_create(). |
38 |
|
|
39 |
|
* dbflibmodule.c: Added support for the FTLogical field type. |
40 |
|
|
41 |
|
* shapelibmodule.c, dbflibmodule.c: Added 'name' and 'mode' |
42 |
|
keywords for ShapeFile and DBFFile constructors and the module's |
43 |
|
open() function, similiar to Python's file(). Reformatted |
44 |
|
the doc strings to have a standard look and feel when parsed |
45 |
|
through pydoc. |
46 |
|
|
47 |
|
* shapelib_common.h: added no-data constants. |
48 |
|
|
49 |
|
* pytest.py: Added tests for multipatch shapefile with XYZM values. |
50 |
|
Added tests for FTLogical field. |
51 |
|
|
52 |
|
2007-03-15 Bram de Greve <[email protected]> |
53 |
|
|
54 |
|
* shapelibmodule.c, dbflibmodule.c: added some Unicode support for the |
55 |
|
filenames (no internal encoding for DBFFile yet). It now should similar |
56 |
|
Unicode support Python's file() (concerning the filename, that is). |
57 |
|
|
58 |
|
2007-03-14 Bram de Greve <[email protected]> |
59 |
|
|
60 |
|
* shapelibmodule.c: added support for shapetypes with Z and M values |
61 |
|
|
62 |
|
2007-03-14 Bram de Greve <[email protected]> |
63 |
|
|
64 |
|
* dbflibmodule.c, dbflib.i: replaced dbflib.i by dbflibmodule.c to use |
65 |
|
hand-crafted Python bindings instead of SWIG generated ones |
66 |
|
|
67 |
|
* shapelibmodule.c, shapelib.c: Renamed shapelib.c to shapelibmodule.c |
68 |
|
to match style of dbflibmodule.c and shptreemodule.c. Changed some |
69 |
|
(well, most) names to match same style. |
70 |
|
|
71 |
|
* pyshapelib_common.h: do all necessary includes here |
72 |
|
|
73 |
|
* setup.py: updated building of dbflib. |
74 |
|
|
75 |
|
2007-03-13 Bram de Greve <[email protected]> |
76 |
|
|
77 |
|
* shapelib.c, shapelib_common.h: Added part_types() to SHPObject to |
78 |
|
return tuple of part types. Added __repr__ operators to return a |
79 |
|
string that can reconstruct the object using eval() |
80 |
|
|
81 |
|
* pytest.py: Added tests for part_types() and __repr__. |
82 |
|
Humanized the output a bit. |
83 |
|
|
84 |
|
2007-03-12 Bram de Greve <[email protected]> |
85 |
|
|
86 |
|
* shapelib.c, shapelib.i: replaced shapelib.i by shapelib.c to use |
87 |
|
hand-crafted Python bindings instead of SWIG generated ones. |
88 |
|
|
89 |
|
* pyshapelib_common.h: New file with some common stuff for both |
90 |
|
shapelib and dbflib |
91 |
|
|
92 |
|
* pyshapelib_api.h, setup.py: import/build shapelib instead of shapelibc |
93 |
|
|
94 |
|
2006-09-24 Bernhard Reiter <[email protected]> |
95 |
|
|
96 |
|
* dbflib_wrap.c, README: Checked for python version >= 2.4.0a0 |
97 |
|
before using &PyOS_ascii_atof. |
98 |
|
|
99 |
|
2006-09-24 Bernhard Reiter <[email protected]> |
100 |
|
|
101 |
|
Added dirty workaround to make dbflib agnostic |
102 |
|
against decimal_poinst != ".\0". |
103 |
|
|
104 |
|
* dbflib_wrap.c: Added call DBFSetatof_function(&PyOS_ascii_atof); |
105 |
|
to initdbflibc(). |
106 |
|
* README: noted that manual editing of dbflib_wrap.c is necessary now. |
107 |
|
|
108 |
|
2005-06-30 Bernhard Herzog <[email protected]> |
109 |
|
|
110 |
|
* shapelib.i (new_SHPObject): Fix the test for the length of the |
111 |
|
part types. It used the wrong variable. |
112 |
|
|
113 |
|
* shapelib_wrap.c: Regenerated from shapelib.i |
114 |
|
|
115 |
|
* pytest.py (make_shapefile): Add some more comments and add an |
116 |
|
example with a polygon with a hole. |
117 |
|
|
118 |
2004-12-27 Bernhard Reiter <[email protected]> |
2004-12-27 Bernhard Reiter <[email protected]> |
119 |
|
|
120 |
* README: Refering to the new homepage shapelib.maptools.org now. |
* README: Refering to the new homepage shapelib.maptools.org now. |