C#: How to determine if a coordinates is in the continental United States?
问题 I am getting coordinates - lat/lon and I want to check if these coordinates are in the continental United States or not. Is there a easy way to do it in C#? I can convert the coordinates into MGRS or UTM. Thanks! 回答1: Oh wow, they have it just for you: http://econym.org.uk/gmap/states.xml All the coords of the US states! Build up a polygon and apply any polygon-contains-point algorithm. The classic algorithm is ray-casting, and its even pretty simple. Let me know if you have any trouble with