ShapeRecord
class ShapeRecord (View source)
ShapeFile record class.
Properties
int | $recordNumber | ||
string | $lastError | ||
array | $shpData | ||
array | $dbfData |
Methods
__construct(ShapeType $shapeType)
No description
void
void
saveToFile(resource $shpFile, resource|false $dbfFile, int $recordNumber)
Saves record to files.
void
updateDBFInfo(array $header)
Updates DBF data to match header.
void
addPoint(array $point, int $partIndex = 0)
Adds point to a record.
void
deletePoint(int $pointIndex = 0, int $partIndex = 0)
Deletes point from a record.
int|null
getContentLength()
Returns length of content.
void
setError(string $error)
Sets error message.
string
getShapeName()
Returns shape name.
Details
__construct(ShapeType $shapeType)
No description
void
loadFromFile(ShapeFile $shapeFile, resource|false $dbfFile)
Loads record from files.
void
saveToFile(resource $shpFile, resource|false $dbfFile, int $recordNumber)
Saves record to files.
void
updateDBFInfo(array $header)
Updates DBF data to match header.
void
addPoint(array $point, int $partIndex = 0)
Adds point to a record.
void
deletePoint(int $pointIndex = 0, int $partIndex = 0)
Deletes point from a record.
int|null
getContentLength()
Returns length of content.
void
setError(string $error)
Sets error message.
string
getShapeName()
Returns shape name.