GeoPolygonFactory.PolygonDescription (Lucene 10.5.0 spatial3d API)
Description: declaration: package: org.apache.lucene.spatial3d.geom, class: GeoPolygonFactory, class: PolygonDescription

Package org.apache.lucene.spatial3d.geom

# Class GeoPolygonFactory.PolygonDescription

java.lang.Object
org.apache.lucene.spatial3d.geom.GeoPolygonFactory.PolygonDescription

Enclosing class:
  `GeoPolygonFactory`

public static class GeoPolygonFactory.PolygonDescription extends Object
Use this class to specify a polygon with associated holes.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final List<? extends GeoPolygonFactory.PolygonDescription>`
  `holes`
  The list of holes
  `final List<? extends GeoPoint>`
  `points`
  The list of points

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PolygonDescription(List<? extends GeoPoint> points)`
  Instantiate the polygon description.
  `PolygonDescription(List<? extends GeoPoint> points, List<? extends GeoPolygonFactory.PolygonDescription> holes)`
  Instantiate the polygon description.

- ## Method Summary

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### points

    public final List<? extends GeoPoint> points
    The list of points

  - ### holes

    public final List<? extends GeoPolygonFactory.PolygonDescription> holes
    The list of holes

- ## Constructor Details

  - ### PolygonDescription

    public PolygonDescription(List<? extends GeoPoint> points)
    Instantiate the polygon description.
    Parameters:
      `points` - is the list of points.

  - ### PolygonDescription

    public PolygonDescription(List<? extends GeoPoint> points, List<? extends GeoPolygonFactory.PolygonDescription> holes)
    Instantiate the polygon description.
    Parameters:
      `points` - is the list of points.
      `holes` - is the list of holes.