JTS版本:1.13.0
com.vividsolutions.jts.geom中CoordinateList
add(Coordinate[] coord, boolean allowRepeated, boolean direction)
allowRepeated 是否允许重复点,设置为false自动删除重复点
direction 是否正向添加,设置为false自动反向添加
clone()方法有bug,colone后数据重复,使用sp.points=new CoordinateList(this.points.toCoordinateArray());
Geometry.union()打断线用

这篇博客详细记录了JTS库在版本1.13.0中的使用,重点介绍了com.vividsolutions.jts.geom包中的CoordinateList类以及Geometry类的union()方法,展示了如何在Java环境下进行几何对象的组合操作。
1万+

被折叠的 条评论
为什么被折叠?



