• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Spatial.DbGeometry类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Data.Entity.Spatial.DbGeometry的典型用法代码示例。如果您正苦于以下问题:C# DbGeometry类的具体用法?C# DbGeometry怎么用?C# DbGeometry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DbGeometry类属于System.Data.Entity.Spatial命名空间,在下文中一共展示了DbGeometry类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: SpatialGeometry

        internal SpatialGeometry(DbGeometry g, ICoordinateSystem coordinateSystem)
        {
            Debug.Assert(g!=null);
            if (g==null)
                throw new ArgumentNullException("g");

            _Geometry=g;
            _CoordinateSystem=coordinateSystem;
        }
开发者ID:mcartoixa,项目名称:GeoSIK,代码行数:9,代码来源:SpatialGeometry.cs


示例2: PointAt

 /// <summary>
 ///     Returns a point element of the given <see cref="T:System.Data.Entity.Spatial.DbGeometry" /> value, if it represents a linestring or linear ring.
 /// </summary>
 /// <returns>The point in geometryValue at position index, if it represents a linestring or linear ring; otherwise null.</returns>
 /// <param name="geometryValue">The geometry value, which need not represent a linestring or linear ring.</param>
 /// <param name="index">The position within the geometry value from which the element should be taken.</param>
 /// <exception cref="ArgumentNullException">
 ///     <paramref name="geometryValue" />
 ///     is null.
 /// </exception>
 /// <exception cref="ArgumentException">
 ///     <paramref name="geometryValue" />
 ///     is not compatible with this spatial services implementation.
 /// </exception>
 public abstract DbGeometry PointAt(DbGeometry geometryValue, int index);
开发者ID:hallco978,项目名称:entityframework,代码行数:15,代码来源:DbSpatialServices.cs


示例3: 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)
 {
     Contract.Requires(other != null);
     return _spatialProvider.Union(this, other);
 }
开发者ID:WangWilliam,项目名称:EntityFramework5,代码行数:11,代码来源:DbGeometry.cs


示例4: 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)
 {
     Contract.Requires(other != null);
     Contract.Requires(matrix != null);
     return _spatialProvider.Relate(this, other, matrix);
 }
开发者ID:WangWilliam,项目名称:EntityFramework5,代码行数:14,代码来源:DbGeometry.cs


示例5: 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)
 {
     Contract.Requires(other != null);
     return _spatialProvider.Within(this, other);
 }
开发者ID:WangWilliam,项目名称:EntityFramework5,代码行数:11,代码来源:DbGeometry.cs


示例6: 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)
 {
     Contract.Requires(other != null);
     return _spatialProvider.Disjoint(this, other);
 }
开发者ID:WangWilliam,项目名称:EntityFramework5,代码行数:11,代码来源:DbGeometry.cs


示例7: DbGeometryAdapter

        internal DbGeometryAdapter(DbGeometry value)
        {
            DebugCheck.NotNull(value);

            _value = value;
        }
开发者ID:christiandpena,项目名称:entityframework,代码行数:6,代码来源:DbGeometryAdapter.cs


示例8: InteriorRingAt

 /// <summary>
 ///     Returns an interior ring from the given <see cref="T:System.Data.Entity.Spatial.DbGeometry" /> value, if it represents a polygon.
 /// </summary>
 /// <returns>The interior ring in geometryValue at position index, if it represents a polygon; otherwise null.</returns>
 /// <param name="geometryValue">The geometry value, which need not represent a polygon.</param>
 /// <param name="index">The position within the geometry value from which the element should be taken.</param>
 /// <exception cref="ArgumentNullException">
 ///     <paramref name="geometryValue" />
 ///     is null.
 /// </exception>
 /// <exception cref="ArgumentException">
 ///     <paramref name="geometryValue" />
 ///     is not compatible with this spatial services implementation.
 /// </exception>
 public abstract DbGeometry InteriorRingAt(DbGeometry geometryValue, int index);
开发者ID:hallco978,项目名称:entityframework,代码行数:15,代码来源:DbSpatialServices.cs


示例9: AppendValue

 private void AppendValue(DbGeometry value, StringBuilder sql)
 {
     sql.Append("'");
     sql.Append(value);
     sql.Append("'");
 }
开发者ID:mono,项目名称:linux-packaging-npgsql,代码行数:6,代码来源:NpgsqlMigrationSqlGenerator.cs


示例10: GetExteriorRing

 /// <summary>
 ///     Returns a <see cref="T:System.Data.Entity.Spatial.DbGeometry" /> value that represents the exterior ring of the given DbGeometry value, which may be null if the value does not represent a polygon.
 /// </summary>
 /// <returns>A DbGeometry value representing the exterior ring on geometryValue, if it represents a polygon; otherwise null.</returns>
 /// <param name="geometryValue">The geometry value, which need not represent a polygon.</param>
 /// <exception cref="ArgumentNullException">
 ///     <paramref name="geometryValue" />
 ///     is null.
 /// </exception>
 /// <exception cref="ArgumentException">
 ///     <paramref name="geometryValue" />
 ///     is not compatible with this spatial services implementation.
 /// </exception>
 public abstract DbGeometry GetExteriorRing(DbGeometry geometryValue);
开发者ID:hallco978,项目名称:entityframework,代码行数:14,代码来源:DbSpatialServices.cs


示例11: GetInteriorRingCount

 /// <summary>
 ///     Returns the number of interior rings in the given <see cref="T:System.Data.Entity.Spatial.DbGeometry" /> value, if it represents a polygon.
 /// </summary>
 /// <returns>The number of elements in geometryValue, if it represents a polygon; otherwise null.</returns>
 /// <param name="geometryValue">The geometry value, which need not represent a polygon.</param>
 /// <exception cref="ArgumentNullException">
 ///     <paramref name="geometryValue" />
 ///     is null.
 /// </exception>
 /// <exception cref="ArgumentException">
 ///     <paramref name="geometryValue" />
 ///     is not compatible with this spatial services implementation.
 /// </exception>
 public abstract int? GetInteriorRingCount(DbGeometry geometryValue);
