# MultiPolygon

### Related Docs: object MultiPolygon | package vector

#### case class MultiPolygon(jtsGeom: com.vividsolutions.jts.geom.MultiPolygon) extends MultiGeometry with TwoDimensions with Product with Serializable

Class representing a geometry of multiple polygons

Linear Supertypes
Product, Equals, TwoDimensions, AtLeastOneDimension, Dimensions, MultiGeometry, Geometry, Serializable, Serializable, AnyRef, Any
Ordering
1. Alphabetic
2. By Inheritance
Inherited
1. MultiPolygon
2. Product
3. Equals
4. TwoDimensions
5. AtLeastOneDimension
6. Dimensions
7. MultiGeometry
8. Geometry
9. Serializable
10. Serializable
11. AnyRef
12. Any
1. Hide All
2. Show All
Visibility
1. Public
2. All

### Value Members

1. #### final def !=(arg0: Any): Boolean

Definition Classes
AnyRef → Any
2. #### final def ##(): Int

Definition Classes
AnyRef → Any

7. #### def &(g: Geometry): TwoDimensionsTwoDimensionsIntersectionResult

Definition Classes
Geometry

14. #### final def ==(arg0: Any): Boolean

Definition Classes
AnyRef → Any

16. #### 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
17. #### final def asInstanceOf[T0]: T0

Definition Classes
Any

19. #### def buffer(d: Double): TwoDimensionsTwoDimensionsUnionResult

Computes a area containing these geometries and buffered by size d.

Computes a area containing these geometries and buffered by size d.

Definition Classes
MultiGeometry
20. #### def centroid: PointOrNoResult

Calculate centroid of this Geometry

Calculate centroid of this Geometry

Definition Classes
Geometry
21. #### def clone(): AnyRef

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( ... )

34. #### def disjoint(other: Geometry): Boolean

Definition Classes
Geometry
35. #### def distance(other: Geometry): Double

Calculate the distance to another Geometry

Calculate the distance to another Geometry

Definition Classes
Geometry
36. #### def envelope: Extent

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

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

Definition Classes
Geometry → AnyRef → Any
39. #### def finalize(): Unit

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

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

Definition Classes
Geometry → AnyRef → Any
42. #### def interiorPoint: PointOrNoResult

Definition Classes
Geometry

48. #### 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

53. #### def intersectionSafe(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
54. #### def intersects(other: Geometry): Boolean

Definition Classes
Geometry
55. #### def isEmpty: Boolean

Is this Geometry empty? This is faster than checking manually like:

Is this Geometry empty? This is faster than checking manually like:

```val mp: MultiPoint = ...
val ps: Array[Point] = mp.points  // `.points` is a lazy val with processing overhead

ps.isEmpty  // possible, but mp.isEmpty is faster```

It would be similar for MultiLine or MultiPolygon.

Definition Classes
Geometry
56. #### final def isInstanceOf[T0]: Boolean

Definition Classes
Any
57. #### def isValid: Boolean

Check the validity of this geometry

Check the validity of this geometry

Definition Classes
Geometry
58. #### val jtsGeom: com.vividsolutions.jts.geom.MultiPolygon

Return the wrapped jts Geometry

Return the wrapped jts Geometry

Definition Classes
MultiPolygonDimensionsGeometry
59. #### final def ne(arg0: AnyRef): Boolean

Definition Classes
AnyRef
60. #### def normalized(): MultiPolygon

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

61. #### final def notify(): Unit

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

Definition Classes
AnyRef

64. #### lazy val polygons: Array[Polygon]

Returns the Polygons contained in MultiPolygon.

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

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

Definition Classes
Geometry → AnyRef → Any

79. #### lazy val vertexCount: Int

Get the number of vertices in this geometry

80. #### lazy val vertices: Array[Point]

Returns this MulitPolygon's vertices.

81. #### final def wait(): Unit

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

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

Definition Classes
AnyRef
Annotations
@throws( ... )

85. #### 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

### Deprecated Value Members

1. #### def safeIntersection(ls: MultiLine): OneDimensionAtLeastOneDimensionIntersectionResult

Annotations
@deprecated
Deprecated

(Since version 1.2) This will be removed in 2.0 - use intersectionSafe instead

2. #### def safeIntersection(g: TwoDimensions): TwoDimensionsTwoDimensionsIntersectionResult

Annotations
@deprecated
Deprecated

(Since version 1.2) This will be removed in 2.0 - use intersectionSafe instead

3. #### def safeIntersection(l: Line): OneDimensionAtLeastOneDimensionIntersectionResult

Annotations
@deprecated
Deprecated

(Since version 1.2) This will be removed in 2.0 - use intersectionSafe instead

4. #### def safeIntersection(p: Point): PointOrNoResult

Annotations
@deprecated
Deprecated

(Since version 1.2) This will be removed in 2.0 - use intersectionSafe instead

5. #### def safeIntersection(g: Geometry): TwoDimensionsTwoDimensionsIntersectionResult

Definition Classes
Geometry
Annotations
@deprecated
Deprecated

(Since version 1.2) This will be removed in 2.0 - use intersectionSafe instead