Пример #1
0
        // The following are methods that should be implemented on a geometry object according to
        // the OpenGIS Simple Features Specification

        /// <summary>
        /// Returns 'true' if this Geometry is 'spatially equal' to anotherGeometry
        /// </summary>
        public virtual bool Equals(Geometry other)
        {
            return(SpatialRelations.Equals(this, other));
        }
Пример #2
0
 /// <summary>
 /// Returns 'true' if this <see cref="Geometry"/> ‘spatially contains’ another <see cref="Geometry"/>.
 /// </summary>
 public virtual bool Contains(Geometry geom)
 {
     return(SpatialRelations.Contains(this, geom));
 }
Пример #3
0
 /// <summary>
 /// Returns 'true' if this <see cref="Geometry"/> 'spatially overlaps' another <see cref="Geometry"/>.
 /// </summary>
 public virtual bool Overlaps(Geometry geom)
 {
     return(SpatialRelations.Overlaps(this, geom));
 }
Пример #4
0
 /// <summary>
 /// Returns 'true' if this <see cref="Geometry"/> is ‘spatially within’ another <see cref="Geometry"/>.
 /// </summary>
 public virtual bool Within(Geometry geom)
 {
     return(SpatialRelations.Within(this, geom));
 }
Пример #5
0
 /// <summary>
 /// Returns 'true' if this <see cref="Geometry"/> ‘spatially crosses’ another <see cref="Geometry"/>.
 /// </summary>
 public virtual bool Crosses(Geometry geom)
 {
     return(SpatialRelations.Crosses(this, geom));
 }
Пример #6
0
 /// <summary>
 /// Returns 'true' if this <see cref="Geometry"/> ‘spatially touches’ another <see cref="Geometry"/>.
 /// </summary>
 public virtual bool Touches(Geometry geom)
 {
     return(SpatialRelations.Touches(this, geom));
 }
Пример #7
0
 /// <summary>
 /// Returns 'true' if this <see cref="Geometry"/> ‘spatially intersects’ another <see cref="Geometry"/>.
 /// </summary>
 public virtual bool Intersects(Geometry geom)
 {
     return(SpatialRelations.Intersects(this, geom));
 }
Пример #8
0
        /// <summary>
        /// Gets the geometry type of this class
        /// </summary>
        //public virtual GeometryType2 GeometryType
        //{
        //    get { return GeometryType2.Geometry; }
        //}

        #endregion

        #region "Methods for testing Spatial Relations between geometric objects"

        /// <summary>
        /// Returns 'true' if this Geometry is ‘spatially disjoint’ from another <see cref="Geometry"/>.
        /// </summary>
        public virtual bool Disjoint(Geometry geom)
        {
            return(SpatialRelations.Disjoint(this, geom));
        }