Geoserver(四 其他)
本文最后更新于:2023年11月30日 下午
一、WMS 问题
1. GetCapabilities
http://localhost:8080/geoserver/wms?
service=wms& //服务名称
version=1.1.1&//服务版本
request=GetCapabilities//请求功能
- 有三个参数传递给WMS服务器,
service=wms,version=1.1.1和request=GetCapabilities. 这个service参数告诉WMS服务器即将发出WMS请求。这个version参数引用正在请求的WMS版本。这个request参数指定getCapabilities操作。
2. GetMap
1
2
3
4
5
6
7
8
9
10
11http://localhost:8080/geoserver/wms?
request=GetMap //请求功能
&service=WMS//服务名称
&version=1.1.1//服务版本
&layers=topp%3Astates
&styles=population
&srs=EPSG%3A4326 // SRS 坐标
&bbox=-145.15104058007,21.731919794922,-57.154894212888,58.961058642578&
&width=780
&height=330
&format=image%2Fpng
3.GetFeatureInfo
请求XML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17http://localhost:8080/geoserver/wms?
request=GetFeatureInfo
&service=WMS
&version=1.1.1
&layers=topp%3Astates
&styles=
&srs=EPSG%3A4326
&format=image%2Fpng
&bbox=-145.151041%2C21.73192%2C-57.154894%2C58.961059
&width=780
&height=330
&query_layers=topp%3Astates
&info_format=text%2Fhtml
&feature_count=50
&x=353
&y=145
&exceptions=application%2Fvnd.ogc.se_xml请求GeoJson
1
2
3
4
5
6
7
8
9
10http://localhost:8080/geoserver/wms?
&INFO_FORMAT=application/json
&REQUEST=GetFeatureInfo
&EXCEPTIONS=application/vnd.ogc.se_xml
&SERVICE=WMS
&VERSION=1.1.1
&WIDTH=970&HEIGHT=485&X=486&Y=165&BBOX=-180,-90,180,90
&LAYERS=COUNTRYPROFILES:grp_administrative_map
&QUERY_LAYERS=COUNTRYPROFILES:grp_administrative_map
&TYPENAME=COUNTRYPROFILES:grp_administrative_map
4.Describe Layer
http://localhost:8080/geoserver/wms?service=WMS &version=1.1.1 &request=DescribeLayer &layers=sf:roads,topp:tasmania_roads,nurc:mosaic &outputFormat=application/json
Geoserver(四 其他)
https://anonymouslosty.ink/2022/07/09/Geoserver4/