public class Ovals extends Object
Constructor and Description |
---|
Ovals() |
Modifier and Type | Method and Description |
---|---|
static Oval |
create(double minX,
double minY,
double width,
double height,
CoordinateReferenceSystem crs)
Creates a new
Oval object. |
static SimpleFeatureSource |
createGrid(ReferencedEnvelope bounds,
double width,
double height,
double vertexSpacing,
GridFeatureBuilder gridFeatureBuilder)
Creates a new grid of oblongs within a bounding rectangle with grid elements represented by
densified polygons (ie. additional vertices added to each edge).
|
static SimpleFeatureSource |
createGrid(ReferencedEnvelope bounds,
double width,
double height,
GridFeatureBuilder gridBuilder)
Creates a new grid of oblongs within a bounding rectangle with grid elements represented by
simple (ie. undensified) polygons.
|
public static Oval create(double minX, double minY, double width, double height, CoordinateReferenceSystem crs)
Oval
object.minX
- the min X ordinateminY
- the min Y ordinatewidth
- the widthheight
- the heightcrs
- the coordinate reference system (may be null
)Oval
objectIllegalArgumentException
- if either width
or height
are <=
0public static SimpleFeatureSource createGrid(ReferencedEnvelope bounds, double width, double height, GridFeatureBuilder gridBuilder)
bounds
- the bounding rectanglewidth
- oblong widthheight
- oblong heightgridBuilder
- an instance of GridFeatureBuilder
IllegalArgumentException
- if bounds is null or empty; or if either width or height is
<=
0; or if the CoordinateReferenceSystems
set for the bounds and the
GridFeatureBuilder
are both non-null but differentpublic static SimpleFeatureSource createGrid(ReferencedEnvelope bounds, double width, double height, double vertexSpacing, GridFeatureBuilder gridFeatureBuilder)
bounds
- the bounding rectanglewidth
- oblong widthheight
- oblong heightvertexSpacing
- maximum distance between adjacent vertices in a grid element; if <= 0
or >= min(width, height) / 2.0
it is ignored and the polygons will not be
densifiedgridFeatureBuilder
- an instance of GridFeatureBuilder
IllegalArgumentException
- if bounds is null or empty; or if either width or height is
<=
0; or if the CoordinateReferenceSystems
set for the bounds and the
GridFeatureBuilder
are both non-null but differentCopyright © 1996–2022 Geotools. All rights reserved.