public class Jts2Awt extends Object
Constructor and Description |
---|
Jts2Awt() |
Modifier and Type | Method and Description |
---|---|
static Area |
getArea(LineString ring,
CoordinateTransformer ct)
Convert a linear ring to an area using the coordinate transformation.
|
static Path2D |
getPath(LineString string,
CoordinateTransformer ct)
Convert a linestring to a path using the coordinate transformation.
|
static Shape |
toShape(Geometry g,
CoordinateTransformer ct)
Convert a geometry to a shape using the coordinate transformation.
|
static Area |
toShape(MultiPolygon mp,
CoordinateTransformer ct)
Convert a multipolygon to a shape using the coordinate transformation.
|
static Area |
toShape(Polygon p,
CoordinateTransformer ct)
Convert a polygon to a shape using the coordinate transformation.
|
public static Shape toShape(Geometry g, CoordinateTransformer ct)
g
- the geometry to transform.ct
- the coordinate transformation to use.public static Area toShape(MultiPolygon mp, CoordinateTransformer ct)
mp
- the polygon to transform.ct
- the coordinate transformation to use.public static Area toShape(Polygon p, CoordinateTransformer ct)
p
- the polygon to transform.ct
- the coordinate transformation to use.public static Area getArea(LineString ring, CoordinateTransformer ct)
ring
- the ring to create an area fromct
- the transformation to applypublic static Path2D getPath(LineString string, CoordinateTransformer ct)
string
- the string to create a path from.ct
- the transformation to apply.