|
@@ 312-319 (lines=8) @@
|
| 309 |
|
@dbase_pack($this->DBFFile); |
| 310 |
|
} |
| 311 |
|
|
| 312 |
|
function _openSHPFile($toWrite = false) { |
| 313 |
|
$this->SHPFile = @fopen(str_replace('.*', '.shp', $this->FileName), ($toWrite ? "wb+" : "rb")); |
| 314 |
|
if (!$this->SHPFile) { |
| 315 |
|
return $this->setError(sprintf("It wasn't possible to open the Shape file '%s'", str_replace('.*', '.shp', $this->FileName))); |
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
return TRUE; |
| 319 |
|
} |
| 320 |
|
|
| 321 |
|
function _closeSHPFile() { |
| 322 |
|
if ($this->SHPFile) { |
|
@@ 328-335 (lines=8) @@
|
| 325 |
|
} |
| 326 |
|
} |
| 327 |
|
|
| 328 |
|
function _openSHXFile($toWrite = false) { |
| 329 |
|
$this->SHXFile = @fopen(str_replace('.*', '.shx', $this->FileName), ($toWrite ? "wb+" : "rb")); |
| 330 |
|
if (!$this->SHXFile) { |
| 331 |
|
return $this->setError(sprintf("It wasn't possible to open the Index file '%s'", str_replace('.*', '.shx', $this->FileName))); |
| 332 |
|
} |
| 333 |
|
|
| 334 |
|
return TRUE; |
| 335 |
|
} |
| 336 |
|
|
| 337 |
|
function _closeSHXFile() { |
| 338 |
|
if ($this->SHXFile) { |