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 data related to a row in the GIS dataset to visualize it with OpenLayers.
No description
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
Generate coordinate parameters for the GIS data editor from the value of the GIS column.
Return the uppercase GIS type name
Generate 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.
No description
No description
No description
Details
abstract 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.
abstract 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.
abstract 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.
abstract array
prepareRowAsOl(string $spatial, int $srid, string $label, array $color)
Prepares the data related to a row in the GIS dataset to visualize it with OpenLayers.
abstract Extent
getExtent(string $wkt)
Get coordinate extent for this wkt.
protected string
getWktCoord(array|null $point, string $empty)
No description
abstract 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
abstract protected array
getCoordinateParams(string $wkt)
Generate coordinate parameters for the GIS data editor from the value of the GIS column.
abstract protected string
getType()
Return the uppercase GIS type name
array
generateParams(string $value)
Generate 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