Add bounding polygon function for use in determining spatial extent

Would it be better to name/alias the arguments, rather than use $n to signify them?