The border of a country can be represented by a parametric curve derived from a Fourier series approximation. In this Demonstration, the Fourier series is computed using the border coordinates stored in CountryData. To form an elegant parametric equation representing the curve, the coefficients are rationalized.

Increasing the number of terms of the series or decreasing the tolerance of the rationalization gives a more accurate curve.