org.geoscript.geometry

Geometry

trait Geometry extends AnyRef

The Geometry trait provides a common parent type for types representing specific geometric entities such as points and line strings. All GeoScript geometry classes wrap their equivalent Geometry type from the Java Topology Suite (JTS).

See also

com.vividsolutions.jts.geom.Geometry

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Geometry
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def in (proj: Projection): Geometry

    Create a new Geometry equivalent to this one, but in the specified Projection.

    Create a new Geometry equivalent to this one, but in the specified Projection. If the projection for this geometry is known, this involves transforming the coordinates; otherwise the projection is merely associated with the existing coordinates.

    Attributes
    abstract
  2. def prepare (): Geometry

    Creates a prepared geometry equivalent to this one.

    Creates a prepared geometry equivalent to this one. Prepared geometries are slower to create, but provide faster implementations of various spatial operations.

    Attributes
    abstract
  3. def transform (dest: Projection): Geometry

    Like in, but fails if this Geometry doesn't have a projection set.

    Like in, but fails if this Geometry doesn't have a projection set.

    Attributes
    abstract
    See also

    in

  4. val underlying : Geometry

    The JTS geometry wrapped by this Geometry instance.

    The JTS geometry wrapped by this Geometry instance. Note that projection information is not preserved if you manipulate the geometry directly.

    Attributes
    abstract

Concrete Value Members

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  6. def area : Double

    The area enclosed by this geometry, in the same units as used by its coordinates.

  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def bounds : Bounds

    A jts.

    A jts.Envelope that fully encloses this Geometry.

  9. def buffer (dist: Double, segs: Int = 8, mode: Style = EndCap.Round): Geometry

    Create a new Geometry expanding a set distance out from the boundaries of this one.

    Create a new Geometry expanding a set distance out from the boundaries of this one.

    See also

    EndCap

  10. def centroid : Point

    A point that represents the "center of gravity" of this geometry's enclosed area.

    A point that represents the "center of gravity" of this geometry's enclosed area. Note that this point is not necessarily on the geometry!

  11. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def coordinates : Seq[Point]

    All the coordinates that compose this Geometry as a sequence.

  13. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  14. def equals (arg0: Any): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  17. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  18. def intersection (that: Geometry): Geometry

    Create a new Geometry which contains only the areas included by both this Geometry and the one passed as an argument.

  19. def intersects (that: Geometry): Boolean

    Determines whether this Geometry contains any common points with the provided one.

  20. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  21. def isValid : Boolean

    Are the coordinates of this geometry in an acceptable order? (no self-intersecting polygons, etc.

    Are the coordinates of this geometry in an acceptable order? (no self-intersecting polygons, etc.)

  22. def json : String

    A string representation of this Geometry in GeoJSON format

    A string representation of this Geometry in GeoJSON format

    See also

    http://geojson.org/

  23. def length : Double

    The length of the line segments that compose this geometry, in the same units as used by its coordinates.

  24. def mapVertices (op: (Point) ⇒ Point): Geometry

  25. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  26. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  27. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  28. def prepared : Boolean

    Tests whether this geometry is "prepared," optimized for certain spatial queries.

    Tests whether this geometry is "prepared," optimized for certain spatial queries.

    See also

    prepare

  29. def projection : Projection

    The Projection used for this Geometry's coordinates, or null if that is unspecified.

  30. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  31. def toString (): String

    Definition Classes
    Geometry → AnyRef → Any
  32. def union (that: Geometry): Geometry

    Create a new Geometry which contains only the areas included by either this Geometry or the one passed as an argument.

  33. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. def wkt : String

    A string representation of this Geometry in WKT (Well-Known Text) format.

    A string representation of this Geometry in WKT (Well-Known Text) format.

    See also

    http://en.wikipedia.org/wiki/Well-known_text

Inherited from AnyRef

Inherited from Any