|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectOblongs
public class Oblongs
A utility class with static methods to create and work with oblong grid elements.
Constructor Summary | |
---|---|
Oblongs()
|
Method Summary | |
---|---|
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. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Oblongs()
Method Detail |
---|
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
object
IllegalArgumentException
- 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 different
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |