# Polygon

#### object Polygon extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
1. Alphabetic
2. By inheritance
Inherited
1. Polygon
2. Serializable
3. Serializable
4. AnyRef
5. Any
1. Hide All
2. Show all
Visibility
1. Public
2. All

### 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. #### final def ==(arg0: AnyRef): Boolean

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

Definition Classes
Any
6. #### def apply[D](g: com.vividsolutions.jts.geom.Geometry, data: D): Polygon[D]

Create a polgyon feature from a JTS Geometry object.

Create a polgyon feature from a JTS Geometry object.

Beware: Only use when you are certain the Geometry object is a polygon.

g

JTS Geometry

7. #### def apply[D](coords: Seq[Seq[Seq[Double]]], data: D)(implicit dummy: DI, dummy2: DI): Polygon[D]

Create a polygon using an array of rings, the first being the exterior ring.

Create a polygon using an array of rings, the first being the exterior ring.

Each ring array is an array of two element coordinate arrays, e.g. Array(1.0, 2.0)

The top level list is the list of rings, the first inner list is a list of coordinates, and each inner list has two elements, x and y.

coords

A list of polygon rings, represented as a list of two element lists.

data

The data for this feature.

8. #### def apply[D](coords: Array[Array[Array[Double]]], data: D): Polygon[D]

Create a polygon using an array of rings, the first being the exterior ring.

Create a polygon using an array of rings, the first being the exterior ring.

Each ring array is an array of two element coordinate arrays, e.g. Array(x,y)

9. #### def apply[D](exterior: Array[Coordinate], holes: Array[Array[Coordinate]], data: D): Polygon[D]

Create a polygon with arrays of JTS coordinate objects.

Create a polygon with arrays of JTS coordinate objects.

exterior

Coordinates of the exterior shell

holes

Interior holes represented by array of coordinate arrays

data

The data of this feature

10. #### def apply[D](coords: Array[Coordinate], data: D): Polygon[D]

Create a polygon with an array of JTS Coordinate objects.

Create a polygon with an array of JTS Coordinate objects.

coords

Coordinates of the polygon exterior

data

The data of this feature

11. #### def apply[D](coords: Array[Double], data: D): Polygon[D]

Create a polygon using a one-dimensional array with alternating x and y values.

Create a polygon using a one-dimensional array with alternating x and y values.

coords

Array of alternating x and y values

data

The data of this feature

13. #### def apply[D](tpls: Seq[(Double, Double)], data: D): Polygon[D]

Create a polygon using a list of tuples.

Create a polygon using a list of tuples.

This method is not very efficient -- use only for small polygons.

tpls

Seq of (x,y) tuples

data

The data of this feature

14. #### def apply[D](p: com.vividsolutions.jts.geom.Polygon, data: D): Polygon[D]

Create a polgyon feature from a JTS Polygon object.

Create a polgyon feature from a JTS Polygon object.

p

JTS Polygon object

data

The data of this feature

15. #### final def asInstanceOf[T0]: T0

Definition Classes
Any
16. #### def clone(): AnyRef

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( ... )
17. #### def createJtsPolygon(exterior: Array[Coordinate], holes: Array[Array[Coordinate]]): com.vividsolutions.jts.geom.Polygon

Attributes
protected[geotrellis]
18. #### def createJtsPolygonFromArrays(exterior: Array[Array[Double]], holes: Array[Array[Array[Double]]]): com.vividsolutions.jts.geom.Polygon

Attributes
protected[geotrellis]
19. #### def createJtsPolygonFromSeqs(exterior: Seq[Seq[Double]], holes: Seq[Seq[Seq[Double]]]): com.vividsolutions.jts.geom.Polygon

Attributes
protected[geotrellis]
20. #### def empty[D](data: D): Polygon[D]

Create an empty polygon feature with data.

Create an empty polygon feature with data.

data

The data of this feature

21. #### def empty(): Polygon[_]

Create an empty polygon feature.

22. #### final def eq(arg0: AnyRef): Boolean

Definition Classes
AnyRef
23. #### def equals(arg0: Any): Boolean

Definition Classes
AnyRef → Any

25. #### def finalize(): Unit

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

Definition Classes
AnyRef → Any
27. #### def hashCode(): Int

Definition Classes
AnyRef → Any
28. #### final def isInstanceOf[T0]: Boolean

Definition Classes
Any
29. #### final def ne(arg0: AnyRef): Boolean

Definition Classes
AnyRef
30. #### final def notify(): Unit

Definition Classes
AnyRef
31. #### final def notifyAll(): Unit

Definition Classes
AnyRef
32. #### final def synchronized[T0](arg0: ⇒ T0): T0

Definition Classes
AnyRef
33. #### def toString(): String

Definition Classes
AnyRef → Any
34. #### final def wait(): Unit

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

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

Definition Classes
AnyRef
Annotations
@throws( ... )