1 / 50
文档名称:

GeoServer-学习手册.doc

格式:doc   大小:312KB   页数:50页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

GeoServer-学习手册.doc

上传人:夏风如歌 2022/3/13 文件大小:312 KB

下载得到文件列表

GeoServer-学习手册.doc

文档介绍

文档介绍:GeoServer Eclipse 搭建
矢量数据库搭建
安装数据库
sudo apt-get install postgresql postgresql-contrib postgis postgresql--postgis程访问
******@server2-virtual-machine:~# vi /etc/postgresql/
,修改连接权限
#listen_addresses = ‘localhost’改为 listen_addresses = ‘*’

#password_encryption = on改为password_encryption = on

******@server2-virtual-machine:~# vi /etc/postgresql/,并在文档末尾加上以下内容
# to allow your client visiting postgresql server
host all all md5

******@server2-virtual-machine:~# /etc/ restart
管理PostgreSQL用户和数据库
SQL数据库
******@server2-virtual-machine:~# psql -U postgres -h
,但不给建数据库的权限
postgres=# create user “zhaofeng〞 with password ‘123456’ nocreatedb;
//注意用户名要用双引号,以区分大小写,密码不用
,并指定所有者
postgres=# create database “testdb〞 with owner=〞zhaofeng〞;

******@server2-virtual-machine:~# -u postgres createuser -D -P test1
//-D该用户没有创立数据库的权利,-P提示输入密码,选择管理类型y/n
******@server2-virtual-machine:~# -u postgres createdb -O test1 db1
//-O设定所有者为test1
安装postgresql数据库pgAdmin3客户端管理程序
******@server2-virtual-machine:~# apt-get install pgadmin3
添加PostGIS功能到数据库,执行如下命令
psql -U postgres -d osm -f “你PostgreSQL安装路径/share/contrib/postgis-〞
添加EPSG: 900913支持
psql -U postgres -d osm -f “本地的文件路径/〞

添加OSM数据到数据库
,。
新翻开一个命令行进入osm2pgsql的x64目录中,执行如下命令:
osm2pgsql -U postgres -d osm -s -S ./ ./
一般情况下会报一个〞Error reading style file line 151 (fields=4) flag ‘phstore’ is invalid in non