地理空间Java开发库:Spatial4j

jopen 10年前

Spatial4j是一个通用的空间/地理空间ASL许可的开源Java库。它的核心能力有3个方面:
1、提供公共图形,可工作在 Euclidean 和 geodesic (球体的表面)的世界模型。
2、提供距离计算和其它数学计算。
3、从WKT 格式化字符串来读取形状。

Spatial4j的主要部分是它的形状集合。在Spatial4j形状具有以下功能:

  • Compute its lat-lon bounding box.
  • Compute an area. For some shapes its more of an estimate.
  • Compute if it contains a provided point.
  • Compute the relationship to a lat-lon rectangle. Relationships are: CONTAINS, WITHIN, DISJOINT, INTERSECTS. Note that Spatial4j doesn't have a notion of "touching".

项目主页:http://www.open-open.com/lib/view/home/1404893612200