GisGeometry
abstract class GisGeometry (View source)
Base class for all GIS data type classes.
Methods
Prepares and returns the code related to a row in the GIS dataset as SVG.
Adds to the PNG image object, the data related to a row in the GIS dataset.
Adds to the TCPDF instance, the data related to a row in the GIS dataset.
Prepares the JavaScript related to a row in the GIS dataset to visualize it with OpenLayers.
Scales each row.
Generates the WKT with the set of parameters passed by the GIS editor.
Returns OpenLayers.Bounds object that correspond to the bounds of GIS data.
Updates the min, max values with the given point set.
Generates parameters for the GIS data editor from the value of the GIS column.
Extracts points, scales and returns them as an array.
Generates JavaScript for adding an array of polygons to OpenLayers.
Generates JavaScript for adding points for OpenLayers polygon.
Generates JavaScript for adding an array of LineString or LineRing to OpenLayers.
Generates JavaScript for adding a LineString or LineRing to OpenLayers.
Generates JavaScript for adding an array of points to OpenLayers.
Generates JavaScript for adding a point to OpenLayers.
No description
Details
abstract string
prepareRowAsSvg(string $spatial, string $label, array $color, array $scale_data)
Prepares and returns the code related to a row in the GIS dataset as SVG.
abstract ImageWrapper
prepareRowAsPng(string $spatial, string|null $label, array $color, array $scale_data, ImageWrapper $image)
Adds to the PNG image object, the data related to a row in the GIS dataset.
abstract TCPDF
prepareRowAsPdf(string $spatial, string|null $label, array $color, array $scale_data, TCPDF $pdf)
Adds to the TCPDF instance, the data related to a row in the GIS dataset.
abstract string
prepareRowAsOl(string $spatial, int $srid, string $label, array $color, array $scale_data)
Prepares the JavaScript related to a row in the GIS dataset to visualize it with OpenLayers.
abstract array
scaleRow(string $spatial)
Scales each row.
abstract string
generateWkt(array $gis_data, int $index, string|null $empty = '')
Generates the WKT with the set of parameters passed by the GIS editor.
protected string
getBoundsForOl(int $srid, array $scale_data)
Returns OpenLayers.Bounds object that correspond to the bounds of GIS data.
protected array
setMinMax(string $point_set, array $min_max)
Updates the min, max values with the given point set.
array
generateParams(string $value)
Generates parameters for the GIS data editor from the value of the GIS column.
This method performs common work. More specific work is performed by each of the geom classes.
protected array
extractPoints(string $point_set, array|null $scale_data, bool $linear = false)
Extracts points, scales and returns them as an array.
protected string
getPolygonArrayForOpenLayers(array $polygons, int $srid)
Generates JavaScript for adding an array of polygons to OpenLayers.
protected string
getPolygonForOpenLayers(array $polygon, int $srid)
Generates JavaScript for adding points for OpenLayers polygon.
protected string
getLineArrayForOpenLayers(array $lines, int $srid, bool $is_line_string = true)
Generates JavaScript for adding an array of LineString or LineRing to OpenLayers.
protected string
getLineForOpenLayers(array $points_arr, int $srid, bool $is_line_string = true)
Generates JavaScript for adding a LineString or LineRing to OpenLayers.
protected string
getPointsArrayForOpenLayers(array $points_arr, int $srid)
Generates JavaScript for adding an array of points to OpenLayers.
protected string
getPointForOpenLayers(array $point, int $srid)
Generates JavaScript for adding a point to OpenLayers.
protected int
getRandomId()
No description