geotrellis.vector

Polygon

case class Polygon(jtsGeom: com.vividsolutions.jts.geom.Polygon) extends Geometry with Relatable with TwoDimensions with Product with Serializable

Class representing a polygon

Linear Supertypes
Serializable, Serializable, Product, Equals, TwoDimensions, AtLeastOneDimension, Dimensions, Relatable, Geometry, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Polygon
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. TwoDimensions
  7. AtLeastOneDimension
  8. Dimensions
  9. Relatable
  10. Geometry
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Polygon(jtsGeom: com.vividsolutions.jts.geom.Polygon)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def &(g: TwoDimensions): TwoDimensionsTwoDimensionsIntersectionResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

  5. def &(g: OneDimension): OneDimensionAtLeastOneDimensionIntersectionResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

  6. def &(mp: MultiPoint): MultiPointAtLeastOneDimensionIntersectionResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and mp.

  7. def &(p: Point): PointOrNoResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and p.

  8. def &(g: Geometry): TwoDimensionsTwoDimensionsIntersectionResult

    Definition Classes
    Geometry
  9. def -(g: TwoDimensions): TwoDimensionsTwoDimensionsDifferenceResult

    Computes a Result that represents a Geometry made up of all the points in this Polygon that are not in g.

  10. def -(g: AtMostOneDimension): PolygonAtMostOneDimensionDifferenceResult

    Computes a Result that represents a Geometry made up of all the points in this Polygon that are not in g.

  11. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  13. lazy val area: Double

    Returns the area of this Polygon.

  14. def as[G <: Geometry](implicit arg0: ClassTag[G]): Option[G]

    Attempt to convert this Geometry to the provided type

    Attempt to convert this Geometry to the provided type

    Definition Classes
    Geometry
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. lazy val boundary: PolygonBoundaryResult

    Returns the boundary of this Polygon.

    Returns the boundary of this Polygon. The boundary of a Polygon is the set of closed curves corresponding to its exterior and interior boundaries.

  17. def buffer(d: Double): Polygon

    Computes a buffer area around this Polygon having width d.

  18. def centroid: PointOrNoResult

    Calculate centroid of this Geometry

    Calculate centroid of this Geometry

    Definition Classes
    Geometry
  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def contains(g: Geometry): Boolean

    Tests whether this Polygon contains the specified Geometry g.

    Tests whether this Polygon contains the specified Geometry g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*****FF*.

  21. def coveredBy(g: TwoDimensions): Boolean

    Tests whether this Polygon is covered by the specified TwoDimensions g.

    Tests whether this Polygon is covered by the specified TwoDimensions g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*F**F*** or *TF**F*** or **FT*F*** or **F*TF***.

  22. def covers(g: Geometry): Boolean

    Tests whether this Polygon covers the specified Geometry g.

    Tests whether this Polygon covers the specified Geometry g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*****FF* or *T****FF* or ***T**FF* or ****T*FF*.

  23. def crosses(g: OneDimension): Boolean

    Tests whether this Polygon crosses the specified OneDimension g.

    Tests whether this Polygon crosses the specified OneDimension g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*****T** (A/L).

  24. def crosses(mp: MultiPoint): Boolean

    Tests whether this Polygon crosses the specified MultiPoint mp.

    Tests whether this Polygon crosses the specified MultiPoint mp. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*****T** (A/P).

  25. def difference(g: TwoDimensions): TwoDimensionsTwoDimensionsDifferenceResult

    Computes a Result that represents a Geometry made up of all the points in this Polygon that are not in g.

  26. def difference(g: AtMostOneDimension): PolygonAtMostOneDimensionDifferenceResult

    Computes a Result that represents a Geometry made up of all the points in this Polygon that are not in g.

  27. def disjoint(other: Geometry): Boolean

    Definition Classes
    Relatable
  28. def distance(other: Geometry): Double

    Calculate the distance to another Geometry

    Calculate the distance to another Geometry

    Definition Classes
    Geometry
  29. def envelope: Extent

    Definition Classes
    Geometry
  30. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. def equals(other: Any): Boolean

    Definition Classes
    Geometry → AnyRef → Any
  32. lazy val exterior: Line

    Returns the exterior ring of this Polygon.

  33. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  34. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  35. lazy val hasHoles: Boolean

    Returns true if this Polygon contains holes

  36. def hashCode(): Int

    Definition Classes
    Geometry → AnyRef → Any
  37. lazy val holes: Array[Line]

    Returns the hole rings of this Polygon.

  38. def interiorPoint: PointOrNoResult

    Definition Classes
    Geometry
  39. def intersection(g: TwoDimensions): TwoDimensionsTwoDimensionsIntersectionResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

  40. def intersection(g: OneDimension): OneDimensionAtLeastOneDimensionIntersectionResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

  41. def intersection(mp: MultiPoint): MultiPointAtLeastOneDimensionIntersectionResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and mp.

  42. def intersection(p: Point): PointOrNoResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and p.

  43. def intersection(g: Geometry): TwoDimensionsTwoDimensionsIntersectionResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

    Definition Classes
    Geometry
  44. def intersects(other: Geometry): Boolean

    Definition Classes
    Relatable
  45. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  46. lazy val isRectangle: Boolean

    Tests whether this Polygon is a rectangle.

  47. def isValid: Boolean

    Check the validity of this geometry

    Check the validity of this geometry

    Definition Classes
    Geometry
  48. val jtsGeom: com.vividsolutions.jts.geom.Polygon

    Return the wrapped jts Geometry

    Return the wrapped jts Geometry

    Definition Classes
    PolygonDimensionsGeometry
  49. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  50. def normalized(): Polygon

    Returns a unique representation of the geometry based on standard coordinate ordering.

  51. final def notify(): Unit

    Definition Classes
    AnyRef
  52. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  53. lazy val numberOfHoles: Int

    Returns the number of holes in this Polygon

  54. def overlaps(g: TwoDimensions): Boolean

    Tests whether this Polygon overlaps the specified TwoDimensions g.

    Tests whether this Polygon overlaps the specified TwoDimensions g. Returns true if The DE-9IM Intersection Matrix for the two geometries is T*T***T**.

  55. lazy val perimeter: Double

    Returns this Polygon's perimeter.

    Returns this Polygon's perimeter. A Polygon's perimeter is the length of its exterior and interior boundaries.

  56. def safeIntersection(g: TwoDimensions): TwoDimensionsTwoDimensionsIntersectionResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g. If it fails, it reduces the precision to avoid TopologyException.

  57. def safeIntersection(g: OneDimension): OneDimensionAtLeastOneDimensionIntersectionResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g. If it fails, it reduces the precision to avoid TopologyException.

  58. def safeIntersection(mp: MultiPoint): MultiPointAtLeastOneDimensionIntersectionResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g. If it fails, it reduces the precision to avoid TopologyException.

  59. def safeIntersection(p: Point): PointOrNoResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g. If it fails, it reduces the precision to avoid TopologyException.

  60. def safeIntersection(g: Geometry): TwoDimensionsTwoDimensionsIntersectionResult

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

    Computes a Result that represents a Geometry made up of the points shared by this Polygon and g. If it fails, it reduces the precision to avoid TopologyException.

    Definition Classes
    Geometry
  61. def symDifference(g: TwoDimensions): TwoDimensionsTwoDimensionsSymDifferenceResult

    Computes a Result that represents a Geometry made up of all the points in this Polygon that are not in g and all the points in g that are not in this Polygon.

  62. def symDifference(g: AtMostOneDimension): AtMostOneDimensionPolygonSymDifferenceResult

    Computes a Result that represents a Geometry made up of all the points in this Polygon that are not in g and all the points in g that are not in this Polygon.

  63. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  64. def toString(): String

    Definition Classes
    Geometry → AnyRef → Any
  65. def touches(g: Geometry): Boolean

    Tests whether this Polygon touches the specified Geometry g.

    Tests whether this Polygon touches the specified Geometry g. Returns true if the DE-9IM Intersection Matrix for the two geometries is FT*******, F**T***** or F***T****.

  66. def union(g: TwoDimensions): TwoDimensionsTwoDimensionsUnionResult

    Computes a Result that represents a Geometry made up of all the points in this Polygon and g.

    Computes a Result that represents a Geometry made up of all the points in this Polygon and g. Uses cascaded polygon union if g is a (multi)polygon else falls back to default jts union method.

  67. def union(g: AtMostOneDimension): AtMostOneDimensionPolygonUnionResult

    Computes a Result that represents a Geometry made up of all the points in this Polygon and g.

  68. lazy val vertexCount: Int

    Get the number of vertices in this geometry

  69. lazy val vertices: Array[Point]

    Returns this Polygon's vertices.

  70. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  73. def within(g: TwoDimensions): Boolean

    Tests whether this Polygon is within the specified TwoDimensions g.

    Tests whether this Polygon is within the specified TwoDimensions g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*F**F***.

  74. def withinDistance(other: Geometry, dist: Double): Boolean

    Determine whether another Geometry is within a given distance

    Determine whether another Geometry is within a given distance

    other

    The geometry to check

    dist

    The radius of the circle within which this check is conducted

    Definition Classes
    Geometry
  75. def |(g: TwoDimensions): TwoDimensionsTwoDimensionsUnionResult

    Computes a Result that represents a Geometry made up of all the points in this Polygon and g.

  76. def |(g: AtMostOneDimension): AtMostOneDimensionPolygonUnionResult

    Computes a Result that represents a Geometry made up of all the points in this Polygon and g.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from TwoDimensions

Inherited from AtLeastOneDimension

Inherited from Dimensions

Inherited from Relatable

Inherited from Geometry

Inherited from AnyRef

Inherited from Any

Ungrouped