Oihana PHP Arango

geoMultiLineString.php

Table of Contents

Functions

geoMultiLineString()  : string
Build a GeoJSON MultiLineString geometry.

Functions

geoMultiLineString()

Build a GeoJSON MultiLineString geometry.

geoMultiLineString(array<string|int, mixed>|string $lines) : string

This helper wraps the ArangoDB AQL function GEO_MULTILINESTRING(lines) which constructs a valid GeoJSON MultiLineString from an array of line strings. Each line is an array of [longitude, latitude] pairs, following the GeoJSON longitude-first convention.

Example AQL usage:

GEO_MULTILINESTRING([ [ [2.35,48.85], [4.83,45.76] ], [ [1.44,43.60], [5.37,43.29] ] ])
Parameters
$lines : array<string|int, mixed>|string

An array of line strings, or an AQL expression.

Tags
example
use function oihana\arango\db\functions\geo\geoMultiLineString;

$expr = geoMultiLineString( 'doc.routes' );
// Produces: 'GEO_MULTILINESTRING(doc.routes)'
see
https://docs.arangodb.com/stable/aql/functions/geo/#geo_multilinestring
since
1.0.0
author

Marc Alcaraz

Return values
string

The formatted AQL expression.

On this page

Search results