水文地理信息服务平台
Project description
HydroPostGIS - 水文地理信息服务平台
项目简介
HydroPostGIS是一个基于PostGIS的水文地理信息服务平台,旨在提供行政区、流域面、测站点等地理信息的存储、维护和服务化能力。本项目是知汛平台的基础服务之一,提供地理信息的服务化解决方案。
技术栈
- 数据存储:PostgreSQL + PostGIS
- 空间数据格式:GeoPackage, Shapefile, GeoJSON
- 服务发布:GeoServer
- 开发工具:Python, GDAL
- 客户端支持:QGIS, ArcGIS
功能模块
1. 行政区管理
- 行政区数据的PostGIS存储
- 通过QGIS、ArcGIS进行维护
- 页面展示
- GeoServer同步
- 面平均雨量计算
2. 流域面管理
- 流域面数据的PostGIS存储
- 通过QGIS、ArcGIS进行维护
- 页面展示
- GeoServer同步
- 流域DEM的CDN缓存
- 面平均雨量计算
3. 测站点管理
- 测站点数据的PostGIS存储
- 与流域面的空间关系计算
- 基于权重的面平均雨量计算
- 数据异常检验
项目结构
HydroPostGIS/ ├── api/ # API接口层,提供RESTful服务 ├── config.py # 全局配置文件 ├── core/ # 核心业务逻辑 │ └── gis_service/ # GIS服务相关功能 │ ├── basin_region_relation.py # 流域与行政区关系 │ ├── basin_station_relation.py # 流域与测站关系 │ └── region_station_relation.py # 行政区与测站关系 ├── docs/ # 项目文档 ├── service/ # 服务层,连接API和核心层 ├── utils/ # 工具函数 │ ├── format_transform/ # 格式转换工具 │ │ └── geojson_to_gpkg.py # GeoJSON转GeoPackage │ ├── id_generator.py # ID生成器 │ ├── json_util.py # JSON处理工具 │ ├── minio/ # MinIO对象存储工具 │ │ ├── hres.py # 高分辨率文件处理 │ │ └── minio_util_with_cert.py # MinIO工具(带证书) │ └── postgres_util.py # PostgreSQL数据库工具 ├── .env # 环境变量配置 └── requirements.txt # 项目依赖
安装与配置
环境要求
- Python 3.8+
- PostgreSQL 12+ with PostGIS 3.0+
- GeoServer 2.19+
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hydropostgis-0.1.0.tar.gz.
File metadata
- Download URL: hydropostgis-0.1.0.tar.gz
- Upload date:
- Size: 29.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3657094a9901f6a07a5cd2c22cbe697f6ecc52ad62de499596e00f0bf22fa04
|
|
| MD5 |
6266cc2d6e94404a6d6a0aeccff525c7
|
|
| BLAKE2b-256 |
99ed70996e6c646a59bfabe493329c28917feff4c7bd6f0fd4161ae0524c4017
|
File details
Details for the file hydropostgis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hydropostgis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0179520a29051f40c7dba0985d02eea27f4519240bc8bd42609c3b02365fbede
|
|
| MD5 |
811bf42a0b6fbd6eea2ee1dfdc8075bd
|
|
| BLAKE2b-256 |
ee8fbcc9f3e0ab9b0fb7270a84fdb0fd8e9f48f392a66ac3d04b9ea6ba166e12
|