.. _example_40:

(40) Line simplification
------------------------

This example demonstrate the Douglas-Peucker line simplification algorithm as
implemented in the tool :doc:`gmtsimplify </gmtsimplify>`.  We show the full
resolution coastline of Australia and two much simplified versions using two
different thresholds.

.. literalinclude:: /_verbatim/ex40.txt
   :language: bash

.. figure:: /_images/ex40.*
   :width: 500 px
   :align: center

   Illustrate line simplification and area calculations.
