$geometryThe
$geometryoperator specifies a GeoJSON geometry for use with the following geospatial query operators:$geoWithin,$geoIntersects,$near, and$nearSphere.$geometryusesEPSG:4326as the default coordinate reference system (CRS).To specify GeoJSON objects with the default CRS, use the following prototype for
$geometry:$geometry: { type: "<GeoJSON object type>", coordinates: [ <coordinates> ] } 사용자 지정 MongoDB CRS를 사용하여 단일 링 GeoJSON 다각형을 지정하려면 다음 프로토타입을 사용합니다(
$geoWithin및$geoIntersects에만 사용 가능).$geometry: { type: "Polygon", coordinates: [ <coordinates> ], crs: { type: "name", properties: { name: "urn:x-mongodb:crs:strictwinding:EPSG:4326" } } } 사용자 지정 MongoDB 좌표 참조 시스템에는 엄격한 시계 반대 방향 와인딩 순서가 있습니다.
중요
위도 및 경도 좌표를 지정하는 경우 경도를 먼저 나열한 다음 위도를 나열합니다.
유효한 경도 값은
-180~180입니다(둘 모두 포함).유효한 위도 값은
-90~90입니다(둘 모두 포함).