com.supermap.services.rest.encoders

Class WKTEncoder



  • public class WKTEncoder
    extends Encoder
    

    Projection Coordinate System KKT serializer. Is responsible for serializing a projection coordinate system object object into a WKT string.

    • Constructor Summary

      Constructors 
      Constructor and Description
      WKTEncoder() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.util.List<MediaType> createSupportedMediaTypes()
      Creates a supported media type, here is the WKT expression type, “application/wkt”.
      Representation toRepresentation(MediaType mediaType, java.lang.Object obj)
      Serializes a Java object into a expression.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WKTEncoder

        public WKTEncoder()
        
    • Method Detail

      • createSupportedMediaTypes

        public java.util.List<MediaType> createSupportedMediaTypes()
        

        Creates a supported media type, here is the WKT expression type, “application/wkt”.

        Specified by:
        createSupportedMediaTypes in class Encoder
        Returns:
        media type list.
      • toRepresentation

        public Representation toRepresentation(MediaType mediaType,
                                      java.lang.Object obj)
        

        Serializes a Java object into a expression.

        Specified by:
        toRepresentation in class Encoder
        Parameters:
        mediaType - The format of the presentation, ie the media type.
        obj - The Java object to be serialized.
        Returns:
        WKT statement for Java objects.