Class GMLConfiguration

Object
Configuration
GMLConfiguration

public class GMLConfiguration extends Configuration
Parser configuration for the http://www.opengis.net/gml/3.2 schema.
  • Field Details

    • NO_SRS_DIMENSION

      public static final QName NO_SRS_DIMENSION
      Boolean property which controls whether geometry and envelope objects are encoded with an srs dimension attribute.
    • OPTIMIZED_ENCODING

      public static final QName OPTIMIZED_ENCODING
      Property which engages "fast" gml encoding.
  • Constructor Details

    • GMLConfiguration

      public GMLConfiguration()
      Creates a new configuration.
    • GMLConfiguration

      public GMLConfiguration(boolean arcSurfaceSupport)
      Creates a new configuration specifying whether to enable extended arc/surface support.
  • Method Details

    • setExtendedArcSurfaceSupport

      public void setExtendedArcSurfaceSupport(boolean extArcSurfaceSupport)
      Flag that when set triggers extended support for arcs and surfaces.
    • isExtendedArcSurfaceSupport

      public boolean isExtendedArcSurfaceSupport()
    • setSrsSyntax

      public void setSrsSyntax(SrsSyntax srsSyntax)
      Sets the syntax to use for encoding srs uris.

      If this method is not explicitly called SrsSyntax#URN2 is used as the default.

    • getSrsSyntax

      public SrsSyntax getSrsSyntax()
      Returns the syntax to use for encoding srs uris.
    • registerBindings

      protected final void registerBindings(MutablePicoContainer container)
      Registers the bindings for the configuration.
      Overrides:
      registerBindings in class Configuration
      Parameters:
      container - Container containing all bindings, keyed by QName.
    • configureContext

      protected void configureContext(MutablePicoContainer container)
      Description copied from class: Configuration
      Configures the root context to be used when parsing elements.

      The context satisfies any dependencies needed by a binding. This is often a factory used to create something.

      This method should be overridden. The default implementation does nothing.

      Overrides:
      configureContext in class Configuration
      Parameters:
      container - The container representing the context.
    • getNumDecimals

      public int getNumDecimals()
      Returns the number of decimals that should be used for encoding coordinates (defaults to 6)
      Returns:
      the numDecimals
    • setNumDecimals

      public void setNumDecimals(int numDecimals)
      Sets the number of decimals that should be used for encoding coordinates
      Parameters:
      numDecimals - the numDecimals to set
    • getEncodeMeasures

      public boolean getEncodeMeasures()
      Controls if coordinates measures should be included in WFS outputs.
      Returns:
      TRUE if measures should be encoded, otherwise FALSE
    • setEncodeMeasures

      public void setEncodeMeasures(boolean encodeMeasures)
      Sets if coordinates measures should be included in WFS outputs.
      Parameters:
      encodeMeasures - TRUE if measures should be encoded, otherwise FALSE
    • getGeometryFactory

      public GeometryFactory getGeometryFactory()
      Retrieves the geometry factory used to build geometries
      Returns:
      the geometryFactory
    • setGeometryFactory

      public void setGeometryFactory(GeometryFactory geometryFactory)
      Sets the geometry factory used to build geometry
      Parameters:
      geometryFactory - the geometryFactory to set
    • setPadWithZeros

      public void setPadWithZeros(boolean padWithZeros)
      Formats decimals of coordinates padding with zeros up to the configured number of decimals.
      Parameters:
      padWithZeros - right pad decimals with zeros
    • setForceDecimalEncoding

      public void setForceDecimalEncoding(boolean forceDecimalEncoding)
      Forces usage of decimal notation, avoiding scientific notations to encode coordinates.
      Parameters:
      forceDecimalEncoding - avoid scientific notation, always use decimal
    • getPadWithZeros

      public boolean getPadWithZeros()
      Returns true if decimals of coordinates are padded with zeros up to the configured number of decimals.
      Returns:
      true if decimals are right-padded with zeros
    • getForceDecimalEncoding

      public boolean getForceDecimalEncoding()
      Returns true if decimal notation should always be used, and scientific notation always avoided.
      Returns:
      true if decimal notation is always used for encoding coordinates