What is a GeoRegion?
In essence, a GeoRegion
is:
a geographical region of interest
identified by an
ID
a subregion of a parent
GeoRegion
(identified bypID
, which must also be a validID
)
Default GeoRegions
When using GeoRegions.jl, the default GeoRegion
should generally be the global domain, specified by GLB
and given by the [N,S,E,W]
coordinates [90,-90,360,0]
. The Global GeoRegion GLB
is considered to be a subset of itself.
GeoRegions.AbstractGeoRegion Type
AbstractGeoRegion
Abstract supertype for geographical regions. All AbstractGeoRegion
types contain the following fields:
ID
- AString
Type, the identifier for the GeoRegion.pID
- AString
Type, the identifier for the parent GeoRegion.name
- AString
Type, the full name of the GeoRegion.path
- AString
Type, the path of the file containing information on this GeoRegion.N
- AFloat
Type, contains the northernmost latitude bound.S
- AFloat
Type, contains the southernmost latitude bound.E
- AFloat
Type, contains the easternmost longitude bound.W
- AFloat
Type, contains the westernmost longitude bound.θ
- AFloat
Type, the rotation projection for the data in the GeoRegiongeometry
- AGeometry
orVector{Geometry}
Type
The GeoRegion
Type
In GeoRegions.jl v8 and above, we have standardized the usage of the struct type GeoRegion
for all simple polygonal shapes.
Current Limitations:
A
GeoRegion
supports only one shape/polygon per GeoRegionA
GeoRegion
shape/polygon cannot have holes within it
Work is currently in progress to determine how best to include multiple shapes in a single GeoRegion
type.
Types
of GeoRegions for versions ≤v7
Previous versions of GeoRegions.jl used to differentiate between Rectilinear (RectRegion
) and Polygonal (PolyRegion
) Types of GeoRegions. This is no longer supported in ≥v8.
GeoRegions.GeoRegion Type
GeoRegion
A struct
containing geometric information on a geographic regions defined in Geometry
. We note the following:
geometry
- currently is a singularGeometry
The Geometry
Type
All GeoRegion
s are defined based on a Geometry
struct type that contains information on the geometry of a GeoRegion.
GeoRegions.Geometry Type
Geometry
Struct containing the geometry/shape properties of a GeoRegion. All Geometry
types contain the following fields:
shape
- A vector ofPoint2
(see GeometryBasics.jl) Types, defining a non-rectilinear shape of the GeoRegion.centroid
- APoint2
Type, defining the centroid of the GeoRegion.polygon
- APolygon
Type (see GeometryBasics.jl), which is useful when doing checks on polygons using GeometryOps.jl.
GeoRegions.jl extracts the Polygon
and Vector{Point}
information from this Geometry
type and use the functionalities of GeometryOps.jl to perform checks on polygons.