public class GMLConfiguration extends Configuration
Modifier and Type | Field and Description |
---|---|
static QName |
NO_SRS_DIMENSION
Boolean property which controls whether geometry and envelope objects are encoded with an srs
dimension attribute.
|
static QName |
OPTIMIZED_ENCODING
Property which engages "fast" gml encoding.
|
Constructor and Description |
---|
GMLConfiguration()
Creates a new configuration.
|
GMLConfiguration(boolean arcSurfaceSupport)
Creates a new configuration specifying whether to enable extended arc/surface support.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureContext(MutablePicoContainer container)
Configures the root context to be used when parsing elements.
|
boolean |
getEncodeMeasures()
Controls if coordinates measures should be included in WFS outputs.
|
boolean |
getForceDecimalEncoding()
Returns true if decimal notation should always be used, and scientific notation always
avoided.
|
GeometryFactory |
getGeometryFactory()
Retrieves the geometry factory used to build geometries
|
int |
getNumDecimals()
Returns the number of decimals that should be used for encoding coordinates (defaults to 6)
|
boolean |
getPadWithZeros()
Returns true if decimals of coordinates are padded with zeros up to the configured number of
decimals.
|
SrsSyntax |
getSrsSyntax()
Returns the syntax to use for encoding srs uris.
|
boolean |
isExtendedArcSurfaceSupport() |
protected void |
registerBindings(MutablePicoContainer container)
Registers the bindings for the configuration.
|
void |
setEncodeMeasures(boolean encodeMeasures)
Sets if coordinates measures should be included in WFS outputs.
|
void |
setExtendedArcSurfaceSupport(boolean extArcSurfaceSupport)
Flag that when set triggers extended support for arcs and surfaces.
|
void |
setForceDecimalEncoding(boolean forceDecimalEncoding)
Forces usage of decimal notation, avoiding scientific notations to encode coordinates.
|
void |
setGeometryFactory(GeometryFactory geometryFactory)
Sets the geometry factory used to build geometry
|
void |
setNumDecimals(int numDecimals)
Sets the number of decimals that should be used for encoding coordinates
|
void |
setPadWithZeros(boolean padWithZeros)
Formats decimals of coordinates padding with zeros up to the configured number of decimals.
|
void |
setSrsSyntax(SrsSyntax srsSyntax)
Sets the syntax to use for encoding srs uris.
|
addDependency, allDependencies, configureBindings, configureBindings, configureEncoder, configureParser, equals, getContext, getDependencies, getDependency, getNamespaceURI, getProperties, getSchemaFileURL, getSchemaLocationResolver, getSchemaLocator, getXSD, hashCode, hasProperty, registerBindings, schema, setupBindings, setupBindings, setupContext, setupEncoder, setupParser
public static final QName NO_SRS_DIMENSION
public static final QName OPTIMIZED_ENCODING
public GMLConfiguration()
public GMLConfiguration(boolean arcSurfaceSupport)
public void setExtendedArcSurfaceSupport(boolean extArcSurfaceSupport)
public boolean isExtendedArcSurfaceSupport()
public void setSrsSyntax(SrsSyntax srsSyntax)
If this method is not explicitly called SrsSyntax#URN2
is used as the default.
public SrsSyntax getSrsSyntax()
protected final void registerBindings(MutablePicoContainer container)
registerBindings
in class Configuration
container
- Container containing all bindings, keyed by QName
.protected void configureContext(MutablePicoContainer container)
Configuration
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.
configureContext
in class Configuration
container
- The container representing the context.public int getNumDecimals()
public void setNumDecimals(int numDecimals)
numDecimals
- the numDecimals to setpublic boolean getEncodeMeasures()
public void setEncodeMeasures(boolean encodeMeasures)
encodeMeasures
- TRUE if measures should be encoded, otherwise FALSEpublic GeometryFactory getGeometryFactory()
public void setGeometryFactory(GeometryFactory geometryFactory)
geometryFactory
- the geometryFactory to setpublic void setPadWithZeros(boolean padWithZeros)
padWithZeros
- right pad decimals with zerospublic void setForceDecimalEncoding(boolean forceDecimalEncoding)
forceDecimalEncoding
- avoid scientific notation, always use decimalpublic boolean getPadWithZeros()
public boolean getForceDecimalEncoding()
Copyright © 1996–2019 Geotools. All rights reserved.