/[thuban]/branches/WIP-pyshapelib-bramz/libraries/pyshapelib/dbflibmodule.c
ViewVC logotype

Log of /branches/WIP-pyshapelib-bramz/libraries/pyshapelib/dbflibmodule.c

Parent Directory Parent Directory | Revision Log Revision Log


Sticky Revision:
(Current path doesn't exist after revision 2835)

Revision 2754 - (view) (annotate) - [select for diffs]
Modified Wed Apr 11 19:04:12 2007 UTC (17 years, 10 months ago) by bramz
File length: 24938 byte(s)
Diff to previous 2753 , to selected 2752
Bug fix: in dbffile_add_field, the exception must be cleared if the first PyArg_ParseTuple fails.

Revision 2753 - (view) (annotate) - [select for diffs]
Modified Wed Apr 11 18:57:04 2007 UTC (17 years, 10 months ago) by bramz
File length: 24913 byte(s)
Diff to previous 2752
Expanded Unicode support to field names (formely it was only available for string values in the records.  
Renamed the write_field function to write_attribute to be symmetric with the read_attribute function that already existed.

Revision 2752 - (view) (annotate) - [selected]
Modified Tue Apr 10 23:45:00 2007 UTC (17 years, 10 months ago) by bramz
File length: 24718 byte(s)
Diff to previous 2751
attempt to add support for Unicode and Language Driver ID (LDID) support in dbflib

Revision 2751 - (view) (annotate) - [select for diffs]
Modified Wed Mar 28 23:30:15 2007 UTC (17 years, 11 months ago) by bramz
File length: 15436 byte(s)
Diff to previous 2750 , to selected 2752
Added support for Win32 wide character file API.  Unicode filenames are now fully supported on the windows platform: for example exotic filenames like the greek letter pi (u"\u03c0").  However, this needed unofficial modifications in the C++ shapelib library.

Revision 2750 - (view) (annotate) - [select for diffs]
Modified Thu Mar 22 20:35:08 2007 UTC (17 years, 11 months ago) by bramz
File length: 14022 byte(s)
Diff to previous 2749 , to selected 2752
commit function was incorrectly pointing to dbflib_read_record. fixed!

Revision 2749 - (view) (annotate) - [select for diffs]
Modified Thu Mar 22 19:03:27 2007 UTC (17 years, 11 months ago) by bramz
File length: 14027 byte(s)
Diff to previous 2745 , to selected 2752
in __init__ of ShapeFile and DBFFile, throw proper IOError if opening of file failed.

Revision 2745 - (view) (annotate) - [select for diffs]
Modified Thu Mar 15 22:27:02 2007 UTC (17 years, 11 months ago) by bramz
File length: 13946 byte(s)
Diff to previous 2744 , to selected 2752
Added FTLogical support to dbflib.  Accept None as no-data for M values.  Added name and mode keywords to mimic Python's file behaviour where appropriate.  Added unpack_vertex() to lift some load of shpobject_init().

Revision 2744 - (view) (annotate) - [select for diffs]
Modified Thu Mar 15 13:48:58 2007 UTC (17 years, 11 months ago) by bramz
File length: 13722 byte(s)
Diff to previous 2742 , to selected 2752
shapelibmodule.c, dbflibmodule.c: added some Unicode support for the filenames (no internal encoding for DBFFile yet).  It now should similar Unicode support Python's file() (concerning the filename, that is).

Revision 2742 - (view) (annotate) - [select for diffs]
Modified Wed Mar 14 16:26:14 2007 UTC (17 years, 11 months ago) by bramz
File length: 12985 byte(s)
Copied from: branches/WIP-pyshapelib-bramz/libraries/pyshapelib/dbflib.i revision 2741
Diff to previous 2734 , to selected 2752
pyshapelib: rewritten dbflib to use hand-crafted Python bindings instead of SWIG generated ones.


Revision 2734 - (view) (annotate) - [select for diffs]
Modified Thu Mar 1 12:42:59 2007 UTC (18 years ago) by bramz
Original Path: branches/WIP-pyshapelib-bramz/libraries/pyshapelib/dbflib.i
File length: 15212 byte(s)
Diff to previous 2453 , to selected 2752
made a copy

Revision 2453 - (view) (annotate) - [select for diffs]
Modified Mon Dec 13 17:57:04 2004 UTC (20 years, 2 months ago) by bh
Original Path: trunk/thuban/libraries/pyshapelib/dbflib.i
File length: 15212 byte(s)
Diff to previous 2212 , to selected 2752
* dbflib.py: Updated from difflib.i with SWIG.

* dbflib.i: Work around a bug in the generated python code which
leads to exception in the __del__ method when the constructor
fails.  See the comments in the code for more details.


Revision 2212 - (view) (annotate) - [select for diffs]
Modified Mon May 17 15:47:57 2004 UTC (20 years, 9 months ago) by bh
Original Path: trunk/thuban/libraries/pyshapelib/dbflib.i
File length: 14717 byte(s)
Diff to previous 1917 , to selected 2752
Update to newest shapelib and get rid of Thuban specific extensions,
i.e. use the new DBFUpdateHeader instead of our DBFCommit kludge

* libraries/shapelib/shpopen.c: Update to version from current
shapelib CVS.

* libraries/shapelib/shapefil.h: Update to version from current
shapelib CVS.

* libraries/shapelib/dbfopen.c: Update to version from current
shapelib CVS.
(DBFCommit): Effectively removed since shapelib itself has
DBFUpdateHeader now which is better for what DBFCommit wanted to
achieve.
We're now using an unmodified version of dbfopen.

* libraries/pyshapelib/dbflib_wrap.c, libraries/pyshapelib/dbflib.py:
Update from dbflib.i

* libraries/pyshapelib/dbflib.i (DBFInfo_commit): New. Implementation of
the commit method.  This new indirection is necessary because we use the
DBFUpdateHeader function now which is not available in shapelib <=
1.2.10
(DBFFile::commit): Use DBFInfo_commit as implementation
(pragma __class__): New. Kludge to remove the commit method when
the DBFUpdateHeader function isn't available
(_have_commit): New. Helper for the pragma kludge.

* libraries/pyshapelib/setup.py (dbf_macros): New. Return the
preprocessor macros needed to compile the dbflib wrapper.  Determine
whether DBFUpdateHeader is available and define the right value of
HAVE_UPDATE_HEADER
(extensions): Use dbf_macros for the dbflibc extension

* setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
value '1' to the Lib.dbflibc extension.  This simply reflects the
shapelib and pyshapelib updates


Revision 1917 - (view) (annotate) - [select for diffs]
Modified Mon Nov 3 17:31:11 2003 UTC (21 years, 4 months ago) by bh
Original Path: trunk/thuban/libraries/pyshapelib/dbflib.i
File length: 13922 byte(s)
Diff to previous 1761 , to selected 2752
* dbflib.i (do_read_attribute): New helper function for reading
one attribute as a python object
(DBFInfo_read_attribute): New. Implement the read_attribute method
(DBFInfo_read_record): Use do_read_attribute to read the
individual values
(struct DBFFile): Add the read_attribute method.

* dbflib_wrap.c, dbflib.py: Update from dbflib.i.


Revision 1761 - (view) (annotate) - [select for diffs]
Modified Mon Sep 29 10:52:22 2003 UTC (21 years, 5 months ago) by bh
Original Path: trunk/thuban/libraries/pyshapelib/dbflib.i
File length: 12227 byte(s)
Diff to previous 1611 , to selected 2752
* dbflib.i: Add exception typemap for the add_field method. Fixes
Thuban bug RT#1842

* dbflib_wrap.c: Update from dbflib.i


Revision 1611 - (view) (annotate) - [select for diffs]
Added Tue Aug 19 21:24:20 2003 UTC (21 years, 6 months ago) by jan
Original Path: trunk/thuban/libraries/pyshapelib/dbflib.i
File length: 12020 byte(s)
Diff to selected 2752
These files have been moved here from thuban/extensions/pyshapelib/
See there in the Attic for the older history.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26