【开源WebGIS】02-矢量数据传入PostGIS+发布GeoServer服务+QGIS符号化

给pg数据库添加postgis扩展

方法1

https://www.cnblogs.com/GIScore/p/6051514.html

注意:如果不添加此扩展,shp文件会导入失败
在这里插入图片描述
选择postgis
选择版本

方法2

作者:宋冉_ 链接:https://www.jianshu.com/p/367044c399b6 来源:简书

建立完成数据库后,点击该数据库下的Schemas->public->Table,使用SQL语句添加空间数据库管理插件PostGIS:CREATE EXTENSION PostGIS,成功后刷新,数据表中会出现spatial_ref_sys,说明可以导入空间数据了。

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

数据导入PostGIS数据库

连接数据库

导入数据,路径不能有中文
查看数据
在这里插入图片描述

https://www.cnblogs.com/GIScore/p/6051514.html

GeoServer绑定PostGIS数据库数据并发布服务

作者:宋冉_ 链接:https://www.jianshu.com/p/367044c399b6 来源:简书

1 新建工作区

在这里插入图片描述

2 配置数据源

在这里插入图片描述
如果遇到报错:pgsql在连接的时候报:不支援 10 验证类型。请核对您已经组态,查看文章:

https://blog.csdn.net/weixin_46267444/article/details/117749805
https://blog.csdn.net/seulzz/article/details/112357921

3 发布图层

在这里插入图片描述

在这里插入图片描述

4 发布样式

配置样式,并另存为sld文件
在这里插入图片描述

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
预览发现已经符号化成功
在这里插入图片描述

参考大佬的文章

版权声明:本文为CSDN博主「l淡漠l」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qw15288464251/article/details/119454290

  • 0
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
C#开发,可解析WMS服务,并进行浏览,功能强大,GIS开发人员可参考文件列表 Get Capabilities Example ........................\AssemblyInfo.cs ........................\Get Capabilities Example.csproj ........................\GetCapabilitiesExample.cs Get Map Asynch Example ......................\AssemblyInfo.cs ......................\Get Map Asynch Example.csproj ......................\GetMapAsynchExample.cs ......................\GetMapAsynchExample.resx Get Map Example ...............\AssemblyInfo.cs ...............\Get Map Example.csproj ...............\GetMapExample.cs GLOBECapabilities20040423.xml MapAnimation ............\AssemblyInfo.cs ............\Map Animation.csproj ............\MapAnimation.cs ............\MapAnimation.resx WMS Overview Article.html WMS Overview.sln Wms.Client ..........\AssemblyInfo.cs ..........\Capabilities.cs ..........\CLSDFOLD.BMP ..........\DefaultServerDescriptors.xml ..........\DownloadCache.cs ..........\ENTIRNET.BMP ..........\ENTIRNETX.bmp ..........\ENTIRNETX.ICO ..........\ExtensionMap.cs ..........\Layer.cs ..........\OPENFOLD.BMP ..........\PreviewDialog.cs ..........\PreviewDialog.resx ..........\RequestBuilder.cs ..........\Retriever.cs ..........\Server.cs ..........\ServerAddDialog.cs ..........\ServerAddDialog.resx ..........\ServerDescriptor.cs ..........\Wms.Client.csproj ..........\WmsDialog.cs ..........\WmsDialog.resx ..........\WmsException.cs ..........\WmsServerDescriptors.cs ..........\WmsServerDescriptors.xsd WMSBrowser ..........\AssemblyInfo.cs ..........\MapForm.cs ..........\MapForm.resx ..........\WMSBrowser.cs ..........\WMSBrowser.csproj ..........\WMSBrowser.resx
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

老靳的WebGIS

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值