我有多边形形状,我想将其转换为 MultiLineString。请注意,通常方向是不同的:从点、坐标、线等使用GeometryFactory
构建多边形。我开始考虑GeometryTransformer但很难理解那里的文档......所以我有这个:
import com.vividsolutions.jts.geom.*;
...
GeometryFactory gFactory = new GeometryFactory();
GeometryTransformer gTransform = new GeometryTransformer();
Polygon polygon = gFactory.createPolygon(someLinearRing, null);
MultiLineString mlString = polygon.TODO?
如何继续中TODO
?