U-Shaped countries/counties would also have the same effect

Haiti would be be an example of this
http://maps.google.co.uk/?ie=UTF8&ll=18.973831,-72.773437&spn=3.583831,4.943848&z=8

now just paste the coordinates in
http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=18.973831,-72.773437&ie=UTF8&ll=18.635835,-72.509766&spn=7.178941,9.887695&z=7
(zoom in to see sea!)

but a database would return a 'null as' outside the country polygon
but inside the MBR

Just for consideration.

Mapperz
http://mapperz.blogspot.com/

On Sep 11, 9:51 am, marcelo <[EMAIL PROTECTED]> wrote:
> On Sep 10, 5:39 pm, "maps.huge.info [Maps API Guru]"
>
> <[EMAIL PROTECTED]> wrote:
> > Not necessarily. If the point is outside the polygon yet inside the
> > MBR, the result will be wrong. You'll still have to  check if one
> > result comes back for this possibility, unless the polygon is in fact
> > a rectangle.
>
> John,
>
> I realized this after I posted, which is why I added a second post
> saying "in most cases". ;-)
> The case you mention, in which the point is outside the polygon and
> inside the MBR, is the case in which I meant that you get 2, and you
> need to sort them in your script. This is often the case with non-
> overlapping, contiguous polygons, like counties.
>
> However, there is a worse case: Imagine several polygons consisting of
> "diagonal stripes",
>
>   /////
>  /////
> /////
>
> then the point can be inside several MBRs, but this is unusual with
> couties, states, etc.
>
> --
> Marcelo -http://maps.forum.nu
> --
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to