Packages

object SimplePointInAreaLocator

Computes the location of points relative to a {link Polygonal} {link Geometry}, using a simple O(n) algorithm.

The algorithm used reports if a point lies in the interior, exterior, or exactly on the boundary of the Geometry.

Instance methods are provided to implement the interface {link PointInAreaLocator}. However, they provide no performance advantage over the class methods.

This algorithm is suitable for use in cases where only a few points will be tested. If many points will be tested, {link IndexedPointInAreaLocator} may provide better performance.

Version

1.7

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimplePointInAreaLocator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def containsPointInPolygon(p: Coordinate, poly: Polygon): Boolean

    Determines whether a point lies in a {link Polygon}.

    Determines whether a point lies in a {link Polygon}. If the point lies on the polygon boundary it is considered to be inside.

    p

    the point to test

    poly

    the geometry to test return true if the point lies in or on the polygon

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def isContained(p: Coordinate, geom: Geometry): Boolean

    Determines whether a point is contained in a {link Geometry}, or lies on its boundary.

    Determines whether a point is contained in a {link Geometry}, or lies on its boundary. This is a convenience method for

     Location.EXTERIOR != locate(p, geom)
    

    p

    the point to test

    geom

    the geometry to test return true if the point lies in or on the geometry

  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def locate(p: Coordinate, geom: Geometry): Int

    Determines the {link Location} of a point in an areal {link Geometry}.

    Determines the {link Location} of a point in an areal {link Geometry}. The return value is one of:

    • {link Location.INTERIOR} if the point is in the geometry interior
    • {link Location.BOUNDARY} if the point lies exactly on the boundary
    • {link Location.EXTERIOR} if the point is outside the geometry
    p

    the point to test

    geom

    the areal geometry to test return the Location of the point in the geometry

  15. def locatePointInPolygon(p: Coordinate, poly: Polygon): Int

    Determines the {link Location} of a point in a {link Polygon}.

    Determines the {link Location} of a point in a {link Polygon}. The return value is one of:

    • {link Location.INTERIOR} if the point is in the geometry interior
    • {link Location.BOUNDARY} if the point lies exactly on the boundary
    • {link Location.EXTERIOR} if the point is outside the geometry

    This method is provided for backwards compatibility only. Use {link #locate(Coordinate, Geometry)} instead.

    p

    the point to test

    poly

    the geometry to test return the Location of the point in the polygon

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped