Google maps 如何在WMS请求中指定参数层?
我想通过WMS访问我发布的和公共的谷歌地图引擎地图 我已经从地图详细信息中复制了链接。但我不知道参数层应该是什么样子?它的价值是什么 作为值,我尝试了层的名称,但似乎不起作用。 我得到的回答是“没有请求层的数据”Google maps 如何在WMS请求中指定参数层?,google-maps,wms,google-maps-engine,Google Maps,Wms,Google Maps Engine,我想通过WMS访问我发布的和公共的谷歌地图引擎地图 我已经从地图详细信息中复制了链接。但我不知道参数层应该是什么样子?它的价值是什么 作为值,我尝试了层的名称,但似乎不起作用。 我得到的回答是“没有请求层的数据” 我的图层名称中没有空格 在已发布地图的OGC链接上运行GetCapabilities,它将告诉您图层名称。供参考: <Layer queryable="0"> <Name>15658084116283052074-10602818151822182906
我的图层名称中没有空格 在已发布地图的OGC链接上运行GetCapabilities,它将告诉您图层名称。供参考:
<Layer queryable="0">
<Name>15658084116283052074-10602818151822182906-4</Name>
<Title>x</Title>
<Abstract/>
<CRS>EPSG:3857</CRS>
<CRS>EPSG:3785</CRS>
<CRS>EPSG:900913</CRS>
<Layer queryable="0">
<Name>15658084116283052074-00933023778830223306-4</Name>
<Title>x</Title>
<Abstract>Raster layer</Abstract>
<CRS>EPSG:4326</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-100.00045742818516</westBoundLongitude>
<eastBoundLongitude>-92.99988641904172</eastBoundLongitude>
<southBoundLatitude>39.99928465598993</southBoundLatitude>
<northBoundLatitude>47.00075398041749</northBoundLatitude>
</EX_GeographicBoundingBox>
</Layer>
</Layer>
您还可以在使用web界面时找到图层ID:
如何获取vector formadd?request=GetCapabilities中创建的层的wms url,并将其粘贴到wms链接中:
https://mapsengine.google.com/15658084116283052074-10602818151822182906-4/wms/
?SERVICE=WMS
&REQUEST=GetMap
&VERSION=1.3.0
&LAYERS=15658084116283052074-10602818151822182906-4%2C15658084116283052074-00933023778830223306-4
&STYLES=
&FORMAT=image%2Fpng
&TRANSPARENT=true
&HEIGHT=256
&WIDTH=256
&CRS=EPSG%3A3857
&BBOX=-10644926.307106785,5361598.912035405,-10605790.548624776,5400734.670517417