ossama-othman / MaRC

MaRC - Map Reprojections and Conversions
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Improve plotted curves in grid images. #31

Open ossama-othman opened 7 years ago

ossama-othman commented 7 years ago

MaRC's map grid plotting routines are fine for map projections where the grid lines are strictly horizontal or vertical but not very good otherwise. Leverage algorithms like Bresenham's Line Algorithm and the Midpoint Circle Algorithm, as well as Bezier curve algorithms to improve the quality of the map grids.

ossama-othman commented 7 years ago

We could also leverage libraries like FreeType to render text into grid image to denote specific latitudes and longitudes. However, we'd likely have to switch to a compatible license like GPLv3 / LGPLv3 since the FreeType license is not compatible with GPLv2 and LGPLv2.x.