PostGIS uses R-Tree index over GIST.
I’m trying to understand if it is possible to use couchDB for storing the osm geo data.
couchdb is a schema less db for storing documents. Each document store data as encoded as JSON.
It uses B-Tree index so the only way I know to enable spatial index is to use space-filling-curves (z-order, morton codes)
to translate a lat,lng to a number and then index all the numbers using a B-Tree.
My question is why PostGIS choose to use R-Tree. Using z-order with B-Tree seem simpler and supported out of the box
by most databases. Is there a significant performance difference or other issues against using z-order?