Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mongodb]

MongoDB is a scalable, high-performance, open source, document-oriented database. It supports a large number of languages and application development platforms.

1
vote
0answers
68 views

What's the most size-efficient spatial database [closed]

I'm configuring a tile server on Apache Mesos. From all the tutorials I've read, I gathered that PostgreSQL and PostGIS is widely used for this purpose. I learned that MongoDb and MySQL Server also ...
1
vote
1answer
13 views

How connect GeoServer to existing Mongo database? [closed]

I'm trying to connect existing database in MongoDB to GeoServer. I connected Mongo to GeoServer, but I can't see exisiting DB. (which I created early by cmd) However, if I create new db from GeoServer,...
1
vote
1answer
15 views

How to find inner points near to corner of rectangular GeoJSON feature?

This question is in continuation of How to check if GeoJSON feature is in rectangular shape and find corner points? I have a collection of GeoJSON features as Polygon & MultiPolygon which are ...
0
votes
0answers
31 views

MongoDB Loc element name duplicate in C#

I have Polygon coordinates inserted into the MongoDB and the code looks like public class PItem { [BsonIgnoreIfDefault] public ObjectId ID { get; set; } [BsonElement("loc")] public ...
1
vote
1answer
90 views

Inserting GeoJson Polygon Coordinates with MongoDB and C#?

I'm using GDAL\ogrinfo.exe to read the tab file which includes polygon/LineString/Point coordinates as a stream using the process. I'll store the coordinates in the MongoDB. My attempt at inserting ...
2
votes
1answer
156 views

How to check if GeoJSON feature is in rectangular shape and find corner points?

I have a collection of GeoJSON features as Polygon & MultiPolygon which are saved in MongoDB. Many among them are in rectangular or square shape, while others are odd shaped. How can I find all ...
3
votes
2answers
278 views

mongo geoIntersects with Spring Data

I created a collection that contains a multipolygon document. I want to write a query in spring data that tells me if a point (lon, lat) intersects the multipolygon. The query in mongoDb is as ...
1
vote
0answers
53 views

Extract info from adf file into json

I have a .adf file which contains altitude data. Is it possible to read and convert this file in JSON format for a next loading on mongoDB? My directory structure is: SRTM_1km_GRD | --- info ...
2
votes
1answer
65 views

Draw arrow on the line with Geoserver and Mongodb data

I'm looking for the guide to draw the arrow at end of line in geoserver. So follow this thread (How do I draw the arrow on the line using SLD of Geoserver?), I've made it work with the shapefile. ...
0
votes
0answers
23 views

Using MongoDB as source with collection filter

I use MongoDB 3.4 as data source with geometries inside a collection, and GeoServer 2.9 from Boundless Suite 4.9.1. I tried matching my collection to a layer, which is ok with a JSON schema mapping. ...
2
votes
0answers
110 views

Geosever : make line string feature from MongoDB collection

I installed the gt-mongo plugin to a geoserver and made a new MongoDB store and here is the collection documents example: { "_id" : ObjectId("5a2543fcccc8fa54bc0822ac"), "loc" : { "...
1
vote
0answers
63 views

Mongo GeoJSON Compliancy

Does MongoDB follow OGC compliancy standards for GeoJSON objects, or some other standard? I have not been able to find a direct statement on this. A follow up to this is whether there are any tools/...
4
votes
1answer
225 views

Problem adding GeoJSON to MongoDB: Loop shares more than one vertex with its parent loop

I am trying to add GeoJSON data into MongoDB, but some of the GeoJSON shapes are failing due to the following error: com.mongodb.MongoWriteException: Can't extract geo keys: ...Loop 1 shares more ...
1
vote
0answers
192 views

It is possible in MongoDB do a query order by the near distance to a given GeoJSON point?

I have in MongoDB a collection with GeoJSON Points that represent places of interest like this: { "name" : "Malba", "type" : "Museum", "location" : { "type" : "Point", "...
1
vote
0answers
181 views

MongoDB: Faster alternative to a basic $geoIntersects query

I've got a whole bunch of political boundaries defined in a MongoDB collection, which are (as you might guess) very complex polygons, with thousands of points. One of the queries I need to run is to ...
3
votes
1answer
137 views

How can I detect if my linestring is near an OSM node?

If I have a linestring of objects (different from the road OSM XML file) and an OSM XML file that contains nodes and ways (extracted down to roads only), how can I detect if my linestring passes ...
1
vote
1answer
215 views

Implementation of Esri ArcGIS Plugin Data Source using Monogdb

I worked with plugin data source using file data and it worked fine as given here. For MongoDB I downloaded the code given in GitHub and compiled it and registered it with categories. How can I use ...
1
vote
0answers
128 views

Single-ringed GeoJSON polygon in Mongodb

I've loaded the Census' zip code data into a mongo database. I can query specific zip codes like this: db.zips.findOne({"properties.ZCTA5CE10":"80205"}) db.zips.findOne({"properties.ZCTA5CE10":{$...
1
vote
0answers
295 views

MongoDB $geointersecting big polygons!

I'm using mongo to store some geolocalized data, with the goal of retriving them using $geointersect. Specifically I have this document stored in my db: { "loc": { "geometry": { "...
5
votes
2answers
578 views

Error when creating spatial index in MongoDB

I am wanting to use MongoDB for some basic spatial calculations (on some fairly large data), but I get an error when trying to create an index on the US Counties shapefile retrieved from the US Census'...
1
vote
0answers
177 views

Load a GeoJSON layer with mixed geometries via QGIS's Python module

I have been able to connect my collection in MongoDB , write and store the collection to as .json file and load the GeoJSON file as a layer by QGIS's Python module unless there are mixed geometries. ...
2
votes
0answers
342 views

Using Python-Flask-MongoDB with Geolocation field running on App Engine?

I'm trying to write an app which would act as a address caching API, so basically it needs to store addresses (geolocations) and later on I could query on a random address and radius and get all the ...
4
votes
1answer
3k views

MongoDB Error Code 16755 - Can't extract geo keys for duplicate vertices and edge crossing

When I try to create an index on geometry db.polygons.createIndex({"geometry":"2dsphere"}), it stops at a certain polygon with the error code 16755. It says it Can't extract geo keys and then either ...
1
vote
0answers
254 views

Python MapServer MapScript & Mongo - Use GeoJSON String Vs File

I have been using Python MapScript bindings for MapServer - and they work great. A new datasource for the application I am working on is MongoDB. I have seen mentions of a MongoDB Driver for ...
4
votes
3answers
10k views

Import GeoJSON into PostGIS

I want to import GeoJSON avaliable in the following dump into PostGIS but I am not able to import it. I already imported geousa data available in this public dump into MongoDB smoothly. Let me know is ...
0
votes
2answers
137 views

Generate GeoJSON from MongDB Query

I want to extract my MongoDB query in a GeoJSON format it order to be able to visualize the result. I use Robomongo, which seems to be able to generate a JSON format. After I run the query, this file ...
7
votes
1answer
269 views

GeoJson structure

I currently designing a table/document database structure and use GeoJson to store points and routes. Currently I choose MongoDb, I will consider PostGIS later. I want to store route info for public ...
0
votes
0answers
1k views

mongodb $geoIntersects query for all documents who's polygon contains a point. no results?

I am trying to find all documents for a point that is within a document's polygon. using mongoTemplate to set up my geo index. mongoTemplate.indexOps(Boundary.class).ensureIndex( new ...
1
vote
0answers
107 views

Storing gdal2tiles output directory in MongoDB, add as XYZ layer in OpenLayers

I am regularly running gdal2tiles.py which generates millions of XYZ image tiles for me. Right now I either store these tiles as flat files on a Windows Server file server or I upload a directory to ...
4
votes
2answers
694 views

How can I clean/fix polygons in a Node.js application?

I am working on a simple Node.js application where users can walk around an area with a mobile device using GPS. This track is stored as a Polygon, but sometimes (due to inaccurate GPS signals or ...
0
votes
0answers
415 views

bounding box - generate coordinates

I will be using mongodb database which supports data on an Euclidean plane (not spherical). I will be performing queries which return all points within a box. For the box I need to specify the upper ...
1
vote
0answers
179 views

GeoServer + MongoDB + Boundless: CQL not working

After adding a collection of jsonArray data to my mongodb database I wanted to filter it with CQL, but it doesn't seem to work. My query goes like this: user.name like '%username%' When I apply this ...
2
votes
1answer
408 views

SQLServer Shapefile Export won't load in MongoDB due to self intersection

I am having an issue loading a handful of GeoJSON files that were created from a shapefile export from SQLServer into MongoDB. This polygon will not load in MongoDB because of two duplicate vertices ...
1
vote
1answer
187 views

Missing columns on WFS (GeoServer/MongoDB)

We are currently checking up on GeoServer over MongoDB on our dev-environment. We are having some difficulties: we have a collection, containing different documents which answer to the same structure (...
2
votes
0answers
757 views

MongoDB to store vehicle tracking information

I am building an app similar to Uber for tracking vehicles. Since the update frequency is so high (accounting for several users), I want to know the general practices involved for making writes faster ...
2
votes
2answers
388 views

Mongodb data store parameter on Opengeo Suite 4.1.1

I'm using Opengeo Suite 4.1.1 with built in Mongodb data store plugin on Ubuntu 12.04 LTS and Windows 8.0. Geoserver 2.5 snapshot and Mongodb 2.6 versions are used here. I was about to try Mapping #...
1
vote
1answer
776 views

Geoserver + MongoDB: connection OK but layers list empty

I setted up Geoserver (ver. 2.5.2) with the MongoDB plugin (ver. 11.2 - http://repo.opengeo.org/org/geotools/gt-mongodb/11.2/). The connection between Geoserver and MongoDB is OK and when I create a ...
2
votes
1answer
4k views

Is MongoDB more suitable than PostGIS as backend for geo-enabled Django website? [closed]

I am trying to select a backend for a geo enabled website written in Django. Is MongoDB an easy possibility or stick with PostGIS? What are the key considerations to choose one or the other if ...
6
votes
3answers
3k views

Importing OSM Data into MongoDB?

Can anyone tell me how to import OSM data in mongoDB step by step ? This is the link to the data http://download.geofabrik.de/europe/germany/baden-wuerttemberg/karlsruhe-regbez.html https://gis....
2
votes
1answer
130 views

Finding point within box using MongoDB?

Suppose the point has coordinates for a search within the box: (long:-155, lat:19) If we have the box: SW - (-170, 10), NE (29,69) that everything is fine and we can find this point because it's ...
2
votes
1answer
291 views

GDB conversion to MongoDB

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). ...
1
vote
0answers
1k views

“Can't extract geo keys from object, malformed geometry?” Possible self intersection?

My '2dsphere' index creation fails at a document. The command i write for creation of index is: db.collection.ensureIndex({'geometry' : "2dsphere"}) It returns the following error: { "err" : "...
1
vote
2answers
655 views

Data structure: mongoengine to GeoJson

I recently posted my first question on StackOverflow, but I think the question was quite extensive and full of potential errors. So I'd begin again, step-by-step, with a much shorter and simplier ...
6
votes
1answer
4k views

What is the best or recommended way to store a GeoJSON FeatureCollection in MongoDB?

The comments in this question: Shapefile to GeoJson conversion using C# raised another one: what is the best way to store a GeoJSON FeatureCollection in MongoDB? Is there any sort of convention when ...
2
votes
3answers
5k views

Shapefile to GeoJson conversion using C#

I have some shapefile which I want to convert to GeoJSON and store in MongoDB for querying. Is it possible to take a shapefile and convert it to GeoJSON format in C#? I have been able to convert ...
2
votes
1answer
2k views

How do you build a MongoDB spatial index for GeoJSON geometry?

I'm attempting to build a spatial index on a collection of features that I created from: ogr2ogr -f GeoJSON out.json ... and then imported into MongoDB (2.6.1). When I attempt to build a spatial ...
1
vote
0answers
754 views

Working with GeoServer and MongoDB

I am trying to get MongoDB working with GeoServer. I am using the BoundlessGeo Suite (comes with GeoServer and other tools) I was able to find the MongoDB extension for GeoServer. Got it installed ...
1
vote
1answer
760 views

How to publish the layer from MongoDB store in GeoServer?

I am using GeoServer 2.5, MongoDB 2.4 Windows 7 64 bit I am imported JSON data file into MongoDB using the below query. mongoimport --db GeoMongodb --collection states --file E:/states.json --...
1
vote
0answers
472 views

mongoDB query not working as expected

My mongoDB collection has all three types of shapes. A point is stored as { 'CE_NO': '_', 'E_NAME': 'RAILWAY BOOKING CENTER', 'SRCTYPE': 'Facility', 'geom': { 'coordinates': [ ...
2
votes
1answer
417 views

Why is the exterior shell of this GeoJSON invalid?

I got some data from Zillow's neighborhood database as shapefiles and converted them to GeoJSON. However, some of the objects appear to be malformed when inserting them into MongoDb. Is there ...