PostGIS操作
来源:互联网 发布:电信网络经常掉线 编辑:程序博客网 时间:2024/06/06 03:04
PostGIS操作数据库
- 创建
CREATE USER gisdb WITH SUPERUSER PASSWORD 'gisdb';CREATE TABLESPACE gisdb OWNER gisdb LOCATION 'D:\data';CREATE DATABASE gisdb OWNER gisdb TABLESPACE gisdb;\c gisdb-- Enable PostGIS (includes raster)CREATE EXTENSION postgis;
- 删除
DROP DATABASE gisdb;DROP USER gisdb;
- 命令行登陆
psql -h localhost -U username -d dbname
- 切换数据库
\c dbname username serverIP port
PostGIS操作语句
空间操作以 ST(spatial type)开头
- 查询数据库PostGIS版本信息
SELECT postgis_full_version()
- 查询要素类型
select GeometryType(geom) from towns
- 查询要素总面积
select ST_Area(ST_Union(geom)) from towns
- 从WKB查询WKT(字段中存储的是WKB)
SELECT ST_AsText(ST_GeomFromWKB(geom)) FROM towns WHERE town = 'BOSTON';
0 0
- PostGIS操作
- c# 操作postgis
- PostGIS 操作geometry方法
- postgis
- PostGis
- postgis
- Postgis
- PostGIS
- postGIS
- 终于搞定GeoTools对PostGis的操作
- 终于搞定GeoTools对PostGis的操作
- django model postgis的一些操作
- PostgreSql 使用postgis 存储地理空间信息操作以及jsonb操作示例
- POSTGIS教程
- postGis 函数
- POSTGIS教程
- PostGIS介绍
- postgis shptosql
- CSS3新增伪类举例:
- RecyclerView万能的分割线
- 图像处理之_仿射变换与透视变换
- interceptor的应用与源码分析
- 判断网络状态
- PostGIS操作
- JavaScript的数据对象有那些属性值?
- Spring学习——Spring IOC 学习整理资料整理
- 信息安全(--网络安全)
- AlertDialog点击事件并获取EditText内容
- 列出display的值,说明他们的作用。position的值, relative和absolute定位原点是?
- 腾讯云服务器安装AMH控制面板
- 深入浅出down_interruptible函数
- HTML5的离线储存?