When working with the Google Maps API for Android, coordinates are given in longitude and latitude values. It is required to translate these values into meters. Are there any libraries for this so as not to reinvent the wheel? I am writing in Java.
1 answer
The necessary functionality has been described in the classes of this project. To convert from a geographic coordinate system to UTM, you can use the following code:
utmCoord = UTMCoord.fromLatLon(Angle.fromDegreesLatitude(latitude), Angle.fromDegreesLongitude(longitude)); We get the result in the form: 41 N 371734.70589118626E 6293516.067325422N, where the values 371734.70589118626E 6293516.067325422N are expressed in meters.
|
Для получения плоских прямоугольных координат в принятой на территории Российской Федерации проекции Гаусса—Крюгера используют геодезические координаты на эллипсоиде Красовского...- default locale