|
пре 1 месец | |
---|---|---|
app | пре 1 месец | |
.env | пре 1 месец | |
.gitignore | пре 1 месец | |
README.md | пре 1 месец | |
main.py | пре 1 месец | |
uninstall.txt | пре 1 месец |
这是一个基于 FastAPI 开发的地图数据处理系统,支持栅格和矢量数据的处理、存储和管理。
app/
├── api/ # API 路由层
│ ├── raster.py # 栅格数据接口
│ └── vector.py # 矢量数据接口
├── services/ # 业务逻辑层
│ ├── raster_service.py
│ └── vector_service.py
├── models/ # 数据模型
├── utils/ # 工具函数
├── database.py # 数据库配置
└── main.py # 主程序入口
安装项目依赖:
pip install -r requirements.txt
.env.example
文件为 .env
修改 .env
文件中的数据库连接信息:
DB_HOST=localhost
DB_PORT=5432
DB_NAME=your_database
DB_USER=your_username
DB_PASSWORD=your_password
启动服务:
uvicorn app.main:app --reload
访问 API 文档:
Swagger UI: http://localhost:8000/docs
ReDoc: http://localhost:8000/redoc
MIT License