/*---------------------------------------------------------------------------------*/ private void wpfMap_Loaded(object sender, RoutedEventArgs e) { LineShape line3=new LineShape("LINESTRING(3455871.72835424 5428565.82829589,3455871.67214624 5428564.33494166,3455871.57743329 5428562.91840827,3455871.43433101 5428561.43086401,3455871.24683754 5428559.94826075,3455871.01512037 5428558.47192292,3455870.75421494 5428557.07640663,3455870.43689274 5428555.61607351,3455870.07607037 5428554.16587579,3455869.43159468 5428551.9411257,3455867.87411681 5428547.33551926,3455866.79023257 5428543.75358968,3455859.26404332 5428515.84458065,3455858.49961748 5428513.12878489,3455857.7472158 5428510.63553043,3455856.8817271 5428507.95023289,3455856.03657943 5428505.48687106,3455855.07123959 5428502.83583117,3455854.13452913 5428500.40581067,3455853.0706896 5428497.79273988,3455852.04372777 5428495.39946274,3455850.88287793 5428492.82801933,3455849.67221651 5428490.27964879,3455848.41220185 5428487.75531589,3455847.20571898 5428485.44732431,3455845.85215102 5428482.9718956,3455844.45067606 5428480.5232712,3455843.11494443 5428478.28759521,3455841.62284746 5428475.89311403,3455840.20441419 5428473.70897274,3455838.62378412 5428471.37198705,3455837.12463501 5428469.24243825,3455835.45768474 5428466.96621984,3455833.87985425 5428464.89429593)"); var a = line3.GetLength(GeographyUnit.Meter, DistanceUnit.Meter); ManagedProj4Projection proj = new ManagedProj4Projection(); proj.InternalProjectionParametersString = ManagedProj4Projection.GetGoogleMapParametersString(); proj.ExternalProjectionParametersString = ManagedProj4Projection.GetEpsgParametersString(4326); proj.Open(); LineShape line2 = proj.ConvertToExternalProjection(line3) as LineShape ; var b = line2.GetLength(GeographyUnit.DecimalDegree, DistanceUnit.Meter); proj.Close(); }