[英]java api for simple gis computations
I am trying to develop some simple location logic in the server-side portion of a java servlet-based webapp. 我正在尝试在基于Java Servlet的Web应用程序的服务器端部分中开发一些简单的位置逻辑。
There are really just two operations that I'm interested in: 我实际上只感兴趣两个操作:
Given a start point (lat/long) s1, distance d, and search point (also lat/long) s2, determine if the s2 is within d distance from s1. 给定起点(纬度/经度)s1,距离d和搜索点(纬度/经度)s2,请确定s2是否在距s1的d距离之内。
Given two points (lat/long), determine the distance between them. 给定两个点(纬度/经度),确定它们之间的距离。
Does anyone have recommendations of a simple java API that supports these operations? 是否有人提出了支持这些操作的简单Java API的建议?
Thanks! 谢谢!
There is geotools a, in their own words, actually quite HUGE, package. 用他们自己的话说,有个geotools ,实际上是非常庞大的。
Some general latitude/longitude related scripts , eg Haversine formula to calculate the great-circle distances between the two points – that is, the shortest distance over the earth's surface. 一些与纬度/经度相关的通用脚本 ,例如Haversine公式,用于计算两点之间的大圆距离-即地球表面上的最短距离。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.