Archival commit from spatial characteristics project. Originally in svn. Work done in 2007 time frame.