Class CswJTSToGML311LinearRingConverter

java.lang.Object
org.jvnet.ogc.gml.v_3_1_1.jts.AbstractJTSToGML311Converter<net.opengis.gml.v_3_1_1.LinearRingType,net.opengis.gml.v_3_1_1.AbstractRingPropertyType,org.locationtech.jts.geom.LinearRing>
org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311LinearRingConverter
org.codice.ddf.spatial.ogc.csw.catalog.common.source.CswJTSToGML311LinearRingConverter
All Implemented Interfaces:
org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311ConverterInterface<net.opengis.gml.v_3_1_1.LinearRingType,net.opengis.gml.v_3_1_1.AbstractRingPropertyType,org.locationtech.jts.geom.LinearRing>

public class CswJTSToGML311LinearRingConverter extends org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311LinearRingConverter
An implementation of JTSToGML311LinearRingConverter that provides a means of customizing the LinearRing GML. By default, the CswJTSToGML311LinearRingConverter behaves identically to the JTSToGML311LinearRingConverter, but the output of the converter can be customized via constructor argument(s).
  • Constructor Summary

    Constructors
    Constructor
    Description
    CswJTSToGML311LinearRingConverter(org.jvnet.ogc.gml.v_3_1_1.ObjectFactoryInterface objectFactory, org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311SRSReferenceGroupConverterInterface srsReferenceGroupConverter, org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311CoordinateConverter coordinateConverter)
    Constructs a LinearRing converter that is functionally identical to the converter constructed by JTSToGML311LinearRingConverter(ObjectFactoryInterface, JTSToGML311SRSReferenceGroupConverterInterface, JTSToGML311CoordinateConverter)
    CswJTSToGML311LinearRingConverter(org.jvnet.ogc.gml.v_3_1_1.ObjectFactoryInterface objectFactory, org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311SRSReferenceGroupConverterInterface srsReferenceGroupConverter, org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311CoordinateConverter coordinateConverter, boolean usePosList)
    Constructs a LinearRing converter that is functionally identical to the converter constructed by JTSToGML311LinearRingConverter(ObjectFactoryInterface, JTSToGML311SRSReferenceGroupConverterInterface, JTSToGML311CoordinateConverter) with the exception that if usePosList is true the returned LinearRingType will have its posList member variable populated and set, rather than its posOrPointPropertyOrPointRep.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected net.opengis.gml.v_3_1_1.LinearRingType
    doCreateGeometryType(org.locationtech.jts.geom.LinearRing linearRing)
     

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

    createElement, 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
  • Constructor Details

    • CswJTSToGML311LinearRingConverter

      public CswJTSToGML311LinearRingConverter(org.jvnet.ogc.gml.v_3_1_1.ObjectFactoryInterface objectFactory, org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311SRSReferenceGroupConverterInterface srsReferenceGroupConverter, org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311CoordinateConverter coordinateConverter)
      Constructs a LinearRing converter that is functionally identical to the converter constructed by JTSToGML311LinearRingConverter(ObjectFactoryInterface, JTSToGML311SRSReferenceGroupConverterInterface, JTSToGML311CoordinateConverter)
    • CswJTSToGML311LinearRingConverter

      public CswJTSToGML311LinearRingConverter(org.jvnet.ogc.gml.v_3_1_1.ObjectFactoryInterface objectFactory, org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311SRSReferenceGroupConverterInterface srsReferenceGroupConverter, org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311CoordinateConverter coordinateConverter, boolean usePosList)
      Constructs a LinearRing converter that is functionally identical to the converter constructed by JTSToGML311LinearRingConverter(ObjectFactoryInterface, JTSToGML311SRSReferenceGroupConverterInterface, JTSToGML311CoordinateConverter) with the exception that if usePosList is true the returned LinearRingType will have its posList member variable populated and set, rather than its posOrPointPropertyOrPointRep. When converted to a string, this results in the GML containing a single element, rather than a list of elements.
  • Method Details

    • doCreateGeometryType

      protected net.opengis.gml.v_3_1_1.LinearRingType doCreateGeometryType(org.locationtech.jts.geom.LinearRing linearRing)
      Overrides:
      doCreateGeometryType in class org.jvnet.ogc.gml.v_3_1_1.jts.JTSToGML311LinearRingConverter