Skip to content

Commit

Permalink
Minorfix/mongo db doc (#1319)
Browse files Browse the repository at this point in the history
* updated mongoDB

* Updated mongo section
  • Loading branch information
krishnaglodha authored Aug 18, 2023
1 parent db4e819 commit cba5563
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/examples/mongo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This config is only for local development and testing.

## MongoDB

- official MongoDB: **5.0.3** on **Ubuntu Focal**
- official MongoDB: **6.0.7** on **Ubuntu Focal**
- ports **27017**

## Building and Running
Expand Down
8 changes: 8 additions & 0 deletions docs/source/data-publishing/ogcapi-features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,14 @@ MongoDB
.. note::
Mongo 5 or greater is supported.

`MongoDB <https://www.mongodb.com/>`_ is a powerful and versatile NoSQL database that provides numerous advantages, making it a preferred choice for many applications. One of the main reasons to use MongoDB is its ability to handle large volumes of unstructured data, making it ideal for managing diverse data types such as text, geospatial, and multimedia data. Additionally, MongoDB's flexible document model allows for easy schema evolution, enabling developers to iterate quickly and adapt to changing requirements.

`GeoJSON <https://www.mongodb.com/docs/manual/reference/geojson/>`_ support is available officially by MongoDB , thus a GeoJSON file can be added to MongoDB using following command

`mongoimport --db test -c points --file "path/to/file.geojson" --jsonArray`

Here `test` is the name of database , `points` is the target collection name.

* each document must be a GeoJSON Feature, with a valid geometry.

.. code-block:: yaml
Expand Down

0 comments on commit cba5563

Please sign in to comment.