MASPware GeoFence is a GPS-based surveillance tool. This program loads a virtual fence and starts alerts, if the current position is out of bounds. This program can use any kind of GPX and can also use Google KML files. You can easily record tracks with e.g. MASPware GPSmeter to use it as a virtual fence