public class Oblongs extends Object
Constructor and Description |
---|
Oblongs() |
Modifier and Type | Method and Description |
---|---|
static Oblong |
create(double minX,
double minY,
double width,
double height,
CoordinateReferenceSystem crs)
Creates a new
Oblong 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 Oblong create(double minX, double minY, double width, double height, CoordinateReferenceSystem crs)
Oblong
object.minX
- the min X ordinateminY
- the min Y ordinatewidth
- the widthheight
- the heightcrs
- the coordinate reference system (may be null
)Oblong
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 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
densifiedgridBuilder
- 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–2019 Geotools. All rights reserved.