class GisVisualization (View source)

Handles visualization of GIS data

Constants

private COLORS

Array of colors to be used for GIS visualizations.

Methods

int
getWidth()

No description

int
getHeight()

No description

int
getPos()

No description

int
getRows()

No description

string
getSpatialColumn()

No description

string|null
getLabelColumn()

No description

get(string $sqlQuery, GisVisualizationSettings $options, int $rows, int $pos)

Factory

getByData(array $data, GisVisualizationSettings $options)

Get visualization

bool
hasSrid()

Check if data has SRID

string
asSVG()

Get the visualization as a SVG.

void
toFileAsSvg(string $fileName)

Saves as a SVG image to a file.

void
toFileAsPng(string $fileName)

Saves as a PNG image to a file.

array
asOl()

Get the data for visualization with OpenLayers.

void
toFileAsPdf(string $fileName)

Saves as a PDF to a file.

void
toFile(string $filename, string $format)

Convert file to given format

Details

int getWidth()

No description

Return Value

int

int getHeight()

No description

Return Value

int

int getPos()

No description

Return Value

int

int getRows()

No description

Return Value

int

string getSpatialColumn()

No description

Return Value

string

string|null getLabelColumn()

No description

Return Value

string|null

static GisVisualization get(string $sqlQuery, GisVisualizationSettings $options, int $rows, int $pos)

Factory

Parameters

string $sqlQuery

SQL to fetch raw data for visualization

GisVisualizationSettings $options
int $rows

number of rows

int $pos

start position

Return Value

GisVisualization

static GisVisualization getByData(array $data, GisVisualizationSettings $options)

Get visualization

Parameters

array $data

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

GisVisualizationSettings $options

Return Value

GisVisualization

bool hasSrid()

Check if data has SRID

Return Value

bool

string asSVG()

Get the visualization as a SVG.

Return Value

string

the visualization as a SVG

void toFileAsSvg(string $fileName)

Saves as a SVG image to a file.

Parameters

string $fileName

File name

Return Value

void

void toFileAsPng(string $fileName)

Saves as a PNG image to a file.

Parameters

string $fileName

File name

Return Value

void

array asOl()

Get the data for visualization with OpenLayers.

Return Value

array

void toFileAsPdf(string $fileName)

Saves as a PDF to a file.

Parameters

string $fileName

File name

Return Value

void

void toFile(string $filename, string $format)

Convert file to given format

Parameters

string $filename Filename
string $format

Output format

Return Value

void