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
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a JTS to GML Geometry converter that is functionally identical to the converter constructed by JTSToGML311GeometryConverter()
    Constructs a JTS to GML Geometry converter that is functionally identical to the converter constructed by 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.
    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(ObjectFactoryInterface, JTSToGML311SRSReferenceGroupConverterInterface) with the exception that the GML that output is customized based on the properties contained in a property Map.
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.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.AbstractGeometryType
    doCreateGeometryType(org.locationtech.jts.geom.Geometry geometry)
     

    Methods inherited from class org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311GeometryConverter

    createPropertyType

    Methods inherited from class org.jvnet.ogc.gml.v_3_1_1.jts.AbstractJTSToGML311Converter

    createGeometryType, getObjectFactory, getSrsReferenceGroupConverter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CswJTSToGML311GeometryConverter

      public CswJTSToGML311GeometryConverter()
      Constructs a JTS to GML Geometry converter that is functionally identical to the converter constructed by JTSToGML311GeometryConverter()
    • CswJTSToGML311GeometryConverter

      public CswJTSToGML311GeometryConverter(Map<String,String> propertyMap)
      Constructs a JTS to GML Geometry converter that is functionally identical to the converter constructed by 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.
      Parameters:
      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 by 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", 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 single element 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:
      doCreateGeometryType in class org.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:
      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,org.locationtech.jts.geom.Geometry>
      Overrides:
      createElement in class org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311GeometryConverter
      Throws:
      IllegalArgumentException