Skip to content

Commit

Permalink
- Fixed major bug identified by user which prevented blank dbf record…
Browse files Browse the repository at this point in the history
… values from being added to record queries.

git-svn-id: https://pyshp.googlecode.com/svn/trunk@41 6bd14dac-74e7-11de-ab85-01204adfcb19
  • Loading branch information
[email protected] committed Sep 5, 2011
1 parent 1216be6 commit 995f610
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Python2/shapefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,9 @@ def __record(self):
recordContents):
if name == 'DeletionFlag':
continue
if not value.strip():
record.append(value)
return record
if typ == "N":
elif not value.strip():
record.append(value)
elif typ == "N":
value = value.replace('\0', '').strip()
if value == '':
value = 0
Expand Down
Binary file modified Python2/shapefiles/test/line.dbf
Binary file not shown.
Binary file modified Python2/shapefiles/test/point.dbf
Binary file not shown.
Binary file modified Python2/shapefiles/test/polygon.dbf
Binary file not shown.

0 comments on commit 995f610

Please sign in to comment.