setasign\SetaPDF2\Extractor\Storage
SpatialStorage The implementation of a spatial storage
File: /SetaPDF v2/Extractor/Storage/SpatialStorage.php
Old class name (alias):
\SetaPDF_Extractor_Storage_SpatialStorage
Class hierarchy
Implements
Summary
Properties
$_cellSize
protected int|float SpatialStorage::$_cellSize
The given cell-size that will be used to hash the points.
$_objects
protected SpatialStorage::$_objects = array()
Methods
_getCoordinateRange()
Creates a coordinate range for a geometry.
Parameters
_getHashes()
get()
Get all entries intersecting with the given geometry.
Parameters
getIntersecting()
insert()
public SpatialStorage::insert (
\setasign\SetaPDF2\Core\Geometry\Point|\setasign\SetaPDF2\Core\Geometry\Rectangle $geometry,
mixed $data
): StorageEntrymixed $data
Create a new entry for the data using the geometry and inserts it into the storage.
Parameters
- $geometry : \setasign\SetaPDF2\Core\Geometry\Point|\setasign\SetaPDF2\Core\Geometry\Rectangle
- $data : mixed