Geoserver 和 OpenLayers
目录
1 准备工作.................................................................................................................................................3
1.1 需要用到的程序和资料.................................................................................................................3
2 地图格式转换方式(一)..........................................................................................................................4
3 GEOSERVER 安装配置.......................................................................................................................4
3.1 GEOSERVER 安装.............................................................................................................................4
3.2 配置地图.........................................................................................................................................4
3.2.1
登录
geoserver..........................................................................................................................5
3.2.2
配置数据
..................................................................................................................................5
3.2.3
新建数据集
..............................................................................................................................6
3.2.4
新建
Feature Type....................................................................................................................8
3.2.5
应用保存配置
........................................................................................................................10
3.2.6
访问地图
................................................................................................................................13
4 OPENLAYERS 配置...........................................................................................................................15
4.1 测试页面.......................................................................................................................................15
4.2 部署示例.......................................................................................................................................20
4.3 查看效果.......................................................................................................................................20
4.4 加上 GOOGLEMAP 图层..................................................................................................................20
4.4.1
申请
Google
地图
API
的
key................................................................................................20
4.4.1.1 将域名映射到本地.......................................................................................................................21
4.4.2
编辑
html................................................................................................................................21
4.4.3
查看效果
................................................................................................................................21
5 GEOSERVER 高级设置.....................................................................................................................22
5.1 自定义图层的 STYLE....................................................................................................................22
5.2 查看图层的字段信息...................................................................................................................25
5.3 在 TOMCAT 上部署 GEOSERVER....................................................................................................27
5.4 自定义名称空间...........................................................................................................................28
6 参考资料...............................................................................................................................................30
7 UDIG 生成 STYLE.............................................................................................................................31
7.1 导出 SLD 样式文件,....................................................................................................................31
7.2 四色地图.......................................................................................................................................31
第 2 页 共 32 页