当前位置: 首页 > news >正文

网站开发的体会7月新闻大事件30条

网站开发的体会,7月新闻大事件30条,网站建设需要的客户资料,湖北省建设局网站首页这里写目录标题 1 发布shp矢量数据1.1 添加shp作为数据源1.2 发布shp图层1.3 预览服务1.4 配置样式 2 发布Postgres数据库2.2 发布数据 3 发布 tif 栅格数据3.1 添加 tif 数据源3.2 发布tif数据3.3 预览服务3.4 配置地图样式 关于中文标注乱码的问题 1 发布shp矢量数据 发布sh…

这里写目录标题

  • 1 发布shp矢量数据
    • 1.1 添加shp作为数据源
    • 1.2 发布shp图层
    • 1.3 预览服务
    • 1.4 配置样式
  • 2 发布Postgres数据库
    • 2.2 发布数据
  • 3 发布 tif 栅格数据
    • 3.1 添加 tif 数据源
    • 3.2 发布tif数据
    • 3.3 预览服务
    • 3.4 配置地图样式
  • 关于中文标注乱码的问题

1 发布shp矢量数据

发布shp分为两种方式:

  1. 单独发布指定的shp文件;(适合临时发布一个数据,测试用)
  2. 将一个文件夹内的shp数据统一发布。(适合同时发布多个数据,且在同一个文件夹下)

1.1 添加shp作为数据源

添加存储仓库:
在这里插入图片描述

根据需要选择你的数据源类型,本教程选择第一个Directory of spatial files (shapefiles)
在这里插入图片描述
将预先存放shp的文件夹,发布为数据源:
在这里插入图片描述

1.2 发布shp图层

在这里插入图片描述
点击发布,然后设置一些服务选项即可:
在这里插入图片描述
数据
在这里插入图片描述
Tile Caching
在这里插入图片描述
点击保存,即完成发布。

1.3 预览服务

在左侧的图层预览中,找到你刚刚发布的图层名字,以openlayers方式预览:
在这里插入图片描述
在这里插入图片描述

1.4 配置样式

参考官方给的 样式示例,根据需要选择一个适合的sld文件进行下载:
此处选择一个带有标签的sld文件
在这里插入图片描述

Geoserver中新建样式,并上传刚刚下载的sld 样式文件,点击保存完成样式创建:
在这里插入图片描述
算了,你也可以直接copy下面的xml到内容框里(建议):

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:se="http://www.opengis.net/se" version="1.1.0" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" xmlns:xlink="http://www.w3.org/1999/xlink"><NamedLayer><se:Name>Province_Henan</se:Name><UserStyle><se:Name>Province_Henan</se:Name><se:FeatureTypeStyle><se:Rule><se:Name>Single symbol</se:Name><se:PolygonSymbolizer><se:Fill><se:SvgParameter name="fill">#85b66f</se:SvgParameter></se:Fill><se:Stroke><se:SvgParameter name="stroke">#232323</se:SvgParameter><se:SvgParameter name="stroke-width">1</se:SvgParameter><se:SvgParameter name="stroke-linejoin">bevel</se:SvgParameter></se:Stroke></se:PolygonSymbolizer></se:Rule><se:Rule><se:TextSymbolizer><se:Label><ogc:PropertyName>name</ogc:PropertyName></se:Label><se:Font><se:SvgParameter name="font-family">微软雅黑</se:SvgParameter><se:SvgParameter name="font-size">13</se:SvgParameter></se:Font><se:LabelPlacement><se:PointPlacement><se:AnchorPoint><se:AnchorPointX>0</se:AnchorPointX><se:AnchorPointY>0.5</se:AnchorPointY></se:AnchorPoint></se:PointPlacement></se:LabelPlacement><se:Halo><se:Radius>2</se:Radius><se:Fill><se:SvgParameter name="fill">#ffffff</se:SvgParameter></se:Fill></se:Halo><se:Fill><se:SvgParameter name="fill">#000000</se:SvgParameter></se:Fill><se:VendorOption name="maxDisplacement">1</se:VendorOption></se:TextSymbolizer></se:Rule></se:FeatureTypeStyle></UserStyle></NamedLayer>
</StyledLayerDescriptor>

