Documentation

BinaryPayload
in package

Represents a request binary payload.

Tags
author

zozlak

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.*']

Properties

Methods

__construct()

public __construct(int $id) : mixed
Parameters
$id : int

backup()

public backup(string $suffix) : void
Parameters
$suffix : string

delete()

public delete([string $suffix = '' ]) : bool
Parameters
$suffix : string = ''
Return values
bool

getPath()

public getPath([bool $create = false ][, string $suffix = '' ]) : string
Parameters
$create : bool = false
$suffix : string = ''
Return values
string

getRequestMetadata()

public getRequestMetadata() : DatasetNode
Return values
DatasetNode

getStorageDir()

public static getStorageDir(int $id, string $path, int $level, int $levelMax) : string
Parameters
$id : int
$path : string
$level : int
$levelMax : int
Return values
string

initGdalFFI()

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
bool

restore()

public restore(string $suffix) : bool
Parameters
$suffix : string
Return values
bool

getRequestMetadataRaw()

private getRequestMetadataRaw() : array<string|int, string|null>
Return values
array<string|int, string|null>

toBytes()

private toBytes(string $number) : int
Parameters
$number : string
Return values
int

updateSpatialSearchGdal()

private updateSpatialSearchGdal() : void

        
On this page

Search results