【发布时间】:2017-07-26 12:20:32
【问题描述】:
我有一个带有坐标的数组列表:
List<Coordinate> coords;
我想根据这些值创建一个多边形。
我正在尝试:
GeometryFactory geometryFactory = new GeometryFactory();
Polygon polyg = geometryFactory.createPolygon(coords);
但它表明它需要 CoordinateSequence:
The method createPolygon(CoordinateSequence) in the type GeometryFactory is not applicable for the arguments (List<Coordinate>)
如果我尝试创建 CoordinateSequence,它会显示大量方法,但我不确定如何继续(或者是否仍需要序列)。
【问题讨论】: