Class CRSSerializer

java.lang.Object
org.apache.sedona.common.raster.serde.CRSSerializer

public class CRSSerializer extends Object
There won't be too many distinct CRSes in a typical application, so we can cache the serialized form of CRS objects to speed up the serialization/deserialization process. The serialized CRS is also compressed to reduce the memory footprint. Typical serialized CRS size is around 50KB, and the compressed size is around 10KB. According to our assumption, each distinct CRS will only be serialized once, so the computation cost to compress the serialized CRS is negligible.
  • Method Details

    • serialize

      public static byte[] serialize(org.geotools.api.referencing.crs.CoordinateReferenceSystem crs)
    • deserialize

      public static org.geotools.api.referencing.crs.CoordinateReferenceSystem deserialize(byte[] bytes)
    • invalidateCache

      public static void invalidateCache()