GeoServer页面介绍
开头附上 GeoServer官网
以下开始对GeoServer进行介绍
登录
为了更改任何服务器设置或配置数据,用户必须首先被认证。浏览到Web界面的右上方登录到GeoServer。
默认管理凭据包括:
用户名:admin
密码:geoserver

图层
图层:简单来说,按照笔者的理解,我们可以把它当作资源库,上面的库决定了咱们能看到的图;比如河流分布图,地形分布图,小一些的甚至是各市县的分布图;当然图层的类型也是不同,不过当它们整和在一起的时候 就是咱们所需要的地图;上面分布着我们想要的数据。

Layer Preview(图层预览)
从这里,你可以找到要预览的图层,然后单击输出格式的链接。单击给定图层的OpenLayers链接,将显示该视图。右上角有提供直接的收索,包括类型收索,对于大型项目有作用吧(小型的可以暂时无视)。

下面我们将创建自己的图层
发布shape文件一
下载文件[nyc_roads.zip(http://docs.geoserver.org/latest/en/user/_downloads/nyc_roads.zip)。
该档案包含纽约市的道路形状文件,将在本教程中使用。
将nyc_roads.zip解压缩到名为nyc_roads的新目录中。
存档包含以下四个文件:
nyc_roads 。shp
nyc_roads 。shx
nyc_roads 。dbf
将nyc_roads目录移动到<GEOSERVER_DATA_DIR> / data中,其<GEOSERVER_DATA_DIR>是GeoServer数据目录目录如果没有对GeoServer文件结构进行任何更改,则路径为geoserver / data_dir / data / nyc_roads
发布shape文件二
创建新的工作区


输入名称为nyc,名称空间URI为http://geoserver.org/nyc。点击提交将nyc挂在工作区上

到了欢迎页面 点击商店+

点击Shapefile。将显示“ 新建矢量数据源”页面。
首先配置基本商店信息。
从下拉菜单中选择工作区nyc。
输入数据源名称作为纽约 市道
输入简要说明(如“纽约市道”)。
在“ 连接参数”下,浏览到shapefile 的位置URL,通常为nyc_roads / nyc_roads.shp。
击保存。你将被重定向到新层页面以配置nyc_roads图层。

最后一个 点击发布
“ 编辑层”页面定义图层的数据和发布参数。输入简短的标题和摘要的nyc_roads层。


通过从数据单击Compute然后从本机边界计算生成图层的边框。
点击页面顶部的发布选项
卡。
我们可以在这里设置图层的样式。在WMS设置下,确保默认样式设置为行。

验证nyc_roads图层是否正确发布,我们可以预览图层。
导航到图层预览屏幕,并找到nyc:nyc_roads图层。
