在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:codeforamerica/US-Census-Area-API开源软件地址:https://github.com/codeforamerica/US-Census-Area-API开源编程语言:Python 90.5%开源软件介绍:US Census Area APISimple geospatial API for U.S. Census and other data sources, in response to the Census Area API hack request. This application can be run in two distinct ways. When the environment variable Otherwise, it will use a local OGR-compatible datasource such as a shapefile or GeoJSON to serve any data and make it available for download. A sample copy with Bay Area Census data can be found at census-api-bay-area.herokuapp.com. InstallingThis is a Flask-based Python application which requires compiled geospatial libraries Shapely and GDAL to run. Directions here assume that you have an OGR-compatible datasource you’d like to use. Test Locally
Run Locally with GunicornTo run a more robust installation using the Python WSGI HTTP server Gunicorn, prepare local data as in steps 1 & 2 above, then call:
Run on HerokuCompiled geospatial libraries for Heroku are available via the open source GIS Heroku buildpack. Create a new Heroku app with this buildpack:
There are two possible ways to run the API on Heroku:
CreditsWritten by Michal Migurski with
Andy Hull, (c) 2013 Code for America.
See |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论