コード例 #1
0
ファイル: FdoGeometry.cs プロジェクト: beritec/fdotoolbox
        /// <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
ファイル: FdoGeometry.cs プロジェクト: beritec/fdotoolbox
        /// <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
ファイル: FdoGeometry.cs プロジェクト: beritec/fdotoolbox
 /// <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
ファイル: FdoGeometry.cs プロジェクト: beritec/fdotoolbox
 /// <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));
 }