I don't know the answer to the overall lat/long problem, but I do want to clarify one of your assumptions:
"since there can only be one inequality comparison per property?" is not quite right. In fact, there can only be one *property* that is filtered using inequalities. see the section labeled "Inequality Filters Are Allowed On One Property Only" on this page: http://code.google.com/appengine/docs/datastore/queriesandindexes.html#Restrictions_on_Queries On Oct 28, 2:12 pm, sevenseeker <[EMAIL PROTECTED]> wrote: > Given a bounding box of numbers (here using lat and long), how can I > search within a range of the numbers since there can only be one > inequality comparison per property? > > Here is the query that does not work. > query = db.GqlQuery("SELECT * FROM SpeakingOffer" > "WHERE 96.8 > 100 AND :2 < > location2_lat" > "AND :3 > location1_long AND :4 > location_long" > "ORDER BY entry_time", > lat,lat,long,long) > > Here is the start of another method. > query = db.Query(SpeakingOffer) > query.filter('location1_lat <=', lat) > query.filter('location2_lat >=',lat) > > So what is the recommended method of dealing with this situation? > (outside even of a GIS domain) > > Thanks, > Jason --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
