2

I'm interested in converting a GeoDatabase to a MongoDB database. more specifically, given I have a GeoDatabase (.gdb files), how do I convert these files to fit into a MongoDB Database (.bson files).

My tools are the ArcObjects SDK for .NET and MongoDB shell.

Thanks :)

2
  • 1
    This is a very broad question. Are you trying to convert the feature classes to MongoDB collections? Do you need topologies, relationships, other geodatabase specific things? – Evil Genius Jun 20 '14 at 14:06
  • Let's say I want to store my feature classes as GeoJSON for 2dspehere querying in MongoDB. – Tron Jun 21 '14 at 23:33
1

I would try to convert your GeoDatabase to GeoJSON with ogr2ogr then import the .json file to mongodb.

Gdal above version 1.11 has OpenFileGDB support, so this should be possible.

When importing the json to mongodb, make sure that you don't try to import a featurecollection, but a file with the list of features without commas.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.