コード例 #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>
 /// 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));
 }