geoMultiPolygon.php
Table of Contents
Functions
- geoMultiPolygon() : string
- Build a GeoJSON MultiPolygon geometry.
Functions
geoMultiPolygon()
Build a GeoJSON MultiPolygon geometry.
geoMultiPolygon(array<string|int, mixed>|string $polygons) : string
This helper wraps the ArangoDB AQL function GEO_MULTIPOLYGON(polygons) which
constructs a valid GeoJSON MultiPolygon from an array of polygons. Each polygon
is itself an array of linear rings of [longitude, latitude] pairs, following
the GeoJSON longitude-first convention.
Example AQL usage:
GEO_MULTIPOLYGON([ [ [ [0,0],[1,0],[1,1],[0,0] ] ] ])
Parameters
- $polygons : array<string|int, mixed>|string
-
An array of polygons, or an AQL expression.
Tags
Return values
string —The formatted AQL expression.