class GisVisualization

Handles visualization of GIS data

Methods

array
getSettings()

Returns the settings array

get(string $sql_query, array $options, integer $row, integer $pos)

Factory

getByData(array $data, array $options)

Get visualization

bool
hasSrid()

Check if data has SRID

void
init()

All the variable initialization, options handling has to be done here.

string
asSVG()

Get the visualization as a SVG.

void
toFileAsSvg(string $file_name)

Saves as a SVG image to a file.

string
asPng()

Get the visualization as a PNG.

void
toFileAsPng(string $file_name)

Saves as a PNG image to a file.

string
asOl()

Get the code for visualization with OpenLayers.

void
toFileAsPdf(string $file_name)

Saves as a PDF to a file.

string
toImage(string $format)

Convert file to image

void
toFile(string $filename, string $format)

Convert file to given format

void
setUserSpecifiedSettings(array $userSpecifiedSettings)

Set user specified settings

Details

at line 69
array getSettings()

Returns the settings array

Return Value

array the settings array

at line 86
static GisVisualization get(string $sql_query, array $options, integer $row, integer $pos)

Factory

Parameters

string $sql_query SQL to fetch raw data for visualization
array $options Users specified options
integer $row number of rows
integer $pos start position

Return Value

GisVisualization

at line 100
static GisVisualization getByData(array $data, array $options)

Get visualization

Parameters

array $data Raw data, if set, parameters other than $options will be ignored
array $options Users specified options

Return Value

GisVisualization

at line 110
bool hasSrid()

Check if data has SRID

Return Value

bool

at line 150
protected void init()

All the variable initialization, options handling has to be done here.

Return Value

void

at line 328
string asSVG()

Get the visualization as a SVG.

Return Value

string the visualization as a SVG

at line 341
void toFileAsSvg(string $file_name)

Saves as a SVG image to a file.

Parameters

string $file_name File name

Return Value

void

at line 387
string asPng()

Get the visualization as a PNG.

Return Value

string the visualization as a PNG

at line 412
void toFileAsPng(string $file_name)

Saves as a PNG image to a file.

Parameters

string $file_name File name

Return Value

void

at line 428
string asOl()

Get the code for visualization with OpenLayers.

Return Value

string the code for visualization with OpenLayers

at line 478
void toFileAsPdf(string $file_name)

Saves as a PDF to a file.

Parameters

string $file_name File name

Return Value

void

at line 517
string toImage(string $format)

Convert file to image

Parameters

string $format Output format

Return Value

string File

at line 536
void toFile(string $filename, string $format)

Convert file to given format

Parameters

string $filename Filename
string $format Output format

Return Value

void

at line 720
void setUserSpecifiedSettings(array $userSpecifiedSettings)

Set user specified settings

Parameters

array $userSpecifiedSettings User specified settings

Return Value

void