geonode安全插件
safe-geonode的Python项目详细描述
安装
以下是在开发模式(用于更改软件)和生产模式(用于在服务器上部署)下安装Risiko的说明。
Install safe-geonode:
sudo add-apt-repository ppa:geonode/unstable sudo apt-get update sudo apt-get install geonode source /var/lib/geonode/bin/activate pip install safe-geonodeModify your INSTALLED_APPS to include safe_geonode:
INSTALLED_APPS += ('safe_geonode', 'leaflet',)Add an entry for geonode_safe in your urls.py:
urlpatters += ((r'^safe/', include('safe_geonode.urls'),)Copy the missing static files, create the new tables in the database and reload the apache web server:
sudo geonode collectstatic sudo geonode syncdb sudo service apache2 reloadIf you need sample data, get it from the inasafe_data repository:
git clone https://github.com/AIFDR/inasafe_data.gitAnd load it using ^{tt1}$:
geonode safeimportlayers inasafe_data/hazard geonode safeimportlayers inasafe_data/exposureFinally, navigate to the safe interface to try it out:
限制
安全地球节点是一个非常新的项目。 然而,我们的工作理念是,利益相关者应该从一开始就能够访问开发和源代码,并邀请评论、建议和贡献。
因此,安全geonode目前有一些主要限制,包括
- All data must be provided in WGS84 geographic coordinates
- Neither AIFDR nor GFDRR take any responsibility for the correctness of outputs from safe-geonode or decisions derived as a consequence