public ActualCoordinateSystem(Topology.CoordinateSystems.ICoordinateSystem coordinateSystem) { if (coordinateSystem == null) throw new ArgumentNullException("coordinateSystem"); Topology.CoordinateSystems.Transformations.CoordinateTransformationFactory f = new Topology.CoordinateSystems.Transformations.CoordinateTransformationFactory(); Topology.CoordinateSystems.CoordinateSystemFactory cf = new Topology.CoordinateSystems.CoordinateSystemFactory(); /*Topology.CoordinateSystems.ICoordinateSystem local = cf.CreateLocalCoordinateSystem( "Non-Earth (Meter)", cf.CreateLocalDatum("Local Datum", Topology.CoordinateSystems.DatumType.VD_Normal), new Topology.CoordinateSystems.LinearUnit(1.0, "Meter", "", 0, "", "", ""), new List<Topology.CoordinateSystems.AxisInfo>(new Topology.CoordinateSystems.AxisInfo[] { new Topology.CoordinateSystems.AxisInfo("X", Topology.CoordinateSystems.AxisOrientationEnum.East), new Topology.CoordinateSystems.AxisInfo("Y", Topology.CoordinateSystems.AxisOrientationEnum.North) }) ); string s = cf.ToString();*/ m_transform = f.CreateFromCoordinateSystems(coordinateSystem, cf.CreateFromWkt(XY_M)); }
public ActualCoordinateSystem(Topology.CoordinateSystems.ICoordinateSystem coordinateSystem) { if (coordinateSystem == null) { throw new ArgumentNullException("coordinateSystem"); } Topology.CoordinateSystems.Transformations.CoordinateTransformationFactory f = new Topology.CoordinateSystems.Transformations.CoordinateTransformationFactory(); Topology.CoordinateSystems.CoordinateSystemFactory cf = new Topology.CoordinateSystems.CoordinateSystemFactory(); /*Topology.CoordinateSystems.ICoordinateSystem local = cf.CreateLocalCoordinateSystem( * "Non-Earth (Meter)", * cf.CreateLocalDatum("Local Datum", Topology.CoordinateSystems.DatumType.VD_Normal), * new Topology.CoordinateSystems.LinearUnit(1.0, "Meter", "", 0, "", "", ""), * new List<Topology.CoordinateSystems.AxisInfo>(new Topology.CoordinateSystems.AxisInfo[] { * new Topology.CoordinateSystems.AxisInfo("X", Topology.CoordinateSystems.AxisOrientationEnum.East), * new Topology.CoordinateSystems.AxisInfo("Y", Topology.CoordinateSystems.AxisOrientationEnum.North) * }) * ); * * string s = cf.ToString();*/ m_transform = f.CreateFromCoordinateSystems(coordinateSystem, cf.CreateFromWkt(XY_M)); }