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]> |
2007-03-14 Bram de Greve <[email protected]> |
59 |
|
|
60 |
* shapelibmodule.c: added support for shapetypes with Z and M values |
* shapelibmodule.c: added support for shapetypes with Z and M values |