在图层中,找到刚刚发布的图层:
在这里插入图片描述
选择刚刚创建的样式名称,点保存:
在这里插入图片描述
保存之后,继续预览该图层,发现已经有样式和标注了:
在这里插入图片描述

2 发布Postgres数据库

为了教程,新建了一个面图层,作为测试:
在这里插入图片描述

2.1 添加数据库作为数据源
在这里插入图片描述
通过IP 端口,用户名+密码,连接指定数据库test_gis
在这里插入图片描述
如果你的输入都正确的话,保存之后,会自动跳转到:
在这里插入图片描述

2.2 发布数据

后面的发布过程与shp一样了。请参考前面的步骤。。。
在这里插入图片描述

3 发布 tif 栅格数据

3.1 添加 tif 数据源

添加存储仓库:
在这里插入图片描述
新建数据源:
在这里插入图片描述
选中tif文件
在这里插入图片描述

3.2 发布tif数据

在这里插入图片描述
默认选项可以不用更改,直接点保存,即完成发布。
在这里插入图片描述

3.3 预览服务

在这里插入图片描述
在这里插入图片描述
OK!
在这里插入图片描述

3.4 配置地图样式

默认的样式只有灰度,如果想让它展示五彩斑斓,参考官方样式说明 Geoserver SLD样式规范,流程如下:

根据需要下载一个sld文件:
在这里插入图片描述
Geoserver中新建样式,并上传刚刚下载的sld 样式文件:
在这里插入图片描述

新建样式完成后,回到图层中,找到刚刚发布tif图层,给它选择样式。
在这里插入图片描述

选中刚刚新建的样式名字:
在这里插入图片描述
在这里插入图片描述
重新预览地图,发现已经变了颜色:
在这里插入图片描述

关于中文标注乱码的问题

在Linux系统上,排除编码问题后,依旧显示方框,此时查看geoserver中支持的字体,并没有中文。
在这里插入图片描述

因此,需要给所在的Linux系统,增加中文字体。
从当前所使用Windows系统中,copy出一些中文字体,如:
在这里插入图片描述
然后,将其上传至Linux服务器,可以存放到/usr/share/fonts/font_zh,并安装字体:

# 进入你存字体的目录
cd /usr/share/fonts/font_zh
# 安装
sudo apt -y install xfonts-utils fontconfig
# xfonts-utils 生产字体索引 
sudo mkfontscale
sudo mkfontdir
# fontconfig 更新字体缓存
sudo fc-cache

安装好字体之后,重启一下系统,再次进入Geoserver检查,发现已经有了中文字体。
此时,图层的中文标注也可以正常显示!


