Class Geometry.Polygon

java.lang.Object
dev.avelar.mapnik.Geometry
dev.avelar.mapnik.Geometry.Polygon
Enclosing class:
Geometry

public static final class Geometry.Polygon extends Geometry
An area: an exterior ring and any number of holes.
  • Method Details

    • exterior

      public double[] exterior()
      The exterior ring as x0, y0, x1, y1, ... A copy.
    • holes

      public List<double[]> holes()
      The holes, each as x0, y0, x1, y1, ... Copies.
    • rings

      public List<double[]> rings()
      The exterior ring followed by the holes. Copies.
    • kind

      public GeometryKind kind()
      Description copied from class: Geometry
      What kind of geometry this is.
      Specified by:
      kind in class Geometry
    • isEmpty

      public boolean isEmpty()
      Description copied from class: Geometry
      True if it has no coordinates, for example an empty collection.
      Specified by:
      isEmpty in class Geometry