# GeometryCollection

### Related Docs: object GeometryCollection | package vector

#### class GeometryCollection extends Geometry

A collection of geometries (itself a Geometry)

Linear Supertypes
Geometry, Serializable, Serializable, AnyRef, Any
Ordering
1. Alphabetic
2. By Inheritance
Inherited
1. GeometryCollection
2. Geometry
3. Serializable
4. Serializable
5. AnyRef
6. 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
3. #### def &(g: Geometry): TwoDimensionsTwoDimensionsIntersectionResult

Definition Classes
Geometry
4. #### final def ==(arg0: Any): Boolean

Definition Classes
AnyRef → Any

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

Definition Classes
Any
8. #### def centroid: PointOrNoResult

Calculate centroid of this Geometry

Calculate centroid of this Geometry

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

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( ... )
10. #### def disjoint(other: Geometry): Boolean

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

Calculate the distance to another Geometry

Calculate the distance to another Geometry

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

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

Definition Classes
AnyRef
14. #### def equals(that: Any): Boolean

Definition Classes
GeometryCollectionGeometry → AnyRef → Any
15. #### def finalize(): Unit

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

19. #### final def getClass(): Class[_]

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

Definition Classes
GeometryCollectionGeometry → AnyRef → Any
21. #### def interiorPoint: PointOrNoResult

Definition Classes
Geometry
22. #### 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
23. #### 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
24. #### def intersects(other: Geometry): Boolean

Definition Classes
Geometry
25. #### 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
26. #### final def isInstanceOf[T0]: Boolean

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

Check the validity of this geometry

Check the validity of this geometry

Definition Classes
Geometry
28. #### val jtsGeom: com.vividsolutions.jts.geom.GeometryCollection

Return the wrapped jts Geometry

Return the wrapped jts Geometry

Definition Classes
GeometryCollectionGeometry

33. #### final def ne(arg0: AnyRef): Boolean

Definition Classes
AnyRef
34. #### def normalized(): GeometryCollection

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

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

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

Definition Classes
AnyRef

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

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

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

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

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

Definition Classes
AnyRef
Annotations
@throws( ... )
44. #### 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(g: Geometry): TwoDimensionsTwoDimensionsIntersectionResult

Definition Classes
Geometry
Annotations
@deprecated
Deprecated

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