Class Feature

    • Constructor Detail

      • Feature

        public Feature​(String id,
                       BoundingBox bbox,
                       Geometry geometry,
                       Object properties)
        Instantiates a new feature.
        Parameters:
        id - the id
        bbox - the bbox
        geometry - the geometry
        properties - the properties
    • Method Detail

      • getType

        @NotNull
        public @NotNull Feature.TypeEnum getType()
        The feature type.
        Returns:
        type type
      • setType

        public void setType​(Feature.TypeEnum type)
        Sets type.
        Parameters:
        type - the type
      • getId

        public String getId()
        The identifier of this feature.
        Returns:
        id id
      • setId

        public void setId​(String id)
        Sets id.
        Parameters:
        id - the id
      • getBbox

        public BoundingBox getBbox()
        Get bounding box.
        Returns:
        bbox bbox
      • setBbox

        public void setBbox​(BoundingBox bbox)
        Sets bounding box.
        Parameters:
        bbox - the bbox
      • getGeometry

        public Geometry getGeometry()
        Get geometry.
        Returns:
        geometry geometry
      • setGeometry

        public void setGeometry​(Geometry geometry)
        Sets geometry.
        Parameters:
        geometry - the geometry
      • getProperties

        public Object getProperties()
        The feature properties.
        Returns:
        properties properties
      • setProperties

        public void setProperties​(Object properties)
        Sets properties.
        Parameters:
        properties - the properties