问题描述
我正在寻找一个Java库,该库能够对经纬度数据集进行空间计算.以下是我正在寻找的一些功能:
I'm looking for a Java library that is capable of performing spatial calculations on sets of lat/lon data. Here are some of the functions that I'm looking for:
- 计算两点之间的大圆距离
- 确定点是否位于简单的闭合多边形内,该多边形由点的有序列表定义
- 确定点"A"和点"B"之间的线是否与简单的闭合多边形相交,其中多边形是由点的有序列表定义的.
- 确定点"A"是否在点"B"的某个半径之内
我不需要在寻找什么:
- 我不想要一个依赖于数据库地理空间组件(例如Oracle Spatial)并且不能独立运行的库.
- 我不想要一个旨在生成图形/地图/等的库.我正在为现有应用程序构建一个分析模块,最终目的不是创建漂亮的图片.
- 我不想要一个用于搜索大量空间数据的图书馆.如果碰巧也可以做到这一点,那没关系,但是我不会使用该功能.
- I don't want a library that is dependent upon a database geospatial component, such as Oracle Spatial, and cannot function independently.
- I don't want a library whose purpose is to generate graphics/maps/etc. I am building an analysis module for an existing application and the end goal is not to create pretty pictures.
- I don't want a library for searching large amounts of spatial data. If it also happens to do this, that's ok, but I'm not going to use that feature.
该组织计划最终获得Oracle Spatial的许可证(因此将在那时进行空间搜索),但是现在我需要在不依赖数据库的情况下对小型数据集实施上面提到的分析功能.提供的空间支持.
The organization is planning to acquire a license for Oracle Spatial eventually (so spatial searching will be covered at that point), but for now I need to implement the analysis functions that I have mentioned above on small data sets without relying on database-supplied spatial support.
推荐答案
我相信 GeoTools 会满足您的要求要求.请注意,它确实具有用于制作图形/地图的功能,但是可以很容易地使它们闲置.
I believe GeoTools would satisfy your requirements. Note that it does have facilities for doing graphics/maps, but they can be left unused easily enough.
这篇关于需要一个独立的Java库来对经纬度数据进行空间计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!