MongoDB

Read

Yes

Write

No

JMap Server can connect to MongoDB to extract spatial data and attributes to be used as a spatial data source.

NoSQL database systems such as MongoDB are widely used in cloud applications. They have made it possible to solve important problems that traditional SQL database management systems have encountered (rigid schemas, lack of scalability, limited performance).

You need to connect to a MongoDB system (https://www.mongodb.com/en) stored locally or in the cloud. MongoDB offers a local application, MongoDB Compass and a web application, MongoDB Atlas that allow you to access data.

The data or documents are organized in collections (analogous to relational database tables) stored in databases that integrate “clusters” (MongoDB deployments). The clusters are organized into projects.

Connection string

Enter the MongoDB cluster connection string that contains your data. To get the connection string: 1. Sign in to a MongoDB Compass or MongoDB Atlas account. 2. Select the project that contains the data you are interested in. 3. In the section of the cluster that contains the data, press Connect. A window opens for you to select the connection method. 4. Select Connect your application to connect JMap to the MongoDB cluster. A window opens displaying the connection parameters. 5. Press Copy in the connection string range. Instructions for completing the chain are displayed in the window. 6. Paste the connection string in the section Connection string in JMap. You must replace <password> with the cluster password and <dbname> with the name of the database that will be used by default for the connection. 7. Press Load. The connection process may take a few moments.

Database

Select the database in which the data collection is located.

Collection

Select the data collection to connect to.

Id Field

Select the attribute that is considered the JMap identifier of the data.

Projection

Select the original projection of the data.

Data loading can take some time due to the lack of structure of the data collections.

Dernière mise à jour

K2 Geospatial 2024