TileStache and MongoDB

121 views
Skip to first unread message

d.

unread,
Aug 16, 2012, 9:30:42 PM8/16/12
to tiles...@googlegroups.com
Hi all,
 
is there a way to import GeoJSON data directly to TileStache from a mongoDB? I know this is possible for PostGIS, but I am not able to find something similar for mongodb. The only possibility I am currently aware of is to use node.js/ mongodb.nodejs.driver to connect to the db and query GeoJSON data.
 
Any thoughts? Is there a more direct way?
 
Thanks a lot!
d.

Michal Migurski

unread,
Aug 17, 2012, 1:47:52 AM8/17/12
to tiles...@googlegroups.com
Hi D,

There's currently no way to do this. I'm not likely to add one myself since I've never used MongoDB, but I would be happy to help and include any Python-based effort to add MondoDB support.

Can you explain the use case a little more?

-mike.

----------------------------------------------------------------
michal migurski- mi...@stamen.com
415.558.1610



star wiet

unread,
Aug 17, 2012, 3:20:14 AM8/17/12
to tiles...@googlegroups.com

I am currently concepting a project/map where i want To use only vector data, most of them are going To be geojson features of the geometry type 'point' and because they need To be changeable and added To the map via the User, i wanted To store those in a mongodb.
no i dont know how To query the data in an easy and fast way out of the db to use it in tilestache because i can only add one '.geojson' file to each tile.vector.geojson layer. i thought of merging the different points of the db query together in one geojson file before each rendering. but wanted to know whether there is another way to get elegant query output out of mongodb using tile stache.

thanks! d.

Reply all
Reply to author
Forward
0 new messages