本文整理汇总了C#中SharpMap.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# SharpMap.Clone方法的具体用法?C# SharpMap.Clone怎么用?C# SharpMap.Clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SharpMap
的用法示例。
在下文中一共展示了SharpMap.Clone方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Transform
public override SharpMap.Geometries.Point Transform(SharpMap.Geometries.Point point)
{
if (point is SharpMap.Geometries.Point3D)
{
SharpMap.Geometries.Point pnt = (point as SharpMap.Geometries.Point3D).Clone();
foreach (ICoordinateTransformation ct in _CoordinateTransformationList)
pnt = ct.MathTransform.Transform(pnt);
return pnt;
}
else
{
SharpMap.Geometries.Point pnt = point.Clone();
foreach (ICoordinateTransformation ct in _CoordinateTransformationList)
pnt = ct.MathTransform.Transform(pnt);
return pnt;
}
}
示例2: CreateTilesSample
public CreateTilesSample(SharpMap.Map map, bool transformToMercator, string rootTilesPath)
{
_map = map.Clone();
_map.MaximumZoom = double.MaxValue;
_map.MinimumZoom = 0;
if (transformToMercator)
{
TransformLayers(LayerTools.Wgs84toGoogleMercator);
}
_rootTilesPath = rootTilesPath;
if (!Directory.Exists(_rootTilesPath))
{
Directory.CreateDirectory(_rootTilesPath);
}
}
示例3: Transform
/// <summary>
/// Transforms a coordinate point. The passed parameter point should not be modified.
/// </summary>
/// <param name="point"></param>
/// <returns></returns>
public override SharpMap.Geometries.Point Transform(SharpMap.Geometries.Point point)
{
SharpMap.Geometries.Point pOut = point.Clone();
pOut.X /= SourceGCS.AngularUnit.RadiansPerUnit;
pOut.X -= SourceGCS.PrimeMeridian.Longitude / SourceGCS.PrimeMeridian.AngularUnit.RadiansPerUnit;
pOut.X += TargetGCS.PrimeMeridian.Longitude / TargetGCS.PrimeMeridian.AngularUnit.RadiansPerUnit;
pOut.X *= SourceGCS.AngularUnit.RadiansPerUnit;
return pOut;
}