|
@@ 685-687 (lines=3) @@
|
| 682 |
|
$this->SHPData["numparts"] = loadData("V", fread($this->SHPFile, 4)); |
| 683 |
|
$this->SHPData["numpoints"] = loadData("V", fread($this->SHPFile, 4)); |
| 684 |
|
|
| 685 |
|
for ($i = 0; $i < $this->SHPData["numparts"]; $i++) { |
| 686 |
|
$this->SHPData["parts"][$i] = loadData("V", fread($this->SHPFile, 4)); |
| 687 |
|
} |
| 688 |
|
|
| 689 |
|
$firstIndex = ftell($this->SHPFile); |
| 690 |
|
$readPoints = 0; |
|
@@ 742-744 (lines=3) @@
|
| 739 |
|
|
| 740 |
|
fwrite($this->SHPFile, pack("VV", $this->SHPData["numparts"], $this->SHPData["numpoints"])); |
| 741 |
|
|
| 742 |
|
for ($i = 0; $i < $this->SHPData["numparts"]; $i++) { |
| 743 |
|
fwrite($this->SHPFile, pack("V", count($this->SHPData["parts"][$i])-1)); |
| 744 |
|
} |
| 745 |
|
|
| 746 |
|
foreach ($this->SHPData["parts"] as $partData){ |
| 747 |
|
reset($partData["points"]); |