All Implemented Interfaces:
RDFDatatype

public class GMLDatatype extends GeometryDatatype
  • Field Details

    • URI

      public static final String URI
      The default GML type URI.
      See Also:
    • INSTANCE

      public static final GMLDatatype INSTANCE
      A static instance of GMLDatatype.
    • GML_PREFIX

      public static final String GML_PREFIX
      XML element tag "gml" is defined for the convenience of GML generation.
      See Also:
  • Constructor Details

    • GMLDatatype

      public GMLDatatype()
      private constructor - single global instance.
  • Method Details

    • unparse

      public String unparse(Object geometry)
      This method Un-parses the JTS Geometry to the GML literal
      Specified by:
      unparse in interface RDFDatatype
      Overrides:
      unparse in class BaseDatatype
      Parameters:
      geometry - - the JTS Geometry to be un-parsed
      Returns:
      GML - the returned GML Literal.
      Notice that the Spatial Reference System "urn:ogc:def:crs:OGC::CRS84" is predefined in the returned GML literal.
    • read

      public GeometryWrapper read(String geometryLiteral)
      Specified by:
      read in class GeometryDatatype
    • toString

      public String toString()
      Overrides:
      toString in class BaseDatatype