GeoServer自动发布tif格式的地图服务

阅读 45

2023-12-04

from geoserver.catalog import Catalog

cat = Catalog("http://localhost:8080/geoserver/rest/", username="admin", password="geoserver")
data_url = "D:/GISData/Raster_file/sea_ice.tif"
workspaces = cat.get_workspaces()
cat.create_coveragestore_external_geotiff('sea_ice', data_url, workspace=cat.get_workspace("seaice"), overwrite=True)

https://docs.geoserver.geo-solutions.it/edu/en/rest/python_gsconfig.htmlhttps://blog.51cto.com/u_15057829/4604346

官方文档
https://docs.geoserver.org/stable/en/user/rest/

https://www.osgeo.cn/geoserver-user-manual/rest/index.html#rest



精彩评论(0)

0 0 举报