0
点赞
收藏
分享

微信扫一扫

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

微笑沉默 2023-12-04 阅读 38

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 条评论