<div class="gmail_quote">2012/12/14 Martin Schafran <span dir="ltr"><<a href="mailto:martin@ampelmeter.com" target="_blank">martin@ampelmeter.com</a>></span><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div class="im">what happens if X=X matches the half database?<br>a lot of comparisons.<br><br>filter nodes by bbox<br><br>WHERE ST_MakeBox2D(ST_GeomFromText(?, 4326), ST_GeomFromText(?, 4326)) &&<br>n.geom<br><br>
statement.setString(1, lowerLeft.toString());<br>statement.setString(2, upperRight.toString());<br><br>and then<br>DISTANCE<5km<br></div></blockquote></div><div> </div><div>2012/12/14 Ian Dees <span dir="ltr"><<a href="mailto:ian.dees@gmail.com" target="_blank">ian.dees@gmail.com</a>></span><br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div class="im"><a href="http://postgis.refractions.net/docs/ST_DWithin.html" target="_blank">http://postgis.refractions.net/docs/ST_DWithin.html</a> </div>
</blockquote></div><div> </div><div>2012/12/15 Derick Rethans <span dir="ltr"><<a href="mailto:osm@derickrethans.nl" target="_blank">osm@derickrethans.nl</a>></span><br></div><div class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div class="im">

The 2D spatial stuff in MongoDB is simple, but it *is* really fast. What<br>
sort of operations are you thinking of running exactly?<br>
<br></div></blockquote><div> </div><div>This is a good point. I know more or less how PostGIS works and how I should structure the query.</div><div> </div><div>My question was more related to fastness. The type of queries will just be some "geoNear" queries, just to get all the points within a bounding box that match certain value.</div>
</div><div> </div><div>I know that PostGIS is a better GIS and provides far more features, but just for geoNear queries and taking into account that MongoDB (for what I've been reading) is supposed to be more web-scalable and easier to export to JSON I think I will try booth.</div>
<div> </div><div>Thank you very much to all for all the advice. I will try booth of them (and also to ) and hope some testing will determine which suits better.<br clear="all"><br>-- <br></div><div><font color="#666666">Ander Pijoan Lamas<br>
Research Assistant, Deustotech</font></div><div><font color="#666666">Computer Science Engineer</font></div><div><font color="#666666">University of Deusto</font></div><div><font color="#666666">E-mail: </font><a href="mailto:ander.pijoan@deusto.es" target="_blank"><font color="#666666">ander.pijoan@deusto.es</font></a></div>
<div><font color="#666666">Phone: +34 664471228<br>in: <a href="http://www.linkedin.com/profile/view?id=162888312" target="_blank">http://www.linkedin.com/profile/view?id=162888312</a><br></font></div><br>