@@ -52,6 +52,9 @@ discard block |
||
52 | 52 | |
53 | 53 | public $records; |
54 | 54 | |
55 | + /** |
|
56 | + * @param integer $shapeType |
|
57 | + */ |
|
55 | 58 | public function __construct($shapeType, $boundingBox = array("xmin" => 0.0, "ymin" => 0.0, "xmax" => 0.0, "ymax" => 0.0), $FileName = NULL) { |
56 | 59 | $this->shapeType = $shapeType; |
57 | 60 | $this->boundingBox = $boundingBox; |
@@ -59,6 +62,9 @@ discard block |
||
59 | 62 | $this->fileLength = 50; // The value for file length is the total length of the file in 16-bit words (including the fifty 16-bit words that make up the header). |
60 | 63 | } |
61 | 64 | |
65 | + /** |
|
66 | + * @param string $FileName |
|
67 | + */ |
|
62 | 68 | public function loadFromFile($FileName) { |
63 | 69 | $this->FileName = $FileName; |
64 | 70 | |
@@ -72,6 +78,9 @@ discard block |
||
72 | 78 | } |
73 | 79 | } |
74 | 80 | |
81 | + /** |
|
82 | + * @param string $FileName |
|
83 | + */ |
|
75 | 84 | public function saveToFile($FileName = NULL) { |
76 | 85 | if ($FileName != NULL) { |
77 | 86 | $this->FileName = $FileName; |
@@ -88,6 +97,9 @@ discard block |
||
88 | 97 | } |
89 | 98 | } |
90 | 99 | |
100 | + /** |
|
101 | + * @param ShapeRecord $record |
|
102 | + */ |
|
91 | 103 | public function addRecord($record) { |
92 | 104 | if ((isset($this->DBFHeader)) && (is_array($this->DBFHeader))) { |
93 | 105 | $record->updateDBFInfo($this->DBFHeader); |
@@ -351,6 +363,9 @@ discard block |
||
351 | 363 | } |
352 | 364 | } |
353 | 365 | |
366 | + /** |
|
367 | + * @param string $error |
|
368 | + */ |
|
354 | 369 | public function setError($error) { |
355 | 370 | $this->lastError = $error; |
356 | 371 | return false; |
@@ -479,8 +479,8 @@ |
||
479 | 479 | if (!isset($point[$direction])) { |
480 | 480 | continue; |
481 | 481 | } |
482 | - $min = $direction . 'min'; |
|
483 | - $max = $direction . 'max'; |
|
482 | + $min = $direction.'min'; |
|
483 | + $max = $direction.'max'; |
|
484 | 484 | if (!isset($this->SHPData[$min]) || ($this->SHPData[$min] > $point[$direction])) { |
485 | 485 | $this->SHPData[$min] = $point[$direction]; |
486 | 486 | } |