| | |
| | | List coordinatesList = new ArrayList(); |
| | | |
| | | // 应用抽稀算法,这里使用TopologyPreservingSimplifier作为示例 |
| | | double distanceTolerance = 100.0; // 抽稀的容忍度,根据需要调整 |
| | | double distanceTolerance = 10.0; // 抽稀的容忍度,根据需要调整 |
| | | Geometry simplifiedGeometry = TopologyPreservingSimplifier.simplify(originalPolygon, distanceTolerance); |
| | | |
| | | // 转换回Polygon类型(如果需要) |
| | |
| | | |
| | | // 开始封装图斑4个航线 |
| | | // List<Coordinate> coordinatePointList = getExtremePoints(polygon); |
| | | // 抽稀拐点 |
| | | List<Coordinate> coordinatePointList = getSimplifyPolygons(polygon); |
| | | extremePoints.add(coordinatePointList); |
| | | // points.put(coordinateCentro, coordinatePointList); |