![]() ![]() Use 2d indexes for points stored on a two-dimensional plane.Ģdsphere allows you to specify geometries for points, lines, and polygons in the GeoJSON format. Distance calculations using 2sphere indexes, therefore, take the shape of the earth into account and provide a more accurate treatment of distance between, for example, two cities, than do 2d indexes. This datum model the surface of the earth as an oblate spheroid, meaning that there is some flattening at the poles. 2dsphere indexes work with spherical geometries that model the surface of the earth based on the WGS84 datum. MongoDB has two types of geospatial indexes: 2dsphere and 2d. Here, executionStats mode helps us understand the effect of using an index to satisfy queries. In JavaScript, documents are represented as objects:Ĭomplex documents will contain multiple key/value pairs: ![]() It is represented by a map, hash, or dictionary.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |