/// <summary> /// 将几何对象从投影转换到84 /// </summary> /// <returns></returns> public static bool ConvertGeoPrjToEarth(this Geometry SourceGeo, PrjCoordSysType coordSysType) { CoordSysTransParameter cstp = new CoordSysTransParameter(); return(CoordSysTranslator.Convert(SourceGeo , new PrjCoordSys(coordSysType) , new PrjCoordSys(PrjCoordSysType.EarthLongitudeLatitude) , new CoordSysTransParameter() , CoordSysTransMethod.GeocentricTranslation)); }
private PrjCoordSys(SerializationInfo info, StreamingContext context) { this.CoordSystem = (CoordSys)info.GetValue("CoordSystem", typeof(CoordSys)); this.CoordUnit = (Unit)info.GetValue("CoordUnit", typeof(Unit)); this.DistanceUnit = (Unit)info.GetValue("DistanceUnit", typeof(Unit)); this.EpsgCode = info.GetInt32("EpsgCode"); this.Name = info.GetString("Name"); this.Projection = (Projection)info.GetValue("Projection", typeof(Projection)); this.ProjectionParam = (PrjParameter)info.GetValue("ProjectionParam", typeof(PrjParameter)); this.Type = (PrjCoordSysType)info.GetValue("Type", typeof(PrjCoordSysType)); }