Class Feature

  • Direct Known Subclasses:
    Stroke

    public class Feature
    extends Object
    A POJO structure to represent simple geographical feature. It makes manipulation of these features even simpler than with SimpleFeature.
    Author:
    julien Gaffuri
    • Constructor Detail

      • Feature

        public Feature()
    • Method Detail

      • getID

        public String getID()
        Returns:
        The feature identifier.
      • setID

        public void setID​(String id)
        Set feature identifier.
        Parameters:
        id -
      • getGeometry

        public org.locationtech.jts.geom.Geometry getGeometry()
        Returns:
        The feature Geometry
      • setGeometry

        public void setGeometry​(org.locationtech.jts.geom.Geometry geometry)
        Set geometry.
        Parameters:
        geometry -
      • getAttributes

        public Map<String,​Object> getAttributes()
        Returns:
        The attributes map
      • getAttribute

        public Object getAttribute​(String attributeName)
        Get attribute value.
        Parameters:
        attributeName -
        Returns:
      • setAttribute

        public Object setAttribute​(String attributeName,
                                   Object value)
        Set attribute value.
        Parameters:
        attributeName -
        value -
        Returns: