GisGeometryCollection
class GisGeometryCollection extends GisGeometry (View source)
Handles actions related to GIS GEOMETRYCOLLECTION 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 data related to a row in the GIS dataset to visualize it with OpenLayers.
Generates the WKT with the set of parameters passed by the GIS editor.
Updates the min, max values with the given point set.
Parses the wkt and optional srid from a combined string for the GIS data editor
No description
Return the uppercase GIS type name
Generates parameters for the GIS data editor from the value of the GIS column.
Extracts points, scales and returns them as an array.
Extracts points, scales and returns them as an linear array.
Returns the singleton.
Details
string
prepareRowAsSvg(string $spatial, string $label, array $color, ScaleData $scaleData)
Prepares and returns the code related to a row in the GIS dataset as SVG.
void
prepareRowAsPng(string $spatial, string $label, array $color, ScaleData $scaleData, ImageWrapper $image)
Adds to the PNG image object, the data related to a row in the GIS dataset.
void
prepareRowAsPdf(string $spatial, string $label, array $color, ScaleData $scaleData, TCPDF $pdf)
Adds to the TCPDF instance, the data related to a row in the GIS dataset.
array
prepareRowAsOl(string $spatial, int $srid, string $label, array $color)
Prepares data related to a row in the GIS dataset to visualize it with OpenLayers.
Extent
getExtent(string $wkt)
Get coordinate extent for this wkt.
protected string
getWktCoord(array|null $point, string $empty)
No description
string
generateWkt(array $gisData, int $index, string $empty = '')
Generates the WKT with the set of parameters passed by the GIS editor.
protected Extent
getCoordinatesExtent(string $pointSet)
Updates the min, max values with the given point set.
protected array
parseWktAndSrid(string $value)
Parses the wkt and optional srid from a combined string for the GIS data editor
protected array
getCoordinateParams(string $wkt)
No description
protected string
getType()
Return the uppercase GIS type name
array
generateParams(string $value)
Generates parameters for the GIS data editor from the value of the GIS column.
protected array
extractPoints1d(string $wktCoords, ScaleData|null $scaleData)
Extracts points, scales and returns them as an array.
protected array
extractPoints1dLinear(string $wktCoords, ScaleData|null $scaleData)
Extracts points, scales and returns them as an linear array.
protected array
extractPoints2d(string $wktCoords, ScaleData|null $scaleData)
No description
protected array
extractPoints3d(string $wktCoords, ScaleData|null $scaleData)
No description
protected int
getRandomId()
No description
static GisGeometryCollection
singleton()
Returns the singleton.