Interface Feature

All Superinterfaces:
Iterable<EarthLocation>
All Known Implementing Classes:
AbstractFeature, LineFeature, PointFeature, PolygonFeature

public interface Feature extends Iterable<EarthLocation>
  • Method Details

    • getAttribute

      Object getAttribute(int index)
      Gets the value of the specified attribute.
      Parameters:
      index - the index of the attribute to get.
      Returns:
      the attribute value (possibly null).
      Throws:
      IndexOutOfBoundsException - if the attribute index is invalid.
    • getAttributeCount

      int getAttributeCount()
      Gets the number of attributes.
      Returns:
      the attribute count.
    • iterator

      Iterator<EarthLocation> iterator()
      Gets an iterator over the points associated with this feature.
      Specified by:
      iterator in interface Iterable<EarthLocation>
      Returns:
      the iterator over points.