Spatial
in package
implements
SpatialInterface
Provides SQL code for extracting geometries from various spatial formats (geoJSON, KML, GML, raster images)
Tags
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- fromGeojson() : Spatial
- Extracts union of all geometry properties no matter of their location in a geoJSON.
- fromGml() : Spatial
- Extracts union of all gml:Point, gml:LineString and gml:Polygon from a GML document.
- fromKml() : Spatial
- Extracts union of all kml:Point, kml:LineString, kml:Polygon from a KML XML document.
- fromRaster() : Spatial
- Extracts convex hull of a GDAL-supported raster excluding nodata pixels.
- getSqlQuery() : string
- isInputBinary() : bool
Properties
$binary
private
bool
$binary
$query
private
string
$query
Methods
__construct()
public
__construct(string $query, bool $binary) : mixed
Parameters
- $query : string
- $binary : bool
fromGeojson()
Extracts union of all geometry properties no matter of their location in a geoJSON.
public
static fromGeojson() : Spatial
Return values
SpatialfromGml()
Extracts union of all gml:Point, gml:LineString and gml:Polygon from a GML document.
public
static fromGml() : Spatial
Return values
SpatialfromKml()
Extracts union of all kml:Point, kml:LineString, kml:Polygon from a KML XML document.
public
static fromKml() : Spatial
It's worth noting this provides an implicit support for kml:MultiGeometry as well.
Return values
SpatialfromRaster()
Extracts convex hull of a GDAL-supported raster excluding nodata pixels.
public
static fromRaster() : Spatial
For multiple band rasters all bands are considered..
NULL is returned if the raster projection SRID is unknown.
Return values
SpatialgetSqlQuery()
public
getSqlQuery() : string
Return values
stringisInputBinary()
public
isInputBinary() : bool