<div dir="ltr">Hi,<br><br>I posted this question in the forum but I think that the list is more active.<br><br>PostGIS uses R-Tree index over GIST.<br>I'm trying to understand if it is possible to use couchDB for storing and indexing the osm data.<br>
couchdb is a schema less db for storing documents. Each document store data encoded as JSON.<br>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)<br>
to translate a lat,lng to a number and then index all the numbers using a B-Tree.<br><br>My question is why PostGIS choose to use R-Tree over GIST. Using z-order with B-Tree seem simpler and supported out of the box<br>by most databases. Is there a significant performance difference or other issues against using z-order?<br>
<br><a href="http://couchdb.apache.org/">http://couchdb.apache.org/</a> <br><a href="http://en.wikipedia.org/wiki/Z-order_(curve)">http://en.wikipedia.org/wiki/Z-order_(curve)</a><br><a href="http://postgis.refractions.net/documentation/manual-1.3/ch03.html#id2741805">http://postgis.refractions.net/documentation/manual-1.3/ch03.html#id2741805</a><br>
<br>Thanks<br></div>