API for Different GeoRegion Properties
Retrieve the GeoRegion Shape
GeoRegions.coordinates Function
coordinates(
geo :: GeoRegion;
n :: Int = 1,
derotate :: Bool = false,
rotation :: Real = 0
) -> lon :: Vector{<:Real}, lat :: Vector{<:Real}
For a given GeoRegion, create longitude and latitude vectors of the shape.
Arguments
geo
: A GeoRegion.
Keyword Arguments
n
: The number of segments on each side of the shape.derotate
: Iftrue
, perform a "derotation" on the shape.rotation
: Angle (in degrees) of rotation for the final "derotated" shape about the GeoRegion centroid and projected into the X-Y cartesian coordinate system (in meters). A positive value relative togeo.θ
will turn the final values about the centroid in the anti-clockwise direction. Default is 0.
Returns
lon
: A vector of longitude points for the shape of the GeoRegion. Ifderotate = true
, return instead the x-coordinates (in meters) about the centroid.lat
: A vector of latitude points for the shape of the GeoRegion. Ifderotate = true
, return instead the y-coordinates (in meters) about the centroid.