Sokil\Mongo\Document::setGeometryCollection PHP Méthode

setGeometryCollection() public méthode

Requires MongoDB version 2.6 or above with 2dsparse index version 2 to use MultiPoint, MultiLineString, MultiPolygon and GeometryCollection.
public setGeometryCollection ( string $field, array $geometryCollection ) : Document
$field string
$geometryCollection array
Résultat Document
    public function setGeometryCollection($field, array $geometryCollection)
    {
        return $this->setGeometry($field, new \GeoJson\Geometry\GeometryCollection($geometryCollection));
    }