Class EncFeature

  • All Implemented Interfaces:
    GeoElement

    public final class EncFeature
    extends Object
    implements GeoElement
    Represents a feature within an ENC (Electronic Navigational Chart).
    Since:
    100.2.0
    • Method Detail

      • getAttributeDescription

        public String getAttributeDescription​(String acronym)
        Gets the description of an ENC feature acronym.
        Parameters:
        acronym - an attribute acronym
        Returns:
        the description of an ENC feature acronym if that acronym exists, otherwise the input acronym
        Since:
        100.2.0
      • getAcronym

        public String getAcronym()
        Gets the acronym of the ENC feature.
        Returns:
        the acronym of the ENC feature
        Since:
        100.2.0
      • getDescription

        public String getDescription()
        Gets the description of the ENC feature.
        Returns:
        the description of the ENC feature
        Since:
        100.2.0
      • getAttributes

        public Map<String,​Object> getAttributes()
        Description copied from interface: GeoElement
        Gets a java.util.Map of all the available attributes as name value pairs.

        Attribute values are returned as Object instances, but the underlying value type is based on the Field.Type.

        Specified by:
        getAttributes in interface GeoElement
        Returns:
        all the available attributes as name value pairs.
      • getGeometry

        public Geometry getGeometry()
        Description copied from interface: GeoElement
        Gets the geometry of this geoelement.
        Specified by:
        getGeometry in interface GeoElement
        Returns:
        the geometry of this geoelement
      • setGeometry

        public void setGeometry​(Geometry geometry)
        Description copied from interface: GeoElement
        Sets the GeoElement's geometry.
        Specified by:
        setGeometry in interface GeoElement
        Parameters:
        geometry - the geometry to set