use OpenLayers.getInchesPerUnit(String units)