Class CRSSerializer
java.lang.Object
org.apache.sedona.common.raster.serde.CRSSerializer
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 Summary
Modifier and TypeMethodDescriptionstatic org.geotools.api.referencing.crs.CoordinateReferenceSystemdeserialize(byte[] bytes) static voidstatic byte[]serialize(org.geotools.api.referencing.crs.CoordinateReferenceSystem crs)
-
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()
-