Sokil\Mongo\Document::setMultyPolygon PHP 메소드

setMultyPolygon() 공개 메소드

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
리턴 Document
    public function setMultyPolygon($field, array $polygonsArray)
    {
        return $this->setGeometry($field, new \GeoJson\Geometry\MultiPolygon($polygonsArray));
    }