q = WorldObject.all()
# define boundaries
# left
q.filter('x >=', x)
# right
q.filter('x <', x + width)
# top
q.filter('y >=', y)
# bottom
q.filter('y <', y + height)
#q.filter('world', world_key)
wobjects = q.fetch(1000)
I got an error saying I can't use multiple sorts
q = WorldObject.all()
q.filter('xy >=', db.GeoPt(1, 1))
q.filter('xy <', db.GeoPt(4, 4))
wobjects = q.fetch(1000)
I've found this http://www.spatialdatabox.com/ it might be interesting as it uses the Amazon EC3 for retriving geo data.
this query gives me wrong world objects: with lat=9 why? if i limit between 1 and 4? thanks
Blockquote