Esempio n. 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));
        }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
        }