Skip to content

Commit a465755

Browse files
committed
Provide default value for DBF header
Needed when creating new file. Signed-off-by: Michal Čihař <[email protected]>
1 parent 989b0ab commit a465755

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ShapeFile.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ class ShapeFile {
3333
private $SHXFile = null;
3434
private $DBFFile = null;
3535

36-
public $DBFHeader;
36+
public $DBFHeader = array(
37+
array('ID', 'N', 19, 0),
38+
array('DESC', 'C', 14, 0),
39+
);
3740

3841
public $lastError = '';
3942

0 commit comments

Comments
 (0)