当前位置: 首页>>代码示例>>C#>>正文


C# ICoordinateSystem.IsEquivalentTo方法代码示例

本文整理汇总了C#中ICoordinateSystem.IsEquivalentTo方法的典型用法代码示例。如果您正苦于以下问题:C# ICoordinateSystem.IsEquivalentTo方法的具体用法?C# ICoordinateSystem.IsEquivalentTo怎么用?C# ICoordinateSystem.IsEquivalentTo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ICoordinateSystem的用法示例。


在下文中一共展示了ICoordinateSystem.IsEquivalentTo方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Parse

        /// <summary>Parses the geometry defined by the specified WKT representation, in the specified coordinate system.</summary>
        /// <param name="text">The WKT representation of the geometry.</param>
        /// <param name="system">The coordinate system of the WKT representation.</param>
        public void Parse(string text, ICoordinateSystem system)
        {
            Debug.Assert(system!=null);
            if (system==null)
                throw new ArgumentNullException("system");

            IGeometryBuilder builder=CreateBuilder(system);
            builder.Parse(text, system);
            IGeometry g=(IGeometry)builder.ConstructedGeometry;

            if ((TargetSystem!=null) && !system.IsEquivalentTo(TargetSystem))
                g.Populate(this);
            else
                _Geometry=g;
        }
开发者ID:mcartoixa,项目名称:GeoSIK,代码行数:18,代码来源:SqlGeometryBuilder.cs

示例2: Parse

        /// <summary>Returns the geometry defined by the specified WKB representation, in the specified coordinate system.</summary>
        /// <param name="data">The WKB representation of the geometry.</param>
        /// <param name="system">The coordinate system of the WKB representation.</param>
        public void Parse(byte[] data, ICoordinateSystem system)
        {
            Debug.Assert(system!=null);
            if (system==null)
                throw new ArgumentNullException("system");

            var g=Factory.CreateGeometryFromWkb(data);

            if ((TargetSystem!=null) && !system.IsEquivalentTo(TargetSystem))
            {
                if (_Geometry!=null)
                {
                    _Geometry.Dispose();
                    _Geometry=null;
                }
                using (var orig=new FdoGeometry(g, system))
                    orig.Populate(this);
            } else
                _Geometry=new FdoGeometry(g, system);
        }
开发者ID:mcartoixa,项目名称:GeoSIK,代码行数:23,代码来源:FdoGeometryBuilder.cs

示例3: Parse

        /// <summary>Returns the geometry defined by the specified WKB representation, in the specified coordinate system.</summary>
        /// <param name="data">The WKB representation of the geometry.</param>
        /// <param name="system">The coordinate system of the WKB representation.</param>
        public void Parse(byte[] data, ICoordinateSystem system)
        {
            Debug.Assert(system!=null);
            if (system==null)
                throw new ArgumentNullException("system");

            var g=SmGeometries.Geometry.GeomFromWKB(data);
            g.SpatialReference=CoordinateSystemUtils.Convert(system);

            if ((TargetSystem!=null) && !system.IsEquivalentTo(TargetSystem))
            {
                _Geometry=null;
                var orig=new SharpGeometry(g);
                orig.Populate(this);
            } else
                _Geometry=new SharpGeometry(g);
        }
开发者ID:mcartoixa,项目名称:GeoSIK,代码行数:20,代码来源:SharpGeometryBuilder.cs

示例4: Parse

        /// <summary>Parses the geometry defined by the specified WKT representation, in the specified coordinate system.</summary>
        /// <param name="text">The WKT representation of the geometry.</param>
        /// <param name="system">The coordinate system of the WKT representation.</param>
        public void Parse(string text, ICoordinateSystem system)
        {
            Debug.Assert(system!=null);
            if (system==null)
                throw new ArgumentNullException("system");

            IGeometryBuilder builder=new GmlGeometryBuilder();
            SimpleFeature.GeometryWktGrammar.Populate(builder, text, system);
            _Geometry g=(_Geometry)builder.ConstructedGeometry;

            if ((TargetSystem!=null) && !system.IsEquivalentTo(TargetSystem))
                g.Populate(this);
            else
                _Geometry=g;
        }
开发者ID:mcartoixa,项目名称:GeoSIK,代码行数:18,代码来源:GmlGeometryBuilder.cs


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