public class PolygonToMultiLineString extends AbstractGeometryConverter<com.vividsolutions.jts.geom.Polygon,com.vividsolutions.jts.geom.MultiLineString>
Polygon
to a MultiLineString
.
The polygon is divided into multiple LineStrings, each containing two points.
Needed for polygons that represent curves.geomFactory
Constructor and Description |
---|
PolygonToMultiLineString()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
com.vividsolutions.jts.geom.MultiLineString |
convert(com.vividsolutions.jts.geom.Polygon polygon)
Convert the given geometry
|
boolean |
lossOnConversion(com.vividsolutions.jts.geom.Polygon geometry)
Determines if there is a loss of information when converting the given
geometry
|
getSourceType, getTargetType
public com.vividsolutions.jts.geom.MultiLineString convert(com.vividsolutions.jts.geom.Polygon polygon)
GeometryConverter
polygon
- the source geometryGeometryConverter.convert(Geometry)
public boolean lossOnConversion(com.vividsolutions.jts.geom.Polygon geometry)
GeometryConverter
geometry
- the source geometryGeometryConverter.lossOnConversion(Geometry)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a