Metadata-Version: 2.0
Name: simplification
Version: 0.1.1
Summary: Fast linestring simplification
Home-page: https://github.com/urschrei/simplification
Author: Stephan Hügel
Author-email: urschrei@gmail.com
License: MIT License
Download-URL: https://github.com/urschrei/simplification/tarball/v0.1.1
Keywords: Geo,Polyline,Linestring
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Education
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Dist: numpy (>=1.11.0)

|Line|
# Simplification Simplify a LineString using the
`Ramer–Douglas–Peucker <https://en.wikipedia.org/wiki/Ramer–Douglas–Peucker_algorithm>`_
algorithm

Installation
------------

``pip install simplification``
Please use a recent (>= 8.1.2) version of ``pip``.

Supported Python Versions
~~~~~~~~~~~~~~~~~~~~~~~~~


-  Python 2.7
-  Python 3.5

Supported Platforms
~~~~~~~~~~~~~~~~~~~


-  Linux (``manylinux1``-compatible)
-  OS X
-  Windows 32-bit / 64-bit

Usage
-----

.. code-block:: python

    from simplification.cutil import simplify_coords

    coords = [ [0.0, 0.0], [5.0, 4.0], [11.0, 5.5], [17.3, 3.2], [27.8,
    0.1] ]

    # Try an epsilon of 1.0 to start with. Other sensible values include 0.01, 0.001
    simplified = simplify\_coords(coords, 1.0)

    # simplified is [[0.0, 0.0], [5.0, 4.0], [11.0, 5.5], [27.8, 0.1]]


How it Works
------------

FFI and a `Rust binary <https://github.com/urschrei/rdp>`_

Is It Fast
----------

I should think so.

License
-------

`MIT <license.txt>`_

.. |Line| image:: https://cdn.rawgit.com/urschrei/rdp/6c84264fd9cdc0b8fdf974fc98e51fea4834ed05/rdp.svg

