{ "info": { "author": "Andrey Sorokin", "author_email": "andreysrkn@eosda.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: Public Domain", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Database" ], "description": "## EOS vision tile query library \n\nvision_tile_query is a library for creating SQL with PostGIS As_MVT by XYZ.\nIt can be used for constructing vector servers\n## Architecture\nVision tile query library provides PostGIS MVT SQL query with special \nabilities. Polygon simplification and geometries count simplification \naccording to zoom level are the main features. Read more about postgis+MVT \nhttps://postgis.net/docs/ST_AsMVT.html\n### Installing\nSimple run\n```text\npip install vision-tile-query\n\n``` \n### Usage examples\nTile query library requires SQLalchemy table model for constructing SQL query \n#### Flask\nExample for flask framework with sqlalchemy DB engine\n```python\nfrom flask import Flask, render_template\nfrom sqlalchemy import create_engine\nfrom vision_tile_query import VisionBaseTileProcessor\nfrom vision_tile_query import TableManager\n\napp = Flask(__name__)\n# Connect to DB\napp.engine = create_engine('postgresql://postgres@localhost:5432/vision_db')\ntable_manager = TableManager(app.engine)\n\n\n@app.route('/')\ndef map_page():\n return render_template('main.html')\n\n\n@app.route('/tile/