org.locationtech.jts.algorithm.locate
SimplePointInAreaLocator
Companion class SimplePointInAreaLocator
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
- Alphabetic
- By Inheritance
- SimplePointInAreaLocator
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()