LocalData / localdata-tiles

A tileserver for LocalData
5 stars 2 forks source link

Don't pass invalid bounds to mongodb #151

Open prashtx opened 9 years ago

prashtx commented 9 years ago

For surveys that have extreme coverage, we pass giant bounding polygons to MongoDB. Sometimes those are beyond what MongoDB supports, so we get an error. We should validate the bounds before sending them to the database and handle the situation more gracefully. We can restrict the bounds, issue multiple queries, fail before sending the bad query, or send back a soft-failure tile.