Package org.geotools.grid.oblong
Class OblongImpl
- Object
- 
- OblongImpl
 
- 
- All Implemented Interfaces:
- GridElement,- Oblong,- PolygonElement
 
 public class OblongImpl extends Object implements Oblong Default implementation ofOblong.- Since:
- 2.7
- Author:
- mbedward
 
- 
- 
Constructor SummaryConstructors Constructor Description OblongImpl(double minX, double minY, double width, double height, CoordinateReferenceSystem crs)Creates a new oblong.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetArea()Gets the area of this grid element.ReferencedEnvelopegetBounds()Gets the bounds of this grid element.CoordinategetCenter()Gets the center coordinates of this grid element.Coordinate[]getVertices()Gets the vertices of this grid element.GeometrytoDenseGeometry(double maxSpacing)Creates a new, densifiedGeometryfrom this grid element.GeometrytoGeometry()Creates a newGeometryfrom this grid element.
 
- 
- 
- 
Constructor Detail- 
OblongImplpublic OblongImpl(double minX, double minY, double width, double height, CoordinateReferenceSystem crs)Creates a new oblong.- Parameters:
- minX- minimum X ordinate
- minY- minimum Y ordinate
- width- span in the X direction
- height- span in the Y direction
- crs- coordinate reference system (may be- null)
 
 
- 
 - 
Method Detail- 
getAreapublic double getArea() Gets the area of this grid element.- Specified by:
- getAreain interface- PolygonElement
- Returns:
- the area
 
 - 
getBoundspublic ReferencedEnvelope getBounds() Gets the bounds of this grid element.- Specified by:
- getBoundsin interface- GridElement
- Returns:
- the bounding rectangle
 
 - 
getCenterpublic Coordinate getCenter() Gets the center coordinates of this grid element.- Specified by:
- getCenterin interface- PolygonElement
- Returns:
- the center coordinates
 
 - 
getVerticespublic Coordinate[] getVertices() Gets the vertices of this grid element.Vertex 0 is at the min X and Y coordinate (lower left) with the subsequent vertices being indexed clockwise. - Specified by:
- getVerticesin interface- GridElement
- Returns:
- the vertices
 
 - 
toGeometrypublic Geometry toGeometry() Creates a newGeometryfrom this grid element.- Specified by:
- toGeometryin interface- GridElement
- Returns:
- a new Geometry
 
 - 
toDenseGeometrypublic Geometry toDenseGeometry(double maxSpacing) Creates a new, densifiedGeometryfrom this grid element.- Specified by:
- toDenseGeometryin interface- GridElement
- Parameters:
- maxSpacing- the maximum distance between adjacent vertices
- Returns:
- a new Geometry
 
 
- 
 
-