예제 #1
0
        /// <summary>
        /// Determines whether this instance contains the specified point
        /// </summary>
        /// <param name="x">The x coordinate.</param>
        /// <param name="y">The y coordinate.</param>
        /// <returns>
        ///     <c>true</c> if this instance contains the specified point
        /// </returns>
        public bool Contains(double x, double y)
        {
            IPoint pt       = FdoGeometryFactory.Instance.CreatePoint(FdoGeometryUtil.FDO_DIM_XY, new double[] { x, y });
            bool   contains = SpatialUtility.Evaluate(this.InternalInstance, OSGeo.FDO.Filter.SpatialOperations.SpatialOperations_Contains, pt);

            pt.Dispose();
            return(contains);
        }
예제 #2
0
        /// <summary>
        /// Determines whether this instance contains the specified envelope
        /// </summary>
        /// <param name="env">The envelope</param>
        /// <returns>
        ///     <c>true</c> if this instance contains the specified envelope; otherwise, <c>false</c>.
        /// </returns>
        public bool Contains(IEnvelope env)
        {
            FdoGeometryFactory fact = FdoGeometryFactory.Instance;
            IGeometry          geom = fact.CreateGeometry(env);
            bool contains           = SpatialUtility.Evaluate(this.InternalInstance, OSGeo.FDO.Filter.SpatialOperations.SpatialOperations_Contains, geom);

            geom.Dispose();
            return(contains);
        }
예제 #3
0
 /// <summary>
 /// Determines whether this instance's envelope intersects the specified geometry
 /// </summary>
 /// <param name="geom">The geometry to test against</param>
 /// <returns></returns>
 public bool EnvelopeIntersects(IFdoGeometry geom)
 {
     return(SpatialUtility.Evaluate(this.InternalInstance, OSGeo.FDO.Filter.SpatialOperations.SpatialOperations_EnvelopeIntersects, geom.InternalInstance));
 }
예제 #4
0
 /// <summary>
 /// Determines whether this instance is inside the specified geometry
 /// </summary>
 /// <param name="geom">The geometry to test against</param>
 /// <returns></returns>
 public bool Inside(IFdoGeometry geom)
 {
     return(SpatialUtility.Evaluate(this.InternalInstance, OSGeo.FDO.Filter.SpatialOperations.SpatialOperations_Inside, geom.InternalInstance));
 }