Skip to content

Fixes in Graticule generation for projections

Various fixes and improvements for rendering graticules.

  • Added fixes to support Lambert Conformal Conic (LCC) projection
  • Added functionality to actually check whether a path intersects the boundary of the projection domain and therefore should not be drawn. This depends on the projection, and is currently implemented only for LCC, and trivially for stereographic and latlong. The functional setup should make it easy to add more projections later.
  • Added functionality to have applying the magical scale factor depending on the projection. Ones in degrees (longlat) does not need the scale, only ones in meters.
  • Added signaling from graticule actor within HSec Actor to the parent HSec actor to actually trigger a redraw on recalculating graticule.

To test the merge request, try different graticule projections in the Graticule and HSec Actor.

  • +proj=lcc +lat_0=-33.5 +lon_0=-61.5 +lat_1=-33.5 +lat_2=-33.5 +x_0=0 +y_0=0 +R=6370000 +units=m +no_defs
  • +proj=stere +a=6378273 +b=6356889.44891 +lat_0=90 +lat_ts=70 +lon_0=0
  • +proj=longlat +ellps=WGS84

Merge request reports

Loading