首页 > 其他分享 >jts learning

jts learning

时间:2023-08-29 14:22:17浏览次数:33  
标签:JTS 说明 locationtech jts learning 几何 org

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中几何对象的关系结构,简单要素中的几何对象主要就是定义了点、线、面和多点、多线、多面


另外,几何对象还涉及一系列的操作:

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>  

参考:https://gitee.com/shengshifeiyang/jts-learning

标签:JTS,说明,locationtech,jts,learning,几何,org
From: https://www.cnblogs.com/2008nmj/p/17664624.html

相关文章

  • Proj CDeepFuzz Paper Reading: Deepxplore: Automated whitebox testing of deep lea
    Abstract背景:现有的深度学习测试在很⼤程度上依赖于⼿动标记的数据,因此通常⽆法暴露罕⻅输⼊的错误⾏为。本文:DeepXploreTask:awhite-boxframeworktotestDLModels方法:neuroncoveragedifferentialtestingwithmultipleDLsystems(models)joint-optimizationpro......
  • JTS-IntersectionMatrix 使用说明
    参考:https://blog.csdn.net/weixin_40294332/article/details/124124928参考2:https://vimsky.com/examples/detail/java-method-com.vividsolutions.jts.geom.IntersectionMatrix.set.html......
  • JTS TestBuilder试用
     参考:https://blog.csdn.net/abu935009066/article/details/115304685......
  • jts和geotools的关系
    JTS解决了空间对象之间拓扑关系的判定和计算,并提供很多有用的算法来解决对象的面积,长度等等的问题,是处理空间数据图形关系非常好的解决方案。(原来是商业公司VividSolutions做的,目前已经免费开源贡献给org.locationtech开源组织了)。GeoTools不仅仅是jts算法的实现,而且还提供了生......
  • 机器学习 -> Machine Learning (I)
    1机器学习概述1.1定义及应用领域机器学习是一种让计算机通过经验学习并对输入数据做出决策或预测的方法.它是人工智能的一个重要分支,已广泛应用于各种领域,如自然语言处理,计算机视觉,推荐系统,医疗诊断,金融风险预测等.1.2机器学习与人工智能,深度学习的关系人......
  • JTS Topology Suite - Features
    https://www.tsusiatsoftware.net/jts/jtsfeatures.html主页:https://www.tsusiatsoftware.net/jts/main.html......
  • [论文理解] HACK: Learning a Parametric Head and Neck Model for High-fidelity Ani
    HACK:LearningaParametricHeadandNeckModelforHigh-fidelityAnimation上科大发布的头和脖子精细建模的参数化模型HACK。纹理转化由于HACK没有开源纹理基,我将FLAME开源的纹理基迁移到了HACK上,代码在这里开源:https://github.com/aoru45/FLAME_TO_HACK/tree/main论文......
  • 论文解读(MetaAdapt)《MetaAdapt: Domain Adaptive Few-Shot Misinformation Detection
    Note:[wechat:Y466551|可加勿骚扰,付费咨询]论文信息论文标题:MetaAdapt:DomainAdaptiveFew-ShotMisinformationDetectionvia MetaLearning论文作者:ZhenruiYue、HuiminZeng、YangZhang、LanyuShang、DongWang论文来源:2023ACL论文地址:download 论文代码:download......
  • 论文解读(CBL)《CNN-Based Broad Learning for Cross-Domain Emotion Classification》
    Note:[wechat:Y466551|付费咨询,非诚勿扰]论文信息论文标题:CNN-BasedBroadLearningforCross-DomainEmotionClassification论文作者:RongZeng,HongzhanLiu,SanchengPeng,LihongCao,AiminYang,ChengqingZong,GuodongZhou论文来源:2023aRxiv论文地址:download ......
  • CLIP: Learning Transferable Visual Models From Natural Language Supervision
    CLIP:LearningTransferableVisualModelsFromNaturalLanguageSupervision论文链接:https://arxiv.org/pdf/2103.00020.pdf代码链接:https://github.com/openai/CLIPblog链接:https://openai.com/research/clipCLIP的英文全称是ContrastiveLanguage-ImagePre-trainin......