本文整理汇总了C#中System.Data.Spatial.DbGeography.CheckNull方法的典型用法代码示例。如果您正苦于以下问题:C# DbGeography.CheckNull方法的具体用法?C# DbGeography.CheckNull怎么用?C# DbGeography.CheckNull使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Data.Spatial.DbGeography
的用法示例。
在下文中一共展示了DbGeography.CheckNull方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AsBinary
public override byte[] AsBinary(DbGeography geographyValue)
{
geographyValue.CheckNull("geographyValue");
ReadOnlySpatialValues expectedValue = CheckCompatible(geographyValue);
return expectedValue.CloneBinary();
}
示例2: AsGml
public override string AsGml(DbGeography geographyValue)
{
geographyValue.CheckNull("geographyValue");
ReadOnlySpatialValues expectedValue = CheckCompatible(geographyValue);
return expectedValue.GML;
}
示例3: CreateWellKnownValue
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 };
}
示例4: GetCoordinateSystemId
public override int GetCoordinateSystemId(DbGeography geographyValue)
{
geographyValue.CheckNull("geographyValue");
ReadOnlySpatialValues backingValue = CheckCompatible(geographyValue);
return backingValue.CoordinateSystemId;
}
示例5: Union
/// <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);
}
示例6: SymmetricDifference
/// <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);
}
示例7: Intersection
/// <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);
}
示例8: Distance
/// <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);
}
示例9: Intersects
/// <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);
}
示例10: Disjoint
/// <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);
}
示例11: SpatialEquals
/// <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);
}