You are here

public function WktGenerator::wktBuildLinestring in Geofield 8

Returns a WKT format linestring feature given an array of points.

Parameters

array $points: The linestring components.

Return value

string The WKT linestring feature.

Overrides WktGeneratorInterface::wktBuildLinestring

1 call to WktGenerator::wktBuildLinestring()
WktGenerator::wktGenerateLinestring in src/WktGenerator.php
Returns a WKT format linestring feature.

File

src/WktGenerator.php, line 204

Class

WktGenerator
Helper class that generates WKT format geometries.

Namespace

Drupal\geofield

Code

public function wktBuildLinestring(array $points) {
  return $this
    ->buildWkt(GEOFIELD_TYPE_LINESTRING, $this
    ->buildLinestring($points));
}