本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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;
}