/* * PROJCS["World_Mercator", * GEOGCS["GCS_WGS_1984", * DATUM["D_WGS_1984", * SPHEROID["WGS_1984",6378137.0,298.257223563] * ], * PRIMEM["Greenwich",0.0], * UNIT["Degree",0.0174532925199433] * ], * PROJECTION["Mercator"], * PARAMETER["False_Easting",0.0], * PARAMETER["False_Northing",0.0], * PARAMETER["Central_Meridian",0.0], * PARAMETER["Standard_Parallel_1",0.0], * UNIT["Meter",1.0] * ] */ public override string ToString() { if (_prjCoordSystem == null) { return(_geoCoordSystem.ToString()); } else { return("PROJCS[\"" + _name + "\"," + _geoCoordSystem.ToString() + "," + _prjCoordSystem.ToString() + "]"); } }
private void btnCreatGeoCoord_Click(object sender, EventArgs e) { CollectionArgumentsCreat(); if (_geoCoordSystem != null) { txtShow.Text = _geoCoordSystem.ToString(); btnModify.Enabled = true; } else { btnModify.Enabled = false; } }
private void btnSelect_Click(object sender, EventArgs e) { GeoSystemTree spatialRefTree = new GeoSystemTree(); spatialRefTree.ShowDialog(); if (spatialRefTree.CurrentGeoCoordSystem != null) { _geoCoordSystem = spatialRefTree.CurrentGeoCoordSystem; txtShow.Text = _geoCoordSystem.ToString(); _dialogResult = DialogResult.OK; } }