public function WktGenerator::wktGenerateLinestring in Geofield 8
Returns a WKT format linestring feature.
Parameters
array $start: The starting point. If not provided, will be randomly generated.
int $segments: Number of segments. If not provided, will be randomly generated.
Return value
string The WKT linestring feature.
Overrides WktGeneratorInterface::wktGenerateLinestring
File
- src/
WktGenerator.php, line 180
Class
- WktGenerator
- Helper class that generates WKT format geometries.
Namespace
Drupal\geofieldCode
public function wktGenerateLinestring(array $start = NULL, $segments = NULL) {
return $this
->wktBuildLinestring($this
->generateLinestring($start, $segments));
}