Some helper functions to make rgeos more pleasant to use.