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

setMultyPolygon() public méthode

Polygon is array of line rings. Line ring is closed line string (first and last point same). Line string is array of points. Requires MongoDB version 2.6 or above with 2dsparse index version 2 to use MultiPoint, MultiLineString, MultiPolygon and GeometryCollection.
public setMultyPolygon ( string $field, array $polygonsArray ) : Document
$field string
$polygonsArray array array of polygons
Résultat Document
    public function setMultyPolygon($field, array $polygonsArray)
    {
        return $this->setGeometry($field, new \GeoJson\Geometry\MultiPolygon($polygonsArray));
    }