An encoding and decoding class for GeoModels.org.