Creating Custom GeoRegions
We use the function GeoRFegion()
to create new GeoRegion
s.
julia
using GeoRegions
lon = collect(10cos.((0:0.01:1).*2pi))
lat = collect(10sin.((0:0.01:1).*2pi))
GeoRegion(lon,lat)
The GeoRegion has the following properties:
Region ID (ID) :
Parent ID (pID) :
Name (name) :
Bounds (N,S,E,W) : 10.0, -10.0, 10.0, -10.0
Rotation (θ) : 0.0
File Path (path) : /home/runner/.georegions/.json
Centroid (geometry.centroid) : [4.260184124445431e-16, -1.1026108453092741e-15]
Shape (geometry.shape) : Vector{Point{2, Float64}}(102)
See the API here