1 Star 0 Fork 30

writeademo / jts-learning

forked from 小豆子 / jts-learning 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

JTS简介

JTS提供了一套操作几何向量的java类库
早期版本 com.vividsolutions,已废弃不在维护
现在版本 com.locationtech.jts 由eclipse开源基金会托管

使用说明

入门指导

GIS开发入门指导

jts-core 核心库使用说明

jts-core核心类库使用说明
具体结合示例代码详细介绍JTS下面核心包下面的geometry、coordinate、wkb、wkt等操作使用说明

各包使用说明

1.org.locationtech.jts.geom 基础包

geom几何建模参考OGC SFS标准进行java模型建立;
SFS 中定义的几何对象模型:图中显示的是SFS中几何对象的关系结构,简单要素中的几何对象主要就是定义了点、线、面和多点、多线、多面
sfs几何建模
另外,几何对象还涉及一系列的操作:
sfs几何建模操作

1.1 说明

1.1.1 提供几何接口与几何操作相关类
Coordinate使用说明
CoordinateArrays使用说明
Geometry与其子类等使用说明
Envelope使用说明
IntersectionMatrix说明
PrecisionModel精度说明
PreparedGeometry使用说明
1.1.2 操作工厂类
GeometryFactory使用说明
Coordinate工厂使用说明

org.locationtech.jts.geom.util 几何相关工具包

AffineTransformation仿射变换理论基础
AffineTransformation仿射说明

org.locationtech.jts.edgegraph 边与图

EdgeGraph使用说明

org.locationtech.jts.index 空间索引算法

SpatialIndex使用说明

org.locationtech.jts.io 格式输入输出工具包

WKT格式输入输出使用说明
WKB格式输入输出使用说明

org.locationtech.jts.algorithm 算法包

Angle角度计算
Orientation方向计算
豪斯多夫距离计算
点到几何距离,最近形状点计算
coordinate位于geometry的位置
AreaSimilarityMeasure判断几何相似性
ConvexHull凸包计算
Length计算长度
InteriorPoint内部点计算
Intersection判断两条线段的交点
MinimumBoundingCircle计算最小包裹圆
MinimumDiameter最小直径计算

org.locationtech.jts.densifier 丰富点包

Densifier给定距离插点丰富线段

org.locationtech.jts.operation 操作包

LineMerger合并线段

org.locationtech.jts.dissolver

LineDissolver根据输入的geometry拆分成独立的linestring

jts案例

计算点到线的垂线
延线的画线方向,判断点在线的右侧还是左侧
线到线投影
根据起始点求一个线的子线
计算线上面距离点起点一定距离的交点坐标
扩buffer,左扩N米右扩N米
单位换算

代码类库地址

JTS GitHub

代码包结构

核心模块:

  • jts-core - 核心类库:提供geometry model, operations, algorithms, and spatial data structures
  • jts-io-common - I/O classes for open spatial formats

The following modules depend on proprietary libraries, and are not built by default:

  • jts-io-ora - Oracle reader and writer
  • jts-io-sde - SDE reader and writer

The following modules are applications and data for testing and working with JTS

  • jts-tests - The JTS XML test suite and the Test Runner application
  • jts-app -The TestBuilder GUI, for working with JTS geometry interactively

Maven坐标

<dependency>  
 <groupId>org.locationtech.jts</groupId> 
 <artifactId>jts-core</artifactId> 
 <version>1.16.1</version>
</dependency>  

空文件

简介

JTS源码类库学习,具体结合GIS基础理论与示例代码详细介绍JTS下面核心包下面的geometry、coordinate、wkb、wkt底层代码等操作使用说明,持续更新中...... 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/likeyou/jts-learning.git
git@gitee.com:likeyou/jts-learning.git
likeyou
jts-learning
jts-learning
master

搜索帮助