{ "info": { "author": "Jacob Wasserman", "author_email": "jwasserman@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "tilereduce\n==========\n\nA framework for writing [tile-reduce](https://github.com/mapbox/tile-reduce)\nmap scripts in Python.\n\nNOTE: This library is experimental and under active development. No official\nrelease has been created.\n\n\nUsage\n-----\nFirst read the documentation at [tile-reduce](https://github.com/mapbox/tile-reduce).\n\n`tile-reduce-py` allows you to write the map script in Python. The reducer is\nstill Javascript.\n\n```\nimport mapbox_vector_tile\n\nimport tilereduce\n\n\nclass BuildingRoadCount(tilereduce.TR):\n def mapper(self, x, y, zoom, data):\n if data is None:\n return 0\n\n # Decode the raw binary protocol buffer data\n td = mapbox_vector_tile.decoder.TileData(2048)\n tile = td.getMessage(data)\n\n count = 0\n if tile.get('buildings'):\n count += len(tile['buildings'])\n if tile.get('roads'):\n count += len(tile['roads'])\n\n return count\n\n\nif __name__ == '__main__':\n BuildingRoadCount.main()\n```\n\nThe reduce script is identical as the original Node example except the `map`\nargument is now the path to the Python map script.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jwass/tilereduce", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "tilereduce", "package_url": "https://pypi.org/project/tilereduce/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tilereduce/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jwass/tilereduce" }, "release_url": "https://pypi.org/project/tilereduce/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Run tile-reduce map jobs in Python", "version": "0.0.1" }, "last_serial": 1840087, "releases": { "0.0.1": [] }, "urls": [] }