Class Graticule
Handling the construction of a graticule
Inherited Members
Namespace: FpAssistantCore.Geographical
Assembly: FpAssistantCoreScl.dll
Syntax
public class Graticule
Constructors
View SourceGraticule(GeoCoordinate, Dms, Dms, int, int, Dms, Dms)
Constructor to initialise the graticule construction with draw parameters
Declaration
public Graticule(GeoCoordinate startCoordinate, Dms latitudeIntervalDms, Dms longitudeIntervalDms, int latitudeLinesCount, int longitudeLinesCount, Dms latitudeTickIntervalDms, Dms longitudeTickIntervalDms)
Parameters
| Type | Name | Description |
|---|---|---|
| GeoCoordinate | startCoordinate | Starting coordinate of the graticule |
| Dms | latitudeIntervalDms | Latitude interval in degrees, minutes and seconds |
| Dms | longitudeIntervalDms | Longitude interval in degrees |
| int | latitudeLinesCount | Number of latitude lines, minutes and seconds |
| int | longitudeLinesCount | Number of longitude lines |
| Dms | latitudeTickIntervalDms | Latitude interval in degrees, minutes and seconds for tick placement |
| Dms | longitudeTickIntervalDms | Longitude interval in degrees for tick placement |
Properties
View SourceSuccess
Informs if graticule was created without any issues
Declaration
public bool Success { get; }
Property Value
| Type | Description |
|---|---|
| bool | True or False if the graticule was created successfully |
Methods
View SourceCreateGraticuleGrid(bool)
Create set of GeoMap elements containing the graticule tick marks
Declaration
public GeoMapElementCollection CreateGraticuleGrid(bool includeTicks)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | includeTicks | Include ticks |
Returns
| Type | Description |
|---|---|
| GeoMapElementCollection | Collection of GeoMap elements representing the graticule |
CreateGraticuleTicks()
Create set of GeoMap elements of the graticule tick marks
Declaration
public GeoMapElementCollection CreateGraticuleTicks()
Returns
| Type | Description |
|---|---|
| GeoMapElementCollection | Collection of GeoMap elements representing the ticks of the graticule grid |
SetLatitudeTickLength(Dms)
Set the length of the Latitude tick
Declaration
public void SetLatitudeTickLength(Dms latitudeTickLength)
Parameters
| Type | Name | Description |
|---|---|---|
| Dms | latitudeTickLength |
Remarks
Default value is 4 minutes: new Dms(0, 4, 0.0)
SetLongitudeTickLength(Dms)
Set the length of the Longitude tick
Declaration
public void SetLongitudeTickLength(Dms longitudeTickLength)
Parameters
| Type | Name | Description |
|---|---|---|
| Dms | longitudeTickLength |
Remarks
Default value is 2 minutes: new Dms(0, 2, 0.0)