This code is imported from the src/LercLib directory of
https://github.com/Esri/lerc at:

~~~~~

commit fcf086a9053441566bd3152b721da14a2856b2bc
Merge: da9b5f4 1b7450a
Author: Thomas Maurer <tmaurer@esri.com>
Date:   Sun Jun 17 13:51:14 2018 -0700

    Merge pull request #47 from Esri/tmaurer3/add_write_old_Lerc2_versions
    
    tmaurer3/add_write_old_Lerc2_versions

~~~~~

Note: it explicitly excludes the src/LercLib/Lerc1Decode directory, which
is legacy, and only used by the MRF driver.
