SetaPDF_Extractor_Storage_SpatialStorage The implementation of a spatial storage

File: /SetaPDF v2/Extractor/Storage/SpatialStorage.php

Class hierarchy

Implements

Summary

Properties

$_cellSize

The given cell-size that will be used to hash the points.

$_cells

The cells.

$_hashes

All hashes.

$_objects


Methods

__construct()

The constructor.

Parameters
$cellSize : int|float
 

_getCoordinateRange()

_getHashes()

Gets the hashes for a storage entry.

Parameters
$entry : SetaPDF_Extractor_Storage_StorageEntry
 

_hash()

Creates a hash for a given point.

Parameters
$p : SetaPDF_Core_Geometry_Point
 

clear()

Removes all entries from the storage and cleans up.

getFirstAvailable()

Get the first available storage-entry or false.

getIntersecting()

insert()

Create a new entry for the data using the geometry and inserts it into the storage.

Parameters
$geometry : SetaPDF_Core_Geometry_Point|SetaPDF_Core_Geometry_Rectangle
 
$data : mixed