Skip to main content

水文地理信息服务平台

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydropostgis-0.1.1.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hydropostgis-0.1.1-py3-none-any.whl (40.7 kB view details)

Uploaded Python 3

File details

Details for the file hydropostgis-0.1.1.tar.gz.

File metadata

  • Download URL: hydropostgis-0.1.1.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for hydropostgis-0.1.1.tar.gz
Algorithm Hash digest
SHA256 09ae4cb652e590b34759393cbd799ee451f44efd4e314b3849f23cdff189eed6
MD5 a14a3e4579c187d1fec41028fcfb9398
BLAKE2b-256 35e584662fbbee76ef40091436b45d3f32a2bfc87bbbcf454dc3219c4e754172

See more details on using hashes here.

File details

Details for the file hydropostgis-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hydropostgis-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 40.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for hydropostgis-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0491367b5cac4e99856cb1f3b01043451119422e31b20a9ebd7874b9025f9196
MD5 bd3eccf5d3d08203c73febf6d653cd2b
BLAKE2b-256 4a7aca9d066f0d91b59f0167dff13a0125500c732df22927dd1623b0d91f6f7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page