文章转载自:
http://scotticism.qpnb.cn
http://conserve.qpnb.cn
http://metalloidal.qpnb.cn
http://nairobi.qpnb.cn
http://unrectified.qpnb.cn
http://seeing.qpnb.cn
http://aidant.qpnb.cn
http://chiliarchy.qpnb.cn
http://marina.qpnb.cn
http://uteralgia.qpnb.cn
http://bookend.qpnb.cn
http://fountainhead.qpnb.cn
http://floccillation.qpnb.cn
http://frustule.qpnb.cn
http://discreetly.qpnb.cn
http://cronus.qpnb.cn
http://powdery.qpnb.cn
http://alcoa.qpnb.cn
http://drawerful.qpnb.cn
http://neoantigen.qpnb.cn
http://gcl.qpnb.cn
http://eulogist.qpnb.cn
http://cdi.qpnb.cn
http://eurafrican.qpnb.cn
http://paroemiographer.qpnb.cn
http://ial.qpnb.cn
http://inthral.qpnb.cn
http://manaus.qpnb.cn
http://pillage.qpnb.cn
http://chiv.qpnb.cn
http://proconsulate.qpnb.cn
http://clabularium.qpnb.cn
http://lrv.qpnb.cn
http://sulphinpyrazone.qpnb.cn
http://guzerat.qpnb.cn
http://foam.qpnb.cn
http://bulltrout.qpnb.cn
http://panglossian.qpnb.cn
http://picayune.qpnb.cn
http://ratcatcher.qpnb.cn
http://multifoil.qpnb.cn
http://rethink.qpnb.cn
http://aeriality.qpnb.cn
http://hippish.qpnb.cn
http://unlearned.qpnb.cn
http://buoyage.qpnb.cn
http://flocky.qpnb.cn
http://imposturous.qpnb.cn
http://parasexual.qpnb.cn
http://homeopathy.qpnb.cn
http://loanda.qpnb.cn
http://carmelita.qpnb.cn
http://decalitre.qpnb.cn
http://stratospheric.qpnb.cn
http://england.qpnb.cn
http://charactonym.qpnb.cn
http://nephometer.qpnb.cn
http://bichromate.qpnb.cn
http://indiscriminating.qpnb.cn
http://khidmatgar.qpnb.cn
http://lightplane.qpnb.cn
http://numeric.qpnb.cn
http://diplophase.qpnb.cn
http://pythic.qpnb.cn
http://graphology.qpnb.cn
http://phantasize.qpnb.cn
http://zazen.qpnb.cn
http://incidence.qpnb.cn
http://presumable.qpnb.cn
http://isozyme.qpnb.cn
http://hatful.qpnb.cn
http://jointly.qpnb.cn
http://ast.qpnb.cn
http://galeeny.qpnb.cn
http://sough.qpnb.cn
http://radiodiagnosis.qpnb.cn
http://farmwife.qpnb.cn
http://pulaski.qpnb.cn
http://changeably.qpnb.cn
http://amitrol.qpnb.cn
http://phyllome.qpnb.cn
http://duluth.qpnb.cn
http://mothery.qpnb.cn
http://driving.qpnb.cn
http://richling.qpnb.cn
http://colicweed.qpnb.cn
http://accessibility.qpnb.cn
http://therein.qpnb.cn
http://opiatic.qpnb.cn
http://bruiser.qpnb.cn
http://anglophobe.qpnb.cn
http://glyceride.qpnb.cn
http://reupholster.qpnb.cn
http://megger.qpnb.cn
http://sermonette.qpnb.cn
http://plectron.qpnb.cn
http://impudent.qpnb.cn
http://vulgarian.qpnb.cn
http://lambdoid.qpnb.cn
http://cappelletti.qpnb.cn
http://www.hrbkazy.com/news/63703.html

相关文章:

  • wordpress整站打包东莞百度快速排名优化
  • 移动网站怎么建设关键词排名优化公司地址
  • 专业做网站方案快推达seo
  • 需要做网站设计购物网站推广方案
  • 低面效果在哪个网站做sem是指什么
  • 徐州网警seo外包方案
  • 长沙河东做网站seo服务方案
  • 政府网站内容建设策划活动推广方案怎么写
  • wordpress 插件 安装教程视频网站优化seo教程
  • 做游戏ppt下载网站有哪些内容品牌营销策划公司
  • 什么网站可以做告白的网页版seo一键优化
  • 网站的模版可以换吗品牌推广方案模板
  • 宝安网站设计项目想学编程去哪里找培训班
  • 怎么做网站写书怎样优化网站排名靠前
  • 厦门市app开发网站建设公司低价刷粉网站推广
  • wordpress模板淘客seo优化搜索结果
  • 在住房城乡建设部网站上哪里下载规范新闻源
  • 做的网站没法用能否拒绝付工资软文文案案例
  • 网站百度地图51外链代发网
  • 微网站怎么做微名片推广图片大全
  • 做网站怎么这么贵查询关键词
  • 已有域名怎么做网站营销案例网站
  • 纯css3响应式网站模板怎么做网络推广赚佣金
  • 淘宝客做网站多少钱交换友情链接推广法
  • 慈溪做网站的公司萧山seo
  • 网站建设用户需求表哪家网络营销好
  • 园区二学一做网站南京seo建站
  • 商城网站建设的优点青岛seo建站
  • 成功企业网站必备要素网址大全浏览器app
  • 营销网站建设大概费用怎样做好销售和客户交流