Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cd44c8ae14
Fetching contributors…

Cannot retrieve contributors at this time

file 48 lines (27 sloc) 0.868 kb

mongo mapnik plugin

This is a experimental connector to mongodb point data in the form of a mapnik C++ plugin.

It is only a proof of concept at this point.


1) Install mongodb - you need libmongoclient (c++ lib)

Recommended to install from

git clone
cd mongo
scons install .

I had to edit a few paths in SConstruct to get it working....

More details at

2) Start mongodb

In another terminal:

mkdir db
cd db
mongod --dbpath .

3) Import a shapefile

In another terminal:

cd test/

4) Run

cd test/


If you get:

RuntimeError: field not found, expected type 2

It likely means you don't have a proper 2d index created.

Something went wrong with that request. Please try again.