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: I cannot use multiple views
q = WorldObject.all()
q.filter('xy >=', db.GeoPt(1, 1))
q.filter('xy <', db.GeoPt(4, 4))
wobjects = q.fetch(1000)
I found this at http://www.spatialdatabox.com/ , which may be interesting as it uses Amazon EC3 to retrieve location data.
this query gives me the wrong world objects: with lat = 9 why? if i limit between 1 and 4? thank
Blockquote
source
share