You are here

protected function WktGenerator::buildPoint in Geofield 8

Generates a point coordinates.

Parameters

array $point: A Lon Lat array.

Return value

string The structured point coordinates.

4 calls to WktGenerator::buildPoint()
WktGenerator::buildLinestring in src/WktGenerator.php
Builds a Linestring format string from an array of point components.
WktGenerator::buildPolygon in src/WktGenerator.php
Builds a polygon format string from an array of point components.
WktGenerator::generateMultipoint in src/WktGenerator.php
Generates a multipoint coordinates.
WktGenerator::wktBuildPoint in src/WktGenerator.php
Returns a WKT format point feature given a point.

File

src/WktGenerator.php, line 107

Class

WktGenerator
Helper class that generates WKT format geometries.

Namespace

Drupal\geofield

Code

protected function buildPoint(array $point) {
  return implode(' ', $point);
}