Package com.luciad.geometries
Class Patch
java.lang.Object
com.luciad.geometries.Geometry
com.luciad.geometries.Surface
com.luciad.geometries.Patch
- All Implemented Interfaces:
AutoCloseable
A patch is a surface based on a single ring, thus not having any holes.
You can read more about the available geometries here.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleancontains2D(Coordinate point) Returns if this patch contains the given point.protected voidfinalize()Returns the baseringgeometry on which the patch is based.Methods inherited from class com.luciad.geometries.Geometry
getBounds, getReference
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classSurface
-
getBaseGeometry
Returns the baseringgeometry on which the patch is based.- Returns:
- the base
ringgeometry on which the patch is based.
-
contains2D
Returns if this patch contains the given point.For these calculations, the height value of the given point or base geometry is ignored. I.e. only the horizontal coordinates are taken into account.
Limitations:
- Currently, this function doesn't support patches with a
CompositeRingas base geometry. In that case, an exception is thrown. - For patches with
PolylineRingbase geometries, a spherical approximation is used. - For patches with geodetic
PolylineRingbase geometries,LineInterpolationType#Linearis not supported.
- Parameters:
point- a point, defined in the same reference as the reference of thisPatch- Returns:
- whether this patch contains the given point.
- Throws:
IllegalArgumentException- when calling this function on a patch with a geodeticPolylineRingbase geometry with linear interpolation.- Since:
- 2025.0
- Currently, this function doesn't support patches with a
-