Skip navigation links

Package earth

Package for earth areas.

See: Description

Package earth Description

Package for earth areas. An EarthArea is a rectangle division of Earth in Latitude / Longitude Projection which can be defined as : longitude is x, latitude is y and the earth has considerable distortion away from the Equator due to horizontal increase in longitude degrees. This class without geographic spherical projection is sufficient to detect if an area intersects an other one or contains a point but need some conventions to works with meridian 180 :
              w                          w                    w                  w
      +---------------+      +---------------+        +---------------+        +---------------+
      |               |      |               |        |               |        |               |
      |               |      |               |        |               |        |               |
      |       C       | h    |       C       | h      |       C       | h      |       C       | h 
      |               |      |               |        |               |        |               |
      |       |       |      |       |       |        |               |    |   |               |
      M-------+-------+      M-------+-------+        M---------------+    |   M---------------+
             180                     0                                     0   
      fig1                       fig2                  fig3                    fig4
 
  C : center
  M : (minX,minY) = (lonMin,latMin)
  w : width       = width in degree
  h : height      = heigth in degree
  fig1 : consider longitude after 180 as positive
  fig2 : longitude from negative to positive (no considerations)
  fig3 : longitude from negative to negative (no considerations)
  fig4 : longitude from positive to positive (no considerations)
 
Skip navigation links