Class CswJTSToGML311GeometryConverter
java.lang.Object
org.jvnet.ogc.gml.v_3_1_1.jts.AbstractJTSToGML311Converter<net.opengis.gml.v_3_1_1.AbstractGeometryType,net.opengis.gml.v_3_1_1.GeometryPropertyType,org.locationtech.jts.geom.Geometry>
org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311GeometryConverter
org.codice.ddf.spatial.ogc.csw.catalog.common.source.CswJTSToGML311GeometryConverter
- All Implemented Interfaces:
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, org.locationtech.jts.geom.Geometry>
public class CswJTSToGML311GeometryConverter
extends org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311GeometryConverter
An implementation of
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.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a JTS to GML Geometry converter that is functionally identical to the converter constructed byinvalid input: ''CswJTSToGML311GeometryConverter(Map<String, String> propertyMap) Constructs a JTS to GML Geometry converter that is functionally identical to the converter constructed byinvalid input: 'with the exception that the GML that output is customized based on the properties contained in a property {@link Map}. Valid properties include: {@code USE_POS_LIST_GEO_CONVERTER_PROP_KEY}, ["true" | "false" ] - When "true", {@link 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 <posList> element rather than a list of <pos> elements. @param propertyMap A map of properties that indicate a desired set of customizations to the GML output by the converter.'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 byJTSToGML311GeometryConverter(ObjectFactoryInterface, JTSToGML311SRSReferenceGroupConverterInterface)with the exception that the GML that output is customized based on the properties contained in a propertyMap. -
Method Summary
Modifier and TypeMethodDescriptionjavax.xml.bind.JAXBElement<? extends net.opengis.gml.v_3_1_1.AbstractGeometryType> createElement(org.locationtech.jts.geom.Geometry geometry) protected net.opengis.gml.v_3_1_1.AbstractGeometryTypedoCreateGeometryType(org.locationtech.jts.geom.Geometry geometry) Methods inherited from class org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311GeometryConverter
createPropertyTypeMethods inherited from class org.jvnet.ogc.gml.v_3_1_1.jts.AbstractJTSToGML311Converter
createGeometryType, getObjectFactory, getSrsReferenceGroupConverter
-
Field Details
-
USE_POS_LIST_GEO_CONVERTER_PROP_KEY
- See Also:
-
-
Constructor Details
-
CswJTSToGML311GeometryConverter
public CswJTSToGML311GeometryConverter()Constructs a JTS to GML Geometry converter that is functionally identical to the converter constructed byinvalid input: '' -
CswJTSToGML311GeometryConverter
Constructs a JTS to GML Geometry converter that is functionally identical to the converter constructed byinvalid input: 'with the exception that the GML that output is customized based on the properties contained in a property {@link Map}. Valid properties include: {@code USE_POS_LIST_GEO_CONVERTER_PROP_KEY}, ["true" | "false" ] - When "true", {@link 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 <posList> element rather than a list of <pos> elements. @param propertyMap A map of properties that indicate a desired set of customizations to the GML output by the converter.' -
CswJTSToGML311GeometryConverter
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) Constructs a JTS to GML Geometry converter that is functionally identical to the converter constructed byJTSToGML311GeometryConverter(ObjectFactoryInterface, JTSToGML311SRSReferenceGroupConverterInterface)with the exception that the GML that output is customized based on the properties contained in a propertyMap.Valid properties include:
USE_POS_LIST_GEO_CONVERTER_PROP_KEY, ["true" | "false" ] - When "true",LinearRingTypes 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 singleelement rather than a list of elements. - Parameters:
objectFactory-srsReferenceGroupConverter-propertyMap- A map of properties that indicate a desired set of customizations to the GML output by the converter.
-
-
Method Details
-
doCreateGeometryType
protected net.opengis.gml.v_3_1_1.AbstractGeometryType doCreateGeometryType(org.locationtech.jts.geom.Geometry geometry) throws IllegalArgumentException - Overrides:
doCreateGeometryTypein classorg.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311GeometryConverter- Throws:
IllegalArgumentException
-
createElement
public javax.xml.bind.JAXBElement<? extends net.opengis.gml.v_3_1_1.AbstractGeometryType> createElement(org.locationtech.jts.geom.Geometry geometry) throws IllegalArgumentException - Specified by:
createElementin interfaceorg.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, org.locationtech.jts.geom.Geometry> - Overrides:
createElementin classorg.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311GeometryConverter- Throws:
IllegalArgumentException
-