alternative method for computing scale to fix distance and scalebar issues

See: https://locationtech.org/mhonarc/lists/udig-dev/msg23348.html
https://jira.codehaus.org/browse/UDIG-1993 
https://jira.codehaus.org/browse/UDIG-1953