Wasn't it pocci who wrote: >UL_LON = upper let lon >UL_LAT = upper left lat, etc > > >(UL_LON, UL_LAT) (UR_LON, UR_LAT) >+---------------------------------------------+ >| | >| | >| + | >| LON,PT_LAT) | >| | >| | >+---------------------------------------------+ >(LL_LON, LL_LAT) (LR_LON, LR_LAT) > >How do I find out if (PT_LON, PT_LAT) is inside the square ?
Under the Mercator projection, UL_LAT=UR_LAT, UL_LON=LL_LON, LL_LAT=LR_LAT and LR_LON=UR_LON, so (as long as your rectangle doesn't cross longitude 180) you can just select ... where LON>=UL_LON and LON<=UR_LON and PT_LAT>=LL_LAT and PT_LAT<=UL_LAT. -- http://econym.googlepages.com/index.htm The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
