public interface IFeatureGeometry extends IGeometry
All geometries can be represented as an equivalent IFeatureGeometry.
| Modifier and Type | Method and Description |
|---|---|
IFeatureGeometry |
getCopy()
Returns a non-transient copy of this
IFeatureGeometry in this IFeatureGeometry's coordinate system. |
IFeatureGeometry |
getCopy(CoordSys csys)
Returns a non-transient copy of this
IFeatureGeometry in the specified coordinate system. |
DirectPosition |
getRepresentativePoint()
Returns the representative point of this
IFeatureGeometry. |
void |
initializeRepresentativePoint()
Set the representative point for this
IFeatureGeometry back to the default calculated value. |
void |
setRepresentativePoint(DirectPosition dp)
Set the representative point of this
IFeatureGeometry (optional operation). |
contains, getArea, getCoordSys, getDimension, getEnvelope, getPerimeter, getSpatialInfo, getType, isEmpty, isTransient, mAllSet, mSet, zAllSet, zSetDirectPosition getRepresentativePoint() throws InvalidGeometryException
IFeatureGeometry.
The representative point is a point that is guaranteed to be
on the geometry.
If the representative point was specifically set for
this geometry that direct position is returned, otherwise
a representative point is calculated. The calculation attempts to
find a point that is centrally located in the geometry.IFeatureGeometry.InvalidGeometryException - if the geometry is empty.IFeatureGeometry.setRepresentativePoint(DirectPosition)void setRepresentativePoint(DirectPosition dp) throws InvalidGeometryOperationException, InvalidGeometryException, UnsupportedGeometryOperationException
IFeatureGeometry (optional operation).dp - the DirectPosition in this geometry to use as the representative point in
the future.InvalidGeometryOperationException - if the position is not contained by this geometry.InvalidGeometryException - if this geometry is emptyUnsupportedGeometryOperationException - if this operation is not supported by the IFeatureGeometryvoid initializeRepresentativePoint()
throws InvalidGeometryException
IFeatureGeometry back to the default calculated value.InvalidGeometryException - if this geometry is emptyUnsupportedGeometryOperationException - - if this operation is not supported by the IFeatureGeometryIFeatureGeometry getCopy()
IFeatureGeometry in this IFeatureGeometry's coordinate system.getCopy in interface IGeometryIFeatureGeometry in this IFeatureGeometry's coordinate system.IFeatureGeometry.getCopy(com.mapinfo.midev.coordsys.CoordSys),
IGeometry.isTransient()IFeatureGeometry getCopy(CoordSys csys)
IFeatureGeometry in the specified coordinate system.getCopy in interface IGeometrycsys - coordinate system of the returned copyIFeatureGeometry in the specified coordinate system.IGeometry.isTransient()© 2007, 2022 Precisely. All rights reserved.