GisMultiLineString
class GisMultiLineString extends GisGeometry (View source)
Handles actions related to GIS MULTILINESTRING objects
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 JavaScript related to a row in the GIS dataset to visualize it with OpenLayers.
Scales each row.
Generate 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.
Generate 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.
Returns the singleton.
Generate the WKT for the data from ESRI shape files.
Details
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.
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.
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.
string
prepareRowAsOl(string $spatial, int $srid, string $label, array $color, array $scale_data)
Prepares JavaScript related to a row in the GIS dataset to visualize it with OpenLayers.
array
scaleRow(string $spatial)
Scales each row.
string
generateWkt(array $gis_data, int $index, string|null $empty = '')
Generate 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, int $index = -1)
Generate parameters for the GIS data editor from the value of the GIS column.
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
static GisMultiLineString
singleton()
Returns the singleton.
string
getShape(array $row_data)
Generate the WKT for the data from ESRI shape files.