BinaryPayload
in package
Represents a request binary payload.
Tags
Table of Contents
Constants
- GDAL_CDEF = ' typedef void *GDALDatasetH; typedef void *OGRSpatialReferenceH; typedef enum {GA_ReadOnly = 0, GA_Update = 1} GDALAccess; typedef enum {CE_None = 0, CE_Log = 1, CE_Warning = 2, CE_Failure = 3, CE_Fatal = 4} CPLErr; void GDALAllRegister(); GDALDatasetH GDALOpen(const char *pszFilename, int eAccess); int GDALGetRasterXSize(GDALDatasetH); int GDALGetRasterYSize(GDALDatasetH); CPLErr GDALGetGeoTransform(GDALDatasetH, double*); OGRSpatialReferenceH GDALGetSpatialRef(GDALDatasetH); const char *OSRGetAuthorityCode(OGRSpatialReferenceH hSRS, const char *pszTargetKey); '
- GDAL_PATHS = ['/usr/lib/libgdal.so.*', '/usr/lib64/libgdal.so.*', '/usr/lib/*/libgdal.so.*', '/usr/lib64/*/libgdal.so.*']
- GDAL_READONLY = 0
- TS_VECTOR_MAX_LEN = 1048575
Properties
- $gdal : FFI
- $gdalRaster : CData
- $hash : string|null
- $id : int
- $imagePxHeight : int
- $imagePxWidth : int
- $size : int
- $tmpPath : string
Methods
- __construct() : mixed
- __destruct() : mixed
- backup() : void
- delete() : bool
- getHeaders() : array<string, mixed>
- getPath() : string
- getRequestMetadata() : DatasetNode
- getStorageDir() : string
- initGdalFFI() : bool
- Tries to initialize the GDAL's FFI interface.
- restore() : bool
- upload() : void
- getRequestMetadataRaw() : array<string|int, string|null>
- readImageDimensions() : void
- toBytes() : int
- updateFts() : bool
- updateSpatialSearch() : void
- updateSpatialSearchGdal() : void
- updateSpatialSearchPostgis() : void
Constants
GDAL_CDEF
public
mixed
GDAL_CDEF
= '
typedef void *GDALDatasetH;
typedef void *OGRSpatialReferenceH;
typedef enum {GA_ReadOnly = 0, GA_Update = 1} GDALAccess;
typedef enum {CE_None = 0, CE_Log = 1, CE_Warning = 2, CE_Failure = 3, CE_Fatal = 4} CPLErr;
void GDALAllRegister();
GDALDatasetH GDALOpen(const char *pszFilename, int eAccess);
int GDALGetRasterXSize(GDALDatasetH);
int GDALGetRasterYSize(GDALDatasetH);
CPLErr GDALGetGeoTransform(GDALDatasetH, double*);
OGRSpatialReferenceH GDALGetSpatialRef(GDALDatasetH);
const char *OSRGetAuthorityCode(OGRSpatialReferenceH hSRS, const char *pszTargetKey);
'
GDAL_PATHS
public
mixed
GDAL_PATHS
= ['/usr/lib/libgdal.so.*', '/usr/lib64/libgdal.so.*', '/usr/lib/*/libgdal.so.*', '/usr/lib64/*/libgdal.so.*']
GDAL_READONLY
public
mixed
GDAL_READONLY
= 0
TS_VECTOR_MAX_LEN
public
mixed
TS_VECTOR_MAX_LEN
= 1048575
Properties
$gdal
private
static FFI
$gdal
$gdalRaster
private
CData
$gdalRaster
$hash
private
string|null
$hash
$id
private
int
$id
$imagePxHeight
private
int
$imagePxHeight
$imagePxWidth
private
int
$imagePxWidth
$size
private
int
$size
$tmpPath
private
string
$tmpPath
Methods
__construct()
public
__construct(int $id) : mixed
Parameters
- $id : int
__destruct()
public
__destruct() : mixed
backup()
public
backup(string $suffix) : void
Parameters
- $suffix : string
delete()
public
delete([string $suffix = '' ]) : bool
Parameters
- $suffix : string = ''
Return values
boolgetHeaders()
public
getHeaders() : array<string, mixed>
Tags
Return values
array<string, mixed>getPath()
public
getPath([bool $create = false ][, string $suffix = '' ]) : string
Parameters
- $create : bool = false
- $suffix : string = ''
Return values
stringgetRequestMetadata()
public
getRequestMetadata() : DatasetNode
Return values
DatasetNodegetStorageDir()
public
static getStorageDir(int $id, string $path, int $level, int $levelMax) : string
Parameters
- $id : int
- $path : string
- $level : int
- $levelMax : int
Return values
stringinitGdalFFI()
Tries to initialize the GDAL's FFI interface.
public
static initGdalFFI([string $gdalSoPath = '' ]) : bool
Using the GDAL allows efficient image dimensions extraction and raster files spatial indexing.
Parameters
- $gdalSoPath : string = ''
Return values
boolrestore()
public
restore(string $suffix) : bool
Parameters
- $suffix : string
Return values
boolupload()
public
upload() : void
getRequestMetadataRaw()
private
getRequestMetadataRaw() : array<string|int, string|null>
Return values
array<string|int, string|null>readImageDimensions()
private
readImageDimensions() : void
toBytes()
private
toBytes(string $number) : int
Parameters
- $number : string
Return values
intupdateFts()
private
updateFts() : bool
Return values
boolupdateSpatialSearch()
private
updateSpatialSearch(SpatialInterface $spatial) : void
Parameters
- $spatial : SpatialInterface
updateSpatialSearchGdal()
private
updateSpatialSearchGdal() : void
updateSpatialSearchPostgis()
private
updateSpatialSearchPostgis(SpatialInterface $spatial) : void
Parameters
- $spatial : SpatialInterface