I use the ST_Simplify() function in PostGIS, and am moving to a new geostack with mongodb. Does it have a comparable function?


No - there are three (well looks like two really) GeoSpatial commands in MongoDB. One is nearest and the other is search. I guess simplification is left as an exercise for the reader.

  • OK. I thought I was missing something. Many thanks, iant. – mtn.biker Jul 2 '13 at 11:24

You could simplify your data before saving them into mongodb. I use the node.js mapshaper library to achieve this.

The main challenge (in my view) with simplified geojson data is that mongodb does not support more than one index pr. collection.

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.