本文整理汇总了C#中System.Data.Spatial.DbGeometry.CheckNull方法的典型用法代码示例。如果您正苦于以下问题:C# DbGeometry.CheckNull方法的具体用法?C# DbGeometry.CheckNull怎么用?C# DbGeometry.CheckNull使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Data.Spatial.DbGeometry
的用法示例。
在下文中一共展示了DbGeometry.CheckNull方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AsGml
public override string AsGml(DbGeometry geometryValue)
{
geometryValue.CheckNull("geometryValue");
ReadOnlySpatialValues expectedValue = CheckCompatible(geometryValue);
return expectedValue.GML;
}
示例2: GetCoordinateSystemId
public override int GetCoordinateSystemId(DbGeometry geometryValue)
{
geometryValue.CheckNull("geometryValue");
ReadOnlySpatialValues backingValue = CheckCompatible(geometryValue);
return backingValue.CoordinateSystemId;
}
示例3: AsBinary
public override byte[] AsBinary(DbGeometry geometryValue)
{
geometryValue.CheckNull("geometryValue");
ReadOnlySpatialValues expectedValue = CheckCompatible(geometryValue);
return expectedValue.CloneBinary();
}
示例4: SymmetricDifference
/// <summary>
/// Computes the symmetric difference between this DbGeometry value and another DbGeometry value.
/// </summary>
/// <param name="other">The geometry value for which the symmetric difference with this value should be computed.</param>
/// <returns>A new DbGeometry value representing the symmetric difference between this geometry value and <paramref name="other"/>.</returns>
/// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception>
public DbGeometry SymmetricDifference(DbGeometry other)
{
other.CheckNull("other");
return this.spatialSvcs.SymmetricDifference(this, other);
}
示例5: CreateWellKnownValue
public override DbGeometryWellKnownValue CreateWellKnownValue(DbGeometry geometryValue)
{
geometryValue.CheckNull("geometryValue");
ReadOnlySpatialValues backingValue = CheckCompatible(geometryValue);
return new DbGeometryWellKnownValue() { CoordinateSystemId = backingValue.CoordinateSystemId, WellKnownBinary = backingValue.CloneBinary(), WellKnownText = backingValue.Text };
}
示例6: Intersection
/// <summary>
/// Computes the intersection of this DbGeometry value and another DbGeometry value.
/// </summary>
/// <param name="other">The geometry value for which the intersection with this value should be computed.</param>
/// <returns>A new DbGeometry value representing the intersection between this geometry value and <paramref name="other"/>.</returns>
/// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception>
public DbGeometry Intersection(DbGeometry other)
{
other.CheckNull("other");
return this.spatialSvcs.Intersection(this, other);
}
示例7: Union
/// <summary>
/// Computes the union of this DbGeometry value and another DbGeometry value.
/// </summary>
/// <param name="other">The geometry value for which the union with this value should be computed.</param>
/// <returns>A new DbGeometry value representing the union between this geometry value and <paramref name="other"/>.</returns>
/// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception>
public DbGeometry Union(DbGeometry other)
{
other.CheckNull("other");
return this.spatialSvcs.Union(this, other);
}
示例8: Relate
/// <summary>
/// Determines whether this DbGeometry value spatially relates to the specified DbGeometry argument according to the
/// given Dimensionally Extended Nine-Intersection Model (DE-9IM) intersection pattern.
/// </summary>
/// <param name="other">The geometry value that should be compared with this geometry value for relation.</param>
/// <param name="matrix">A string that contains the text representation of the (DE-9IM) intersection pattern that defines the relation.</param>
/// <returns><c>true</c> if this geometry value relates to <paramref name="other"/> according to the specified intersection pattern matrix; otherwise <c>false</c>.</returns>
/// <exception cref="ArgumentNullException"><paramref name="other"/> or <paramref name="matrix"/> is null.</exception>
public bool Relate(DbGeometry other, string matrix)
{
other.CheckNull("other");
matrix.CheckNull("matrix");
return this.spatialSvcs.Relate(this, other, matrix);
}
示例9: Distance
/// <summary>
/// Computes the distance between the closest points in this DbGeometry value and another DbGeometry value.
/// </summary>
/// <param name="other">The geometry 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 geometry value and <paramref name="other"/>.</returns>
/// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception>
public double? Distance(DbGeometry other)
{
other.CheckNull("other");
return this.spatialSvcs.Distance(this, other);
}
示例10: Contains
/// <summary>
/// Determines whether this DbGeometry value spatially contains the specified DbGeometry argument.
/// </summary>
/// <param name="other">The geometry value that should be compared with this geometry value for containment.</param>
/// <returns><c>true</c> if this geometry value contains <paramref name="other"/>; otherwise <c>false</c>.</returns>
/// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception>
public bool Contains(DbGeometry other)
{
other.CheckNull("other");
return this.spatialSvcs.Contains(this, other);
}
示例11: Overlaps
/// <summary>
/// Determines whether this DbGeometry value spatially overlaps the specified DbGeometry argument.
/// </summary>
/// <param name="other">The geometry value that should be compared with this geometry value for overlap.</param>
/// <returns><c>true</c> if this geometry value overlaps <paramref name="other"/>; otherwise <c>false</c>.</returns>
/// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception>
public bool Overlaps(DbGeometry other)
{
other.CheckNull("other");
return this.spatialSvcs.Overlaps(this, other);
}
示例12: Within
/// <summary>
/// Determines whether this DbGeometry value is spatially within the specified DbGeometry argument.
/// </summary>
/// <param name="other">The geometry value that should be compared with this geometry value for containment.</param>
/// <returns><c>true</c> if this geometry value is within <paramref name="other"/>; otherwise <c>false</c>.</returns>
/// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception>
public bool Within(DbGeometry other)
{
other.CheckNull("other");
return this.spatialSvcs.Within(this, other);
}
示例13: Touches
/// <summary>
/// Determines whether this DbGeometry value spatially touches the specified DbGeometry argument.
/// </summary>
/// <param name="other">The geometry value that should be compared with this geometry value.</param>
/// <returns><c>true</c> if <paramref name="other"/> touches this geometry value; otherwise <c>false</c>.</returns>
/// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception>
public bool Touches(DbGeometry other)
{
other.CheckNull("other");
return this.spatialSvcs.Touches(this, other);
}
示例14: Intersects
/// <summary>
/// Determines whether this DbGeometry value spatially intersects the specified DbGeometry argument.
/// </summary>
/// <param name="other">The geometry value that should be compared with this geometry value for intersection.</param>
/// <returns><c>true</c> if <paramref name="other"/> intersects this geometry value; otherwise <c>false</c>.</returns>
/// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception>
public bool Intersects(DbGeometry other)
{
other.CheckNull("other");
return this.spatialSvcs.Intersects(this, other);
}
示例15: Disjoint
/// <summary>
/// Determines whether this DbGeometry is spatially disjoint from the specified DbGeometry argument.
/// </summary>
/// <param name="other">The geometry value that should be compared with this geometry value for disjointness.</param>
/// <returns><c>true</c> if <paramref name="other"/> is disjoint from this geometry value; otherwise <c>false</c>.</returns>
/// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception>
public bool Disjoint(DbGeometry other)
{
other.CheckNull("other");
return this.spatialSvcs.Disjoint(this, other);
}