Example #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));
        }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #8
0
 /// <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));
 }