Class GML32FeatureCollectionEncoderDelegate.GML32Delegate

    • Constructor Detail

      • GML32Delegate

        public GML32Delegate​(Encoder encoder)
    • Method Detail

      • getFeatureProperties

        public List getFeatureProperties​(SimpleFeature f,
                                         XSDElementDeclaration element,
                                         Encoder e)
        Description copied from interface: GMLDelegate
        Lists all properties that should be encoded for a given feature
        Specified by:
        getFeatureProperties in interface GMLDelegate
        Parameters:
        f - A sample feature
        element - The xml element holding the feature type
        e - The encoder
      • setGeometryDimensionAttribute

        public void setGeometryDimensionAttribute​(AttributesImpl atts,
                                                  int dimension)
        Description copied from interface: GMLDelegate
        Sets the dimensions attribute, if available for the current GML version
        Specified by:
        setGeometryDimensionAttribute in interface GMLDelegate
      • initFidAttribute

        public void initFidAttribute​(AttributesImpl atts)
        Description copied from interface: GMLDelegate
        Initializes an empty feature id attribute, the attribute must be the first one in "atts"
        Specified by:
        initFidAttribute in interface GMLDelegate
      • startFeatures

        public void startFeatures​(GMLWriter handler)
                           throws Exception
        Description copied from interface: GMLDelegate
        Writes whatever per collection preamble is needed in this GML version
        Specified by:
        startFeatures in interface GMLDelegate
        Throws:
        Exception
      • startFeature

        public void startFeature​(GMLWriter handler)
                          throws Exception
        Description copied from interface: GMLDelegate
        Writes whatever per feature preamble is needed in this GML version
        Specified by:
        startFeature in interface GMLDelegate
        Throws:
        Exception
      • endFeature

        public void endFeature​(GMLWriter handler)
                        throws Exception
        Description copied from interface: GMLDelegate
        Closes a single feature
        Specified by:
        endFeature in interface GMLDelegate
        Throws:
        Exception
      • endFeatures

        public void endFeatures​(GMLWriter handler)
                         throws Exception
        Description copied from interface: GMLDelegate
        Closes a collection of features
        Specified by:
        endFeatures in interface GMLDelegate
        Throws:
        Exception
      • registerGeometryEncoders

        public void registerGeometryEncoders​(Map<Class,​GeometryEncoder<? extends Geometry>> encoders,
                                             Encoder encoder)
        Description copied from interface: GMLDelegate
        Registers all the geometry encoders for this GML version in a map, by geometry class (different versions support different types of geometries, e.g., GML3 supports also curved ones)
        Specified by:
        registerGeometryEncoders in interface GMLDelegate
      • getGmlPrefix

        public String getGmlPrefix()
                            throws Exception
        Description copied from interface: GMLDelegate
        The GML prefix used by this encoding session
        Specified by:
        getGmlPrefix in interface GMLDelegate
        Throws:
        Exception
      • supportsTuples

        public boolean supportsTuples()
        Description copied from interface: GMLDelegate
        Returns true if tuple encoding is supported in this standard
        Specified by:
        supportsTuples in interface GMLDelegate
      • startTuple

        public void startTuple​(GMLWriter handler)
                        throws SAXException
        Description copied from interface: GMLDelegate
        Writes the tuple preamble
        Specified by:
        startTuple in interface GMLDelegate
        Throws:
        SAXException
      • endTuple

        public void endTuple​(GMLWriter handler)
                      throws SAXException
        Description copied from interface: GMLDelegate
        Closes a tuple
        Specified by:
        endTuple in interface GMLDelegate
        Throws:
        SAXException
      • getSchema

        public XSD getSchema()
        Description copied from interface: GMLDelegate
        The XSD schema used by this GML version
        Specified by:
        getSchema in interface GMLDelegate
      • getNumDecimals

        public int getNumDecimals()
        Description copied from interface: GMLDelegate
        Number of decimals used in the output
        Specified by:
        getNumDecimals in interface GMLDelegate
      • forceDecimalEncoding

        public boolean forceDecimalEncoding()
        Description copied from interface: GMLDelegate
        Returns true if coordinates should be encoded as xs:decimal instead of xs:double
        Specified by:
        forceDecimalEncoding in interface GMLDelegate
      • getEncodeMeasures

        public boolean getEncodeMeasures()
        Description copied from interface: GMLDelegate
        Controls if coordinates measures should be included in WFS outputs.
        Specified by:
        getEncodeMeasures in interface GMLDelegate
        Returns:
        TRUE if measures should be encoded, otherwise FALSE
      • padWithZeros

        public boolean padWithZeros()
        Description copied from interface: GMLDelegate
        Returns true if coordinates should be right-padded with zeros up to the requested number of decimals.
        Specified by:
        padWithZeros in interface GMLDelegate