public class CswJTSToGML311GeometryConverter
extends org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311GeometryConverter
JTSToGML311GeometryConverter
that provides a means of customizing
the GML output. By default, the CswJTSToCML311GeometryConverter
behaves identically to
the JTSToGML311GeometryConverter
, but the output of the converter can be customized by
supplying a Map
of configuration properties.Modifier and Type | Field and Description |
---|---|
static String |
USE_POS_LIST_GEO_CONVERTER_PROP_KEY |
Constructor and Description |
---|
CswJTSToGML311GeometryConverter()
Constructs a JTS to GML Geometry converter that is functionally identical
to the converter constructed by
{@link JTSToGML311GeometryConverter#JTSToGML311GeometryConverter()
|
CswJTSToGML311GeometryConverter(Map<String,String> propertyMap)
Constructs a JTS to GML Geometry converter that is functionally identical
to the converter constructed by
JTSToGML311GeometryConverter#JTSToGML311GeometryConverter()
with the exception that the GML that output is customized based on the
properties contained in a property {@link Map}.
|
CswJTSToGML311GeometryConverter(org.jvnet.ogc.gml.v_3_1_1.ObjectFactoryInterface objectFactory,
org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311SRSReferenceGroupConverterInterface srsReferenceGroupConverter,
Map<String,String> propertyMap)
Constructs a JTS to GML Geometry converter that is functionally identical to the converter
constructed by
JTSToGML311GeometryConverter.JTSToGML311GeometryConverter(ObjectFactoryInterface,
JTSToGML311SRSReferenceGroupConverterInterface) with the exception that the GML that output is
customized based on the properties contained in a property Map . |
Modifier and Type | Method and Description |
---|---|
JAXBElement<? extends net.opengis.gml.v_3_1_1.AbstractGeometryType> |
createElement(com.vividsolutions.jts.geom.Geometry geometry) |
protected net.opengis.gml.v_3_1_1.AbstractGeometryType |
doCreateGeometryType(com.vividsolutions.jts.geom.Geometry geometry) |
createPropertyType
public static final String USE_POS_LIST_GEO_CONVERTER_PROP_KEY
public CswJTSToGML311GeometryConverter()
public CswJTSToGML311GeometryConverter(Map<String,String> propertyMap)
propertyMap
- A map of properties that indicate a desired set of customizations
to the GML output by the converter.public CswJTSToGML311GeometryConverter(org.jvnet.ogc.gml.v_3_1_1.ObjectFactoryInterface objectFactory, org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311SRSReferenceGroupConverterInterface srsReferenceGroupConverter, Map<String,String> propertyMap)
JTSToGML311GeometryConverter.JTSToGML311GeometryConverter(ObjectFactoryInterface,
JTSToGML311SRSReferenceGroupConverterInterface)
with the exception that the GML that output is
customized based on the properties contained in a property Map
.
Valid properties include:
USE_POS_LIST_GEO_CONVERTER_PROP_KEY
, ["true" | "false" ] - When "true", LinearRingType
s constructed by the converter will have the posList, rather than the
posOrPointPropertyOrPointRep, member variable set and populated. When converted to a string,
this results in the GML containing a single
objectFactory
- srsReferenceGroupConverter
- propertyMap
- A map of properties that indicate a desired set of customizations to the GML
output by the converter.protected net.opengis.gml.v_3_1_1.AbstractGeometryType doCreateGeometryType(com.vividsolutions.jts.geom.Geometry geometry) throws IllegalArgumentException
doCreateGeometryType
in class org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311GeometryConverter
IllegalArgumentException
JTSToGML311GeometryConverter#doCreateGeometryType(Geometry geometry}
public JAXBElement<? extends net.opengis.gml.v_3_1_1.AbstractGeometryType> createElement(com.vividsolutions.jts.geom.Geometry geometry) throws IllegalArgumentException
createElement
in interface org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311ConverterInterface<net.opengis.gml.v_3_1_1.AbstractGeometryType,net.opengis.gml.v_3_1_1.GeometryPropertyType,com.vividsolutions.jts.geom.Geometry>
createElement
in class org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311GeometryConverter
IllegalArgumentException
JTSToGML311GeometryConverter#createElement(Geometry)
This work is licensed under a Creative Commons Attribution 4.0 International License.