protected function WktGenerator::buildMultiCoordinates in Geofield 8
Builds a multi-geometry coordinates string given an array of features.
Parameters
array $coordinates: The coordinates to generate the multi-geometry.
Return value
string The multi-geometry coordinates string.
4 calls to WktGenerator::buildMultiCoordinates()
- WktGenerator::buildMultipolygon in src/
WktGenerator.php - Builds a multipolygon coordinates.
- WktGenerator::generateMultilinestring in src/
WktGenerator.php - Generates a multilinestring coordinates.
- WktGenerator::generateMultipoint in src/
WktGenerator.php - Generates a multipoint coordinates.
- WktGenerator::generateMultipolygon in src/
WktGenerator.php - Generates a multipolygon coordinates.
File
- src/
WktGenerator.php, line 94
Class
- WktGenerator
- Helper class that generates WKT format geometries.
Namespace
Drupal\geofieldCode
protected function buildMultiCoordinates(array $coordinates) {
return '(' . implode('), (', $coordinates) . ')';
}