Hi.
This lib handles shape files with no dbf files if dbase is not installed on the server. If dbase is installed and no dbf is found then lib bails out and doesn't process the shape file.
dbase is installed on our server but some of our clients do not include a dbf file so we cannot process their Shape file. Bit of a bummer!
It would be better, IMHO, to just proceed without dbf just like what happens without dbase.
So it basically boilds down to changing the following code
$dbfName = $this->getFilename('.dbf');
if (! is_readable($dbfName)) {
$this->setError(sprintf('It wasn\'t possible to find the DBase file "%s"', $dbfName));
return false;
}
so that it returns true;
$dbfName = $this->getFilename('.dbf');
if (! is_readable($dbfName)) {
$this->setError(sprintf('It wasn\'t possible to find the DBase file "%s"', $dbfName));
return true;
}
What do you think?
Hi.
This lib handles shape files with no dbf files if
dbaseis not installed on the server. Ifdbaseis installed and no dbf is found then lib bails out and doesn't process the shape file.dbaseis installed on our server but some of our clients do not include a dbf file so we cannot process their Shape file. Bit of a bummer!It would be better, IMHO, to just proceed without
dbfjust like what happens withoutdbase.So it basically boilds down to changing the following code
so that it returns
true;What do you think?