GridLineBuilder
Description
The GridLineBuilder is a tool for building grid lines (e.g. meridians and parallels) on a projected map (see IMapProjection).
Public / Constructors
GridLineBuilder
Creates a new instance of GridLineBuilder.
In the source map (see IMapProjection.Source) of the given projection in, all gridlines are parallel to the X-axis resp. Y-axis. Use From and To to define the area in which gridlines will be computed. Use Origin and Step to control placement and number of gridlines. Use Error to control tessellation quality.
Public / Methods
GridLinesFor
Returns the list index range in GridLines for the given cubemap face and orientation.
Public / Attributes
Error
The maximum geometric error to allow for grid lines on a cubemap face.
The default value is 1
.
From
First corner of source map rectangle which defines the area where gridlines will be computed.
The coordinates refer to the source map (see IMapProjection.Source) of the configured map projection (see Projection).
GridLines
Returns the resulting grid lines.
The grid lines in the returned list are sorted by orientation (horizontal / vertical) and cubemap face. Use the GridLinesFor method to obtain the respective list index ranges.
Origin
The map origin to use for computing grid lines.
The values for origin and step determine the coordinates of horizontal and vertical grid lines (see GridLine.Coordinate):
-
Horizontal (e.g. meridian):
c := origin.Y + n * step.Y
-
Vertical (e.g. parallel):
c := origin.X + n * step.X
The coordinates refer to the source map (see IMapProjection.Source) of the configured map projection (see Projection).
The default value is (0,0)
.
Step
The step distance to use for computing grid lines.
The values for origin and step determine the coordinates of horizontal and vertical grid lines:
-
Horizontal (e.g. meridian):
c := origin.Y + n * step.Y
-
Vertical (e.g. parallel):
c := origin.X + n * step.X
The step values refer to the source map (see IMapProjection.Source) of the configured map projection (see Projection).
The default value is (1,1)
.
To
Second corner of source map rectangle which defines the area where gridlines will be computed.
The coordinates refer to the source map (see IMapProjection.Source) of the configured map projection (see Projection).