-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build/ | ||
__pycache__/ | ||
*.pyc | ||
dist/ | ||
*.egg* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
PolyTiles | ||
========= | ||
|
||
A script to get tiles from mapnik. Area can be defined by bbox, polygon | ||
or an OSM polygon; tiles can be served in image files or mbtiles. Run | ||
the script without parameters to see command line help. | ||
|
||
Requirements | ||
------------ | ||
|
||
Mapnik and ``python-shapely`` package. Optional dependencies are | ||
``python-psycopg2`` and ``sqlite3``. | ||
|
||
Author and license | ||
------------------ | ||
|
||
Written by Ilya Zverev, based on `generate\_tiles\_multiprocess.py`_, | ||
licensed WTFPL. | ||
|
||
.. _generate\_tiles\_multiprocess.py: http://svn.openstreetmap.org/applications/rendering/mapnik/generate_tiles_multiprocess.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .polytiles import main |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
from setuptools import setup | ||
from os import path | ||
|
||
try: | ||
import mapnik | ||
except ImportError: | ||
raise ImportError('Mapnik library and its python bindings are required to install Polytiles.') | ||
|
||
here = path.abspath(path.dirname(__file__)) | ||
|
||
setup( | ||
name='polytiles', | ||
version='1.0.0', | ||
author='Ilya Zverev', | ||
author_email='ilya@zverev.info', | ||
packages=['polytiles'], | ||
install_requires=[ | ||
'mapnik', | ||
'shapely', | ||
], | ||
url='https://github.com/zverik/polytiles', | ||
license='WTFPL', | ||
description='A script to render tiles for an area with mapnik', | ||
long_description=open(path.join(here, 'README.rst')).read(), | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
'Intended Audience :: Information Technology', | ||
'Natural Language :: English', | ||
'Operating System :: OS Independent', | ||
'Topic :: Utilities', | ||
'License :: Public Domain', | ||
'Programming Language :: Python :: 2', | ||
], | ||
entry_points={ | ||
'console_scripts': ['polytiles = polytiles:main'] | ||
}, | ||
) |