public function WktGenerator::wktGeneratePoint in Geofield 8
Returns a WKT format point feature.
Parameters
array $point: A Lon Lat array. By default create a random pair.
Return value
string The WKT point feature.
Overrides WktGeneratorInterface::wktGeneratePoint
File
- src/
WktGenerator.php, line 114
Class
- WktGenerator
- Helper class that generates WKT format geometries.
Namespace
Drupal\geofieldCode
public function wktGeneratePoint(array $point = NULL) {
$point = $point ? $point : $this
->randomPoint();
return $this
->wktBuildPoint($point);
}