>From the top of my head, I can't see anything wrong with that method,
as long as you don't create a bow-tie when adding the point, that is,
you'd have to make sure you add the point in between the two closest
points of the original polygon.
What worries me a bit is that the method sounds surprisingly simple,
but I can't think of a way to make it fail.

--
Marcelo - http://maps.forum.nu
--






On Mar 12, 12:22 am, lestad <[email protected]> wrote:
> Necesito saber si  un punto está dentro de un polígono  tomando como
> base las coordenadas antes capturadas para formar dicho polígono.
> Yo he pensado solucionarlo de esta manera:
> 1.      Calcular el área del polígono por medio de triangulación.
> 2.      Anadir el punto a verificar como un vértice del polígono.
> 3.      Calcular el área del polígono junto con el nuevo vértice.
> 4.      Si el área de dicho polígono es mayor que la del polígona inicial
> el punto se encuentra fuera del polígono, de lo contrario si es menor
> se encuentra adentro del polígono.
> Este proceso se lleva  a cabo antes de mostrar dicho polígono y punto
> el mapa por eso es que se tienen que utilizar métodos o formulas
> distintas a la de la API de Google Maps.
> Agradecería sus opiniones sobre lo que deseo llevar a cabo y la
> manera.
--~--~---------~--~----~------------~-------~--~----~
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