Skip to content

Commit 741e2f7

Browse files
committed
Fixed saving multipoint MZ records
Signed-off-by: Michal Čihař <[email protected]>
1 parent 6d50cf8 commit 741e2f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ShapeRecord.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ private function _saveMultiPointMZRecord($type) {
361361
fwrite($this->SHPFile, pack('dd', $this->SHPData[$type.'min'], $this->SHPData[$type.'max']));
362362

363363
for ($i = 0; $i < $this->SHPData['numpoints']; $i++) {
364-
fwrite($this->SHPFile, Util::packDouble($this->SHPData['points'][$type]));
364+
fwrite($this->SHPFile, Util::packDouble($this->SHPData['points'][$i][$type]));
365365
}
366366
}
367367

0 commit comments

Comments
 (0)