private IPoint PRJtoGCS(double x, double y)
{
IPoint pPoint = new PointClass();
pPoint.PutCoords(x, y);
ISpatialReferenceFactory pSRF = new SpatialReferenceEnvironmentClass();
pPoint.SpatialReference = pSRF.CreateProjectedCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_Beijing1954));
pPoint.Project(pSRF.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_WGS1984));
return pPoint;
}
private IPoint GCStoPRJ(IPoint pPoint, int GCSType,int PRJType)
{
ISpatialReferenceFactory pSRF = new SpatialReferenceEnvironmentClass();
pPoint.SpatialReference = pSRF.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_WGS1984));
pPoint.Project(pSRF.CreateProjectedCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_Beijing1954));
return pPoint;
}