GisVisualization
class GisVisualization (View source)
Handles visualization of GIS data
Constants
private COLORS |
Array of colors to be used for GIS visualizations. |
Methods
No description
No description
No description
No description
No description
No description
Check if data has SRID
Get the visualization as a SVG.
Saves as a SVG image to a file.
Saves as a PNG image to a file.
Get the data for visualization with OpenLayers.
Saves as a PDF to a file.
Convert file to given format
Details
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
static GisVisualization
get(string $sqlQuery, GisVisualizationSettings $options, int $rows, int $pos)
Factory
static GisVisualization
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