We're dealing with country borders, that is the set of multiple disjoint domains that is made of polygons. The problem is to identify the country (http://en.wikipedia.org/wiki/List_of_sovereign_states) by a give point on the map. To accomplish this we've been told to implement the ray casting algorithm, but the country is far from being the simply-connected domain. For example, Italy consists of many disjoint domains.

In this case is the crossing number algorithm or the even-odd rule algorithm still a valid approach for validation if the point in question is within the country borders?

EDIT-1

In case it is interesting to someone I've open similar discussion at http://scicomp.stackexchange.com/questions/3587/ray-casting-algorithm-for-multiple-disjoint-polygons-is-still-valid

EDIT-2

I did NOT mentioned the Point in Polygon algorithm (http://en.wikipedia.org/wiki/Point_in_polygon) in the question since I don't feel myself to be an expert in the area and expected the open discussion and your thoughts about the problem we're encountered in the practical applications and second it seems that this algorithm have some drawbacks since it is based on the ray tracing (http://en.wikipedia.org/wiki/Ray_tracing_(graphics)#Disadvantages).

Similar questions and discussions