public override byte[] AsBinary(DbGeography geographyValue) { geographyValue.CheckNull("geographyValue"); ReadOnlySpatialValues expectedValue = CheckCompatible(geographyValue); return(expectedValue.CloneBinary()); }
public override string AsGml(DbGeography geographyValue) { geographyValue.CheckNull("geographyValue"); ReadOnlySpatialValues expectedValue = CheckCompatible(geographyValue); return(expectedValue.GML); }
public override int GetCoordinateSystemId(DbGeography geographyValue) { geographyValue.CheckNull("geographyValue"); ReadOnlySpatialValues backingValue = CheckCompatible(geographyValue); return(backingValue.CoordinateSystemId); }
public override DbGeographyWellKnownValue CreateWellKnownValue(DbGeography geographyValue) { geographyValue.CheckNull("geographyValue"); ReadOnlySpatialValues backingValue = CheckCompatible(geographyValue); return(new DbGeographyWellKnownValue() { CoordinateSystemId = backingValue.CoordinateSystemId, WellKnownBinary = backingValue.CloneBinary(), WellKnownText = backingValue.Text }); }
/// <summary> /// Computes the symmetric difference of this DbGeography value and another DbGeography value. /// </summary> /// <param name="other">The geography value for which the symmetric difference with this value should be computed.</param> /// <returns>A new DbGeography value representing the symmetric difference between this geography value and <paramref name="other"/>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public DbGeography SymmetricDifference(DbGeography other) { other.CheckNull("other"); return(this.spatialSvcs.SymmetricDifference(this, other)); }
/// <summary> /// Computes the union of this DbGeography value and another DbGeography value. /// </summary> /// <param name="other">The geography value for which the union with this value should be computed.</param> /// <returns>A new DbGeography value representing the union between this geography value and <paramref name="other"/>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public DbGeography Union(DbGeography other) { other.CheckNull("other"); return(this.spatialSvcs.Union(this, other)); }
/// <summary> /// Computes the intersection of this DbGeography value and another DbGeography value. /// </summary> /// <param name="other">The geography value for which the intersection with this value should be computed.</param> /// <returns>A new DbGeography value representing the intersection between this geography value and <paramref name="other"/>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public DbGeography Intersection(DbGeography other) { other.CheckNull("other"); return(this.spatialSvcs.Intersection(this, other)); }
/// <summary> /// Computes the distance between the closest points in this DbGeography value and another DbGeography value. /// </summary> /// <param name="other">The geography value for which the distance from this value should be computed.</param> /// <returns>A double value that specifies the distance between the two closest points in this geography value and <paramref name="other"/>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public double?Distance(DbGeography other) { other.CheckNull("other"); return(this.spatialSvcs.Distance(this, other)); }
/// <summary> /// Determines whether this DbGeography is spatially disjoint from the specified DbGeography argument. /// </summary> /// <param name="other">The geography value that should be compared with this geography value for disjointness.</param> /// <returns><c>true</c> if <paramref name="other"/> is disjoint from this geography value; otherwise <c>false</c>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public bool Disjoint(DbGeography other) { other.CheckNull("other"); return(this.spatialSvcs.Disjoint(this, other)); }
/// <summary> /// Determines whether this DbGeography is spatially equal to the specified DbGeography argument. /// </summary> /// <param name="other">The geography value that should be compared with this geography value for equality.</param> /// <returns><c>true</c> if <paramref name="other"/> is spatially equal to this geography value; otherwise <c>false</c>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public bool SpatialEquals(DbGeography other) { other.CheckNull("other"); return(this.spatialSvcs.SpatialEquals(this, other)); }
/// <summary> /// Computes the distance between the closest points in this DbGeography value and another DbGeography value. /// </summary> /// <param name="other">The geography value for which the distance from this value should be computed.</param> /// <returns>A double value that specifies the distance between the two closest points in this geography value and <paramref name="other"/>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public double? Distance(DbGeography other) { other.CheckNull("other"); return this.spatialSvcs.Distance(this, other); }
public override byte[] AsBinary(DbGeography geographyValue) { geographyValue.CheckNull("geographyValue"); ReadOnlySpatialValues expectedValue = CheckCompatible(geographyValue); return expectedValue.CloneBinary(); }
/// <summary> /// Computes the symmetric difference of this DbGeography value and another DbGeography value. /// </summary> /// <param name="other">The geography value for which the symmetric difference with this value should be computed.</param> /// <returns>A new DbGeography value representing the symmetric difference between this geography value and <paramref name="other"/>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public DbGeography SymmetricDifference(DbGeography other) { other.CheckNull("other"); return this.spatialSvcs.SymmetricDifference(this, other); }
/// <summary> /// Computes the union of this DbGeography value and another DbGeography value. /// </summary> /// <param name="other">The geography value for which the union with this value should be computed.</param> /// <returns>A new DbGeography value representing the union between this geography value and <paramref name="other"/>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public DbGeography Union(DbGeography other) { other.CheckNull("other"); return this.spatialSvcs.Union(this, other); }
/// <summary> /// Computes the intersection of this DbGeography value and another DbGeography value. /// </summary> /// <param name="other">The geography value for which the intersection with this value should be computed.</param> /// <returns>A new DbGeography value representing the intersection between this geography value and <paramref name="other"/>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public DbGeography Intersection(DbGeography other) { other.CheckNull("other"); return this.spatialSvcs.Intersection(this, other); }
public override DbGeographyWellKnownValue CreateWellKnownValue(DbGeography geographyValue) { geographyValue.CheckNull("geographyValue"); ReadOnlySpatialValues backingValue = CheckCompatible(geographyValue); return new DbGeographyWellKnownValue() { CoordinateSystemId = backingValue.CoordinateSystemId, WellKnownBinary = backingValue.CloneBinary(), WellKnownText = backingValue.Text }; }
/// <summary> /// Determines whether this DbGeography is spatially disjoint from the specified DbGeography argument. /// </summary> /// <param name="other">The geography value that should be compared with this geography value for disjointness.</param> /// <returns><c>true</c> if <paramref name="other"/> is disjoint from this geography value; otherwise <c>false</c>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public bool Disjoint(DbGeography other) { other.CheckNull("other"); return this.spatialSvcs.Disjoint(this, other); }
public override int GetCoordinateSystemId(DbGeography geographyValue) { geographyValue.CheckNull("geographyValue"); ReadOnlySpatialValues backingValue = CheckCompatible(geographyValue); return backingValue.CoordinateSystemId; }
/// <summary> /// Determines whether this DbGeography value spatially intersects the specified DbGeography argument. /// </summary> /// <param name="other">The geography value that should be compared with this geography value for intersection.</param> /// <returns><c>true</c> if <paramref name="other"/> intersects this geography value; otherwise <c>false</c>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public bool Intersects(DbGeography other) { other.CheckNull("other"); return this.spatialSvcs.Intersects(this, other); }
public override string AsGml(DbGeography geographyValue) { geographyValue.CheckNull("geographyValue"); ReadOnlySpatialValues expectedValue = CheckCompatible(geographyValue); return expectedValue.GML; }
/// <summary> /// Determines whether this DbGeography is spatially equal to the specified DbGeography argument. /// </summary> /// <param name="other">The geography value that should be compared with this geography value for equality.</param> /// <returns><c>true</c> if <paramref name="other"/> is spatially equal to this geography value; otherwise <c>false</c>.</returns> /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception> public bool SpatialEquals(DbGeography other) { other.CheckNull("other"); return this.spatialSvcs.SpatialEquals(this, other); }