| | |
| | | meta.max = string.Join(",", maxList.ToArray()); |
| | | } |
| | | #endregion |
| | | |
| | | public void CsTransform(double x, double y, int epsg) |
| | | { |
| | | SpatialReference srs = new SpatialReference(null); |
| | | srs.ImportFromEPSG(epsg); |
| | | |
| | | Geometry point = new Geometry(wkbGeometryType.wkbPoint); |
| | | point.AddPoint(x, y, 0); |
| | | point.AssignSpatialReference(srs); |
| | | |
| | | if (srs.GetName().Contains("CGCS2000")) |
| | | { |
| | | point.TransformTo(sr4490); |
| | | } |
| | | else |
| | | { |
| | | point.TransformTo(sr4326); |
| | | } |
| | | point.SwapXY(); |
| | | |
| | | double[] xy = new double[] { point.GetX(0), point.GetY(0) }; |
| | | } |
| | | } |
| | | } |
| | |
| | | CommonProp.Init(); |
| | | |
| | | this.btnLoad.IsEnabled = false; |
| | | this.btnDel.IsEnabled = false; |
| | | this.btnImport.IsEnabled = false; |
| | | |
| | | lvView.DataContext = viewDatas; |