Class FeatureCollectionEncoderDelegate

Object
FeatureCollectionEncoderDelegate
All Implemented Interfaces:
EncoderDelegate
Direct Known Subclasses:
GML2FeatureCollectionEncoderDelegate, GML32FeatureCollectionEncoderDelegate, GML3FeatureCollectionEncoderDelegate

public abstract class FeatureCollectionEncoderDelegate extends Object implements EncoderDelegate
Base class for feature collection optimized GML encoder delegates
Author:
Justin Deoliveira, OpenGeo, Andrea Aime, GeoSolutions
  • Field Details

    • encodeGeometryIds

      protected boolean encodeGeometryIds
  • Constructor Details

  • Method Details

    • encode

      public void encode(ContentHandler handler) throws Exception
      Description copied from interface: EncoderDelegate
      Encodes content to an output stream.
      Specified by:
      encode in interface EncoderDelegate
      Throws:
      Exception
    • getPropertyAttributes

      protected Attributes getPropertyAttributes(QualifiedName name, FeatureType featureType, AttributeDescriptor attribute, Object value)
      Allows subclasses to generate a list of attributes for the property being encoded. The default implementation just returns null
      Parameters:
      attribute - The attribute being encoded
      value - The attribute value
      Returns:
      A Attributes, or null if no attributes are desired