using GeoAPI.Geometries;
namespace GisSharpBlog.NetTopologySuite.Operation.Relate
{
///
/// Implements the Relate() operation on Geometrys.
///
public class RelateOp : GeometryGraphOperation
{
private readonly RelateComputer relate = null;
///
///
///
///
///
public RelateOp(IGeometry g0, IGeometry g1) : base(g0, g1)
{
relate = new RelateComputer(arg);
}
///
///
///
public IntersectionMatrix IntersectionMatrix
{
get
{
return relate.ComputeIM();
}
}
///
///
///
///
///
///
public static IntersectionMatrix Relate(IGeometry a, IGeometry b)
{
RelateOp relOp = new RelateOp(a, b);
IntersectionMatrix im = relOp.IntersectionMatrix;
return im;
}
}
}