# minigis **Repository Path**: Morgenrot/minigis ## Basic Information - **Project Name**: minigis - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-23 - **Last Updated**: 2022-09-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 开发工具 ## 数据库 - PostgreSQL 12 - 官方文档:https://www.postgresql.org/docs/12/ - 添加空间数据: 1. 创建数据库,执行语句:create extension postgis 2. 通过SQL语句添加测试数据 ```sql CREATE TABLE test2 ( gid serial, geom geometry(LineString, [srid]) -- srid=4326:WGS84,不填则为平面直角坐标系 ) insert into test2(geom) values(st_geomfromtext('Linestring(10 10, 100 100, 120 100)')) insert into test2(geom) values(st_geomfromtext('Linestring(0 0, 100 0, 120 -10)')) ``` 3. 或通过PostGIS Bundle(数据库自带工具)导入shp(路径中不能有中文) ## Python ### Python - 版本:3.7.11 - 创建虚拟环境:conda create -n [名称] python=3.7.11 - 安装依赖:pip install -r requirement.txt(我没试过,ysh试了好像不太好用) 不用requirmnts的方法:创建虚拟环境后用conda安装geopandas(conda install geopandas)和psycopg2,用pip安装pyqt5。其他包会自动安装。 ### 图形界面:PyQt5 - 官方示例:https://github.com/pyqt/examples/blob/_/src/pyqt-official - 官方文档:https://www.riverbankcomputing.com/static/Docs/PyQt5/index.html - 中文示例:http://code.py40.com/pyqt5/ - 图形界面设计工具:Qt Designer ### 第三方库 - psycopg2 - pandas - geopandas - numpy ## 版本管理 - 版本管理工具:Git - 代码托管平台:Gitee # 项目结构