case class GridLocation(northLatitude: Double, southLatitude: Double, eastLongitude: Double, westLongitude: Double, rows: Int, columns: Int) extends ReferencingLocation with Product with Serializable
A grid of rectangles.
A grid is defined in terms of a base rectangle and a number of rows and columns. The number of rows and columns describe how the base rectangle is replicated to define the grid. It is multiplied to the north by the the number of rows and to the east by the number of columns.
For example (X
denotes the base rectangle):
North (rows) ^ | +-----+-----+ | 3 | | | | +-----+-----+ | 2 | | | | +-----+-----+ | 1 |XXXXX| | | +-----+-----+ | 1 2 +-------------------> East (columns)
- rows
The number of rows in the grid.
- columns
The number of columns in the grid.
- Alphabetic
- By Inheritance
- GridLocation
- Serializable
- Serializable
- Product
- Equals
- ReferencingLocation
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def baseRectangle: RectangleLocation
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val columns: Int
- val eastLongitude: Double
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def getBaseRectangle: RectangleLocation
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getColumns: Int
- def getEastLongitude: Double
- def getNorthLatitude: Double
-
def
getRectangles(projection: GeoProjection): List[List[RectangleLocation]]
Returns all rectangles that are part of this grid.
Returns all rectangles that are part of this grid.
The coordinates of the remaining rectangles are calculated using the base rectangles as the reference. The north-south and east-west distances of the base are calculated using the given
projection
. These distances and the projection are then used to extrapolate the base rectangles.Following the example in the class description, a list like
[ [(1,1), (1,2)], [(2,1), (2,2)], [(3,1), (3,2)] ]
would be returned.- returns
A sequence containing one sequence for each row in this grid. The first sequence is the southernmost one. Each row sequence contains one rectangles per column, where the first is the westernmost.
- def getRows: Int
- def getSouthLatitude: Double
- def getWestLongitude: Double
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val northLatitude: Double
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
rectangles(projection: GeoProjection): IndexedSeq[IndexedSeq[RectangleLocation]]
Returns all rectangles that are part of this grid.
Returns all rectangles that are part of this grid.
The coordinates of the remaining rectangles are calculated using the base rectangles as the reference. The north-south and east-west distances of the base are calculated using the given
projection
. These distances and the projection are then used to extrapolate the base rectangles.Following the example in the class description, a list like
[ [(1,1), (1,2)], [(2,1), (2,2)], [(3,1), (3,2)] ]
would be returned.- returns
A sequence containing one sequence for each row in this grid. The first sequence is the southernmost one. Each row sequence contains one rectangles per column, where the first is the westernmost.
- val rows: Int
- val southLatitude: Double
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val westLongitude: Double