org.geotools.geometry.iso.util.algorithm2D
Class SimplePointInAreaLocator
java.lang.Object
org.geotools.geometry.iso.util.algorithm2D.SimplePointInAreaLocator
public class SimplePointInAreaLocator
- extends java.lang.Object
Computes whether a point lies in the interior of an area Geometry
.
The algorithm used is only guaranteed to return correct results for points
which are not on the boundary of the Geometry.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimplePointInAreaLocator
public SimplePointInAreaLocator()
locate
public static int locate(Coordinate p,
GeometryImpl geom)
- locate is the main location function. It handles both single-element and
multi-element Geometries. The algorithm for multi-element Geometries is
more complex, since it has to take into account the boundaryDetermination
rule
- Parameters:
p
- geom
-
- Returns:
containsPointInPolygon
public static boolean containsPointInPolygon(Coordinate p,
SurfaceImpl aSurface)
Copyright © 1996-2010 Geotools. All Rights Reserved.