Package ddf.util

Class WktStandard

java.lang.Object
ddf.util.WktStandard

public class WktStandard extends Object
WktStandard supports converting WKT into standard representations based on the WKT grammar in the OpenGIS Simple Feature Access specification.

DDF normalizes MULTIPOINT geometries to the style defined by the WKT grammar. For example, MULTIPOINT ((0 0), (10 10)) is in the normalized format. Some systems require a different format of MULTIPOINT. The previous example would denormalize as MULTIPOINT (0 0, 10 10)

  • Method Details

    • normalize

      public static String normalize(String wkt)
      Normalize the given WKT to conform to the WKT grammar.
      Parameters:
      wkt - WKT to normalize
      Returns:
      normalized WKT
    • denormalize

      public static String denormalize(String wkt)
      Denormalize the given WKT to support backwards compatibility.
      Parameters:
      wkt - wkt to denormalize
      Returns:
      denormalized WKT