在Geoserver下,如何在通过REST建立WMTSLayer之后创建WMTSStore?
试图遵循下面的“傲慢”文档,https://docs.geoserver.org/latest/en/api/#1.0.0/layers.yaml
但找不到合适的网址。当我使用curl尝试这个时得到404
curl -v -u admin:geoserver -X POST http://localhost:8085/geoserver-cloud/rest/workspaces/{workspaceName}/wmtsstores/{wmststoreName}/wmtslayers -H "accept: application/json" -H "content-type: application/json" -d "{\"featureType\":{\"name\":\"World_Imagery\"}}"也看了下面,https://docs.geoserver.org/latest/en/api/#1.0.0/wmtslayers.yaml
并试图在url下面找到它。当我用卷发来尝试这个时,得到500
curl -v -u admin:geoserver -X POST http://localhost:8085/geoserver-cloud/rest/workspaces/{workspace}/wmtsstores/{wmtsstore}/layers -H "accept: application/json" -H "content-type: application/json" -d "{\"featureType\":{\"name\":\"World_Imagery\"}}"发布于 2022-07-28 21:22:51
找到了,需要通过wmtsLayer
curl -v -u admin:geoserver -X POST http://localhost:8085/geoserver-cloud/rest/workspaces/{workspace}/wmtsstores/{wmtsstore}/layers -H "accept: application/json" -H "content-type: application/json" -d "{ \"wmtsLayer\": { \"name\": \"NatGeo_World_Map\" } }"https://stackoverflow.com/questions/73159100
复制相似问题