Documentation

Spatial
in package
implements SpatialInterface

Provides SQL code for extracting geometries from various spatial formats (geoJSON, KML, GML, raster images)

Tags
author

zozlak

Table of Contents

Interfaces

SpatialInterface

Properties

$binary  : bool
$query  : string

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

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
Spatial

fromGml()

Extracts union of all gml:Point, gml:LineString and gml:Polygon from a GML document.

public static fromGml() : Spatial
Return values
Spatial

fromKml()

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
Spatial

fromRaster()

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
Spatial

getSqlQuery()

public getSqlQuery() : string
Return values
string

isInputBinary()

public isInputBinary() : bool
Return values
bool

        
On this page

Search results