geoWithin() 공개 메소드

The geometry parameter GeoJSON object or an array corresponding to the geometry's JSON representation.
또한 보기: Builder::geoWithin()
또한 보기: http://docs.mongodb.org/manual/reference/operator/geoIntersects/
public geoWithin ( array | GeoJson\Geometry\Geometry $geometry )
$geometry array | GeoJson\Geometry\Geometry
예제 #1
0
 /**
  * Add $geoWithin criteria with a GeoJSON geometry to the query.
  *
  * The geometry parameter GeoJSON object or an array corresponding to the
  * geometry's JSON representation.
  *
  * @see Expr::geoWithin()
  * @see http://docs.mongodb.org/manual/reference/operator/geoWithin/
  * @param array|Geometry $geometry
  * @return self
  */
 public function geoWithin($geometry)
 {
     $this->expr->geoWithin($geometry);
     return $this;
 }
예제 #2
0
파일: Match.php 프로젝트: doctrine/mongodb
 /**
  * Add $geoWithin criteria with a GeoJSON geometry to the query.
  *
  * The geometry parameter GeoJSON object or an array corresponding to the
  * geometry's JSON representation.
  *
  * @see Expr::geoWithin()
  * @see http://docs.mongodb.org/manual/reference/operator/geoWithin/
  * @param array|Geometry $geometry
  * @return $this
  */
 public function geoWithin(Geometry $geometry)
 {
     $this->query->geoWithin($geometry);
     return $this;
 }