开发者ID:hallco978,项目名称:entityframework,代码行数:14,代码来源:DbSpatialServices.cs


示例12: GetPointOnSurface

 /// <summary>
 ///     Returns a <see cref="T:System.Data.Entity.Spatial.DbGeometry" /> value that represents a point on the surface of the given DbGeometry value, which may be null if the value does not represent a surface.
 /// </summary>
 /// <returns>
 ///     A <see cref="T:System.Data.Entity.Spatial.DbGeometry" /> value that represents a point on the surface of the given DbGeometry value.
 /// </returns>
 /// <param name="geometryValue">The geometry value, which need not represent a surface.</param>
 /// <exception cref="ArgumentNullException">
 ///     <paramref name="geometryValue" />
 ///     is null.
 /// </exception>
 /// <exception cref="ArgumentException">
 ///     <paramref name="geometryValue" />
 ///     is not compatible with this spatial services implementation.
 /// </exception>
 public abstract DbGeometry GetPointOnSurface(DbGeometry geometryValue);
开发者ID:hallco978,项目名称:entityframework,代码行数:16,代码来源:DbSpatialServices.cs


示例13: GetCentroid

 public abstract DbGeometry GetCentroid(DbGeometry geometryValue);
开发者ID:hallco978,项目名称:entityframework,代码行数:1,代码来源:DbSpatialServices.cs


示例14: GetArea

 /// <summary>
 ///     Returns a nullable double value that indicates the area of the given
 ///     <see
 ///         cref="T:System.Data.Entity.Spatial.DbGeometry" />
 ///     value, which may be null if the value does not represent a surface.
 /// </summary>
 /// <returns>
 ///     A nullable double value that indicates the area of the given <see cref="T:System.Data.Entity.Spatial.DbGeometry" /> value.
 /// </returns>
 /// <param name="geometryValue">The geometry value, which need not represent a surface.</param>
 /// <exception cref="ArgumentNullException">
 ///     <paramref name="geometryValue" />
 ///     is null.
 /// </exception>
 /// <exception cref="ArgumentException">
 ///     <paramref name="geometryValue" />
 ///     is not compatible with this spatial services implementation.
 /// </exception>
 public abstract double? GetArea(DbGeometry geometryValue);
开发者ID:hallco978,项目名称:entityframework,代码行数:19,代码来源:DbSpatialServices.cs


示例15: Reduce

 public static DbGeometry Reduce(DbGeometry geometryValue, Double? tolerance)
 {
     throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
 }
开发者ID:WangWilliam,项目名称:EntityFramework5,代码行数:4,代码来源:SqlSpatialFunctions.cs


示例16: Generate

 /// <summary>
 /// Generates SQL to specify a constant geometry default value being set on a column.
 /// This method just generates the actual value, not the SQL to set the default value.
 /// </summary>
 /// <param name="defaultValue"> The value to be set. </param>
 /// <returns> SQL representing the default value. </returns>
 protected virtual string Generate(DbGeometry defaultValue)
 {
     return "'" + defaultValue + "'";
 }
开发者ID:aspnet,项目名称:EntityFramework6,代码行数:10,代码来源:SqlServerMigrationSqlGenerator.cs


示例17: Generate

 /// <summary>
 /// Generates code to specify the default value for a <see cref="DbGeometry" /> column.
 /// </summary>
 /// <param name="defaultValue"> The value to be used as the default. </param>
 /// <returns> Code representing the default value. </returns>
 protected virtual string Generate(DbGeometry defaultValue)
 {
     return "DbGeometry.FromText(\"" + defaultValue.AsText() + "\", " + defaultValue.CoordinateSystemId + ")";
 }
开发者ID:Cireson,项目名称:EntityFramework6,代码行数:9,代码来源:VisualBasicMigrationCodeGenerator.cs


示例18: Geometry

 public ParameterModel Geometry(
     DbGeometry defaultValue = null,
     string defaultValueSql = null,
     string name = null,
     string storeType = null,
     bool outParameter = false)
 {
     return BuildParameter(
         PrimitiveTypeKind.Geometry,
         defaultValue,
         defaultValueSql,
         name: name,
         storeType: storeType,
         outParameter: outParameter);
 }
开发者ID:Cireson,项目名称:EntityFramework6,代码行数:15,代码来源:ParameterBuilder.cs


示例19: AsTextZM

 public static String AsTextZM(DbGeometry geometryValue)
 {
     throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
 }
开发者ID:WangWilliam,项目名称:EntityFramework5,代码行数:4,代码来源:SqlSpatialFunctions.cs


示例20: SpatialEquals

 /// <summary>
 /// Determines whether this DbGeometry is spatially equal to the specified DbGeometry argument.
 /// </summary>
 /// <param name="other">The geometry value that should be compared with this geometry value for equality.</param>
 /// <returns><c>true</c> if <paramref name="other"/> is spatially equal to this geometry value; otherwise <c>false</c>.</returns>
 /// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception>
 public bool SpatialEquals(DbGeometry other)
 {
     Contract.Requires(other != null);
     return _spatialProvider.SpatialEquals(this, other);
 }
开发者ID:WangWilliam,项目名称:EntityFramework5,代码行数:11,代码来源:DbGeometry.cs



注:本文中的System.Data.Entity.Spatial.DbGeometry类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# SqlServer.SqlServerMigrationSqlGenerator类代码示例发布时间:2022-05-26
下一篇:
C# Spatial.DbGeography类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap