3 Star 5 Fork 5

小豆子 / spatial4j-learning

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

spatial4j-learning

介绍

Spatial4j是一款java编写的空间计算开源库,支持ASL开源协议,支持地理空间计算。
Spatial4j主要有三个主要功能:
1)支持基于平面几何或地理空间的若干图形;
2)支持距离计算和形状的计算:计算边界框、面积、图形间的关系等
3)解析WKT、GeoJSON等空间描述标准格式
Spatial4j利用了部分JTS的能力(JTS是最流行的java空间计算库),例如多边形是基于JTS实现的。相比与JTS,spatial4j还支持了圆以及地理空间计算。用JTS,通常用多边形近似替代了圆的计算,对结果会造成一定误差,而Spatial4j支持了圆;另外,地理空间计算的应用现在十分广泛,用spatial4j会更加方便。

项目结构

1)context 几何工厂,负责创建相关几何对象
2)distance 相关计算包
3)exception
4)io 输入输出:geoJson WKT WKB 等
5)shape 几何形状,处理对象实体

使用说明

shape几何结构说明
shape几何创建
平面坐标系与空间坐标系下面的几何关系
Spatial距离计算
Spatial WKT格式解析
Spatial GeoJSON格式解析

安装教程

<dependency>
    <groupId>org.locationtech.spatial4j</groupId>
    <artifactId>spatial4j</artifactId>
    <version>0.8</version>
</dependency>
<dependency>
    <groupId>org.noggit</groupId>
    <artifactId>noggit</artifactId>
    <version>0.8</version>
    <optional>true</optional>
</dependency>

<!-- Used for optional Jackson support -->
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.9.10.8</version>
    <optional>true</optional>
</dependency>

<!-- JTS is essentially only used for polygons. -->
<dependency>
    <groupId>org.locationtech.jts</groupId>
    <artifactId>jts-core</artifactId>
    <version>1.18.1</version>
    <optional>true</optional>
</dependency>

代码类库地址

spatial4j GitHub

Empty file

About

Spatial4j类库使用说明,Spatial4j是一个通用的空间/地理空间(spatial/geospatial) ASL 授权的开源Java库。它的核心能力有三个方面:提供常见的形状,可以在欧几里得和测地线(球体)表面世界模型,提供距离计算和其他数学、读和写等格式的形状 WKT 和GeoJSON expand collapse
Java
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/shengshifeiyang/spatial4j-learning.git
git@gitee.com:shengshifeiyang/spatial4j-learning.git
shengshifeiyang
spatial4j-learning
spatial4j-learning
master

Search