Fix for the OGR autostyle unit calculation (#5028)
Merge pull request #5031 from szekerest/issue5028

Fix for the OGR autostyle unit calculation (#5028)