开发者

Convert Decimal Degrees or Degree Minutes Seconds to Meters in Java

开发者 https://www.devze.com 2023-02-09 04:40 出处:网络
I am working with a GIS project.Right now I have code to convert decimal degrees to degree/minute/seconds, but I don\'t have any i开发者_运维知识库dea how to convert decimal degree or degree/minutes/s

I am working with a GIS project. Right now I have code to convert decimal degrees to degree/minute/seconds, but I don't have any i开发者_运维知识库dea how to convert decimal degree or degree/minutes/seconds to meters. Can anyone help me to convert decimal degree or degree/minutes/seconds to meters in Java?


You question might be really easy, or really complicated. Can we assume a spherical Earth? If so, you might be fine with the basic arc length formula:

Arc Length = degrees * pi * R / 180


How about GDAL?

GDAL is a translator library for raster geospatial data formats that is released under an X/MIT style Open Source license by the Open Source Geospatial Foundation. As a library, it presents a single abstract data model to the calling application for all supported formats. It also comes with a variety of useful commandline utilities for data translation and processing. The NEWS page describes the January 2011 GDAL/OGR 1.8.0 release